MATIH Platform is in active MVP development. Documentation reflects current implementation status.
11. Pipelines & Data Engineering
Ontology Service
API Reference

Ontology Service API Reference

Complete REST API documentation for the Ontology Service. All endpoints require a valid JWT token and the X-Tenant-ID header for multi-tenant isolation. The service also exposes a GraphQL endpoint at /graphql.

Base URL: http://ontology-service.matih-data-plane.svc.cluster.local:8101/v1/ontology


Object Types

MethodEndpointDescription
POST/object-typesCreate an object type
GET/object-typesList all object types
GET/object-types/:idGet object type by ID
PUT/object-types/:idUpdate an object type
DELETE/object-types/:idDelete an object type
GET/object-types/:id/propertiesList properties
POST/object-types/:id/propertiesAdd a property
PUT/object-types/:id/properties/:nameUpdate a property
DELETE/object-types/:id/properties/:nameRemove a property

Relationships

MethodEndpointDescription
GET/object-types/:id/relationshipsList relationships
POST/object-types/:id/relationshipsCreate a relationship
PUT/object-types/:id/relationships/:nameUpdate a relationship
DELETE/object-types/:id/relationships/:nameRemove a relationship

Datasource Mappings

MethodEndpointDescription
POST/mappingsCreate a datasource mapping
GET/mappingsList mappings (query param: objectTypeId)
GET/mappings/:idGet mapping details
PUT/mappings/:idUpdate a mapping
DELETE/mappings/:idRemove a mapping
POST/mappings/analyzeAnalyze source and suggest mappings
POST/mappings/:id/syncTrigger manual sync

Templates

MethodEndpointDescription
GET/templatesList available templates
GET/templates/:nameGet template details
POST/templatesCreate a custom template
PUT/templates/:nameUpdate a template
POST/templates/deployDeploy a template to the tenant ontology

Validation

MethodEndpointDescription
POST/validateValidate a specific object type
POST/validate/allValidate all object types in the tenant

Actions

MethodEndpointDescription
GET/actionsList action definitions
POST/actionsCreate an action
GET/actions/:idGet action details
PUT/actions/:idUpdate an action

GraphQL

MethodEndpointDescription
POST/graphqlGraphQL query and mutation endpoint
GET/graphqlGraphQL Playground (dev only)

Common Query Parameters

ParameterTypeDescription
layerstringFilter by ontology layer (raw, staging, curated, semantic)
statusstringFilter by status (draft, active, deprecated)
searchstringFull-text search on name and description
limitintMaximum results (default: 50)
offsetintPagination offset

Authentication

All requests must include:

Authorization: Bearer <jwt-token>
X-Tenant-ID: <tenant-id>

Related Pages