curl https://api.intellibase.dev/api/v1/ontologies/ont-abc123 \
-H "Authorization: Bearer ib-your-api-key"
{
"id": "ont-abc123",
"name": "Software Engineering",
"created_at": "2024-01-15T10:30:00Z",
"schema": {
"ontology": {
"hierarchy": [
{
"level": 0,
"node_types": {
"Developer": {
"properties": ["name", "role", "team"],
"description": "Software developer"
},
"Feature": {
"properties": ["name", "status", "deadline"],
"description": "Software feature"
}
}
},
{
"level": 1,
"node_types": {
"Team": {
"aggregates": ["Developer"],
"properties": ["name", "focus"],
"description": "Engineering team"
}
}
}
],
"edge_types": [
{
"name": "WORKS_ON",
"source_types": ["Developer"],
"target_types": ["Feature"],
"properties": ["role"],
"temporal": true,
"description": "Developer works on feature"
}
]
}
}
}
Retrieve complete ontology details including schema
curl https://api.intellibase.dev/api/v1/ontologies/ont-abc123 \
-H "Authorization: Bearer ib-your-api-key"
{
"id": "ont-abc123",
"name": "Software Engineering",
"created_at": "2024-01-15T10:30:00Z",
"schema": {
"ontology": {
"hierarchy": [
{
"level": 0,
"node_types": {
"Developer": {
"properties": ["name", "role", "team"],
"description": "Software developer"
},
"Feature": {
"properties": ["name", "status", "deadline"],
"description": "Software feature"
}
}
},
{
"level": 1,
"node_types": {
"Team": {
"aggregates": ["Developer"],
"properties": ["name", "focus"],
"description": "Engineering team"
}
}
}
],
"edge_types": [
{
"name": "WORKS_ON",
"source_types": ["Developer"],
"target_types": ["Feature"],
"properties": ["role"],
"temporal": true,
"description": "Developer works on feature"
}
]
}
}
}
GET https://api.intellibase.dev/api/v1/ontologies/{ontology_id}
curl https://api.intellibase.dev/api/v1/ontologies/ont-abc123 \
-H "Authorization: Bearer ib-your-api-key"
{
"id": "ont-abc123",
"name": "Software Engineering",
"created_at": "2024-01-15T10:30:00Z",
"schema": {
"ontology": {
"hierarchy": [
{
"level": 0,
"node_types": {
"Developer": {
"properties": ["name", "role", "team"],
"description": "Software developer"
},
"Feature": {
"properties": ["name", "status", "deadline"],
"description": "Software feature"
}
}
},
{
"level": 1,
"node_types": {
"Team": {
"aggregates": ["Developer"],
"properties": ["name", "focus"],
"description": "Engineering team"
}
}
}
],
"edge_types": [
{
"name": "WORKS_ON",
"source_types": ["Developer"],
"target_types": ["Feature"],
"properties": ["role"],
"temporal": true,
"description": "Developer works on feature"
}
]
}
}
}