curl https://api.intellibase.dev/api/v1/ontologies/ont-abc123 \
-H "Authorization: Bearer ib-your-api-key"
import requests
ontology_id = "ont-abc123"
response = requests.get(
f"https://api.intellibase.dev/api/v1/ontologies/{ontology_id}",
headers={"Authorization": "Bearer ib-your-api-key"}
)
ontology = response.json()
print(f"Ontology: {ontology['name']}")
print(f"Hierarchy levels: {len(ontology['schema']['ontology']['hierarchy'])}")
print(f"Edge types: {len(ontology['schema']['ontology']['edge_types'])}")
const ontologyId = "ont-abc123";
const response = await fetch(
`https://api.intellibase.dev/api/v1/ontologies/${ontologyId}`,
{
headers: {
"Authorization": "Bearer ib-your-api-key"
}
}
);
const ontology = await response.json();
console.log(`Ontology: ${ontology.name}`);
console.log(`Hierarchy levels: ${ontology.schema.ontology.hierarchy.length}`);
console.log(`Edge types: ${ontology.schema.ontology.edge_types.length}`);
{
"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"
}
]
}
}
}
{
"detail": "Ontology not found"
}
{
"detail": "Invalid API key"
}
Ontologies
Get Ontology
Retrieve complete ontology details including schema
GET
/
api
/
v1
/
ontologies
/
{ontology_id}
curl https://api.intellibase.dev/api/v1/ontologies/ont-abc123 \
-H "Authorization: Bearer ib-your-api-key"
import requests
ontology_id = "ont-abc123"
response = requests.get(
f"https://api.intellibase.dev/api/v1/ontologies/{ontology_id}",
headers={"Authorization": "Bearer ib-your-api-key"}
)
ontology = response.json()
print(f"Ontology: {ontology['name']}")
print(f"Hierarchy levels: {len(ontology['schema']['ontology']['hierarchy'])}")
print(f"Edge types: {len(ontology['schema']['ontology']['edge_types'])}")
const ontologyId = "ont-abc123";
const response = await fetch(
`https://api.intellibase.dev/api/v1/ontologies/${ontologyId}`,
{
headers: {
"Authorization": "Bearer ib-your-api-key"
}
}
);
const ontology = await response.json();
console.log(`Ontology: ${ontology.name}`);
console.log(`Hierarchy levels: ${ontology.schema.ontology.hierarchy.length}`);
console.log(`Edge types: ${ontology.schema.ontology.edge_types.length}`);
{
"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"
}
]
}
}
}
{
"detail": "Ontology not found"
}
{
"detail": "Invalid API key"
}
Endpoint
GET https://api.intellibase.dev/api/v1/ontologies/{ontology_id}
Path Parameters
string
required
The unique identifier of the ontology
Authentication
Requires a valid API key.Response
string
Unique identifier for the ontology
string
Ontology name
string
When the ontology was created
object
Complete ontology schema including hierarchy and edge types
curl https://api.intellibase.dev/api/v1/ontologies/ont-abc123 \
-H "Authorization: Bearer ib-your-api-key"
import requests
ontology_id = "ont-abc123"
response = requests.get(
f"https://api.intellibase.dev/api/v1/ontologies/{ontology_id}",
headers={"Authorization": "Bearer ib-your-api-key"}
)
ontology = response.json()
print(f"Ontology: {ontology['name']}")
print(f"Hierarchy levels: {len(ontology['schema']['ontology']['hierarchy'])}")
print(f"Edge types: {len(ontology['schema']['ontology']['edge_types'])}")
const ontologyId = "ont-abc123";
const response = await fetch(
`https://api.intellibase.dev/api/v1/ontologies/${ontologyId}`,
{
headers: {
"Authorization": "Bearer ib-your-api-key"
}
}
);
const ontology = await response.json();
console.log(`Ontology: ${ontology.name}`);
console.log(`Hierarchy levels: ${ontology.schema.ontology.hierarchy.length}`);
console.log(`Edge types: ${ontology.schema.ontology.edge_types.length}`);
{
"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"
}
]
}
}
}
{
"detail": "Ontology not found"
}
{
"detail": "Invalid API key"
}
Use this endpoint to retrieve the complete ontology schema before creating a project or to inspect the structure.
⌘I