curl -X POST https://api.intellibase.dev/api/v1/ontologies \
-H "Authorization: Bearer ib-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Software Engineering",
"schema": {
"ontology": {
"hierarchy": [
{
"level": 0,
"node_types": {
"Developer": {
"properties": ["name", "role", "team"],
"description": "Software developer"
},
"Feature": {
"properties": ["name", "status", "deadline"],
"description": "Software feature"
}
}
}
],
"edge_types": [
{
"name": "WORKS_ON",
"source_types": ["Developer"],
"target_types": ["Feature"],
"properties": ["role"],
"temporal": true,
"description": "Developer works on feature"
}
]
}
}
}'
{
"id": "ont-abc123",
"name": "Software Engineering",
"created_at": "2024-01-15T10:30:00Z",
"schema": {
"ontology": {
"hierarchy": [ ... ],
"edge_types": [ ... ]
}
}
}
Save an ontology in Intellibase and generate an ontology ID which can then be used to create a project with this ontology
curl -X POST https://api.intellibase.dev/api/v1/ontologies \
-H "Authorization: Bearer ib-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Software Engineering",
"schema": {
"ontology": {
"hierarchy": [
{
"level": 0,
"node_types": {
"Developer": {
"properties": ["name", "role", "team"],
"description": "Software developer"
},
"Feature": {
"properties": ["name", "status", "deadline"],
"description": "Software feature"
}
}
}
],
"edge_types": [
{
"name": "WORKS_ON",
"source_types": ["Developer"],
"target_types": ["Feature"],
"properties": ["role"],
"temporal": true,
"description": "Developer works on feature"
}
]
}
}
}'
{
"id": "ont-abc123",
"name": "Software Engineering",
"created_at": "2024-01-15T10:30:00Z",
"schema": {
"ontology": {
"hierarchy": [ ... ],
"edge_types": [ ... ]
}
}
}
POST https://api.intellibase.dev/api/v1/ontologies
curl -X POST https://api.intellibase.dev/api/v1/ontologies \
-H "Authorization: Bearer ib-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Software Engineering",
"schema": {
"ontology": {
"hierarchy": [
{
"level": 0,
"node_types": {
"Developer": {
"properties": ["name", "role", "team"],
"description": "Software developer"
},
"Feature": {
"properties": ["name", "status", "deadline"],
"description": "Software feature"
}
}
}
],
"edge_types": [
{
"name": "WORKS_ON",
"source_types": ["Developer"],
"target_types": ["Feature"],
"properties": ["role"],
"temporal": true,
"description": "Developer works on feature"
}
]
}
}
}'
{
"id": "ont-abc123",
"name": "Software Engineering",
"created_at": "2024-01-15T10:30:00Z",
"schema": {
"ontology": {
"hierarchy": [ ... ],
"edge_types": [ ... ]
}
}
}