Schemas
Schemas (aka Ontologies) are containers for annotation types and relation types
post
https://api.annolab.ai
/v1/schema/create
Create Schema
This code shows how to create a new schema
Python
import requests
ANNO_LAB_API_KEY = 'XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX'
schema = {
'projectIdentifier': 'New NER Project',
'schemaName': 'NER'
}
headers = {
'Authorization': 'Api-Key '+ANNO_LAB_API_KEY,
}
url = 'https://api.annolab.ai/v1/schema/create'
response = requests.post(url, headers=headers, json=schema)
print(response.json())
Copy link