An ontology is the top-level container in Prometheux — it groups concepts, data sources, a schema, and compute configuration into a single workspace. The Ontologies API lets you create and load ontologies, copy or template them, move them between workspaces via export/import, and capture point-in-time snapshots. All paths are relative to the base URL and require authentication. All responses use the standard envelope. Where scope is accepted, valid values are user (default) and organization.
On the wire the request/response payloads still use project-prefixed keys (project, project_id, project_scope) for backward compatibility. These name the ontology container.

Save an ontology

Create or update an ontology. Sending an existing id updates the ontology in place; a new id (or a client-generated one) creates a new ontology.

Example

List ontologies

Return all ontologies visible to the authenticated user across one or more scopes. Results from multiple scopes are merged and deduplicated by ontology ID.
The organization scope is temporarily disabled — passing it is silently ignored and only user-scoped ontologies are returned.
data is an array of ontology objects (id, name, scope, description, and associated metadata).

Load an ontology

Fetch full details for a single ontology by ID.

Copy an ontology

Duplicate an existing ontology into the same or a different scope. All concepts, data source binds, and the schema are copied; a new ontology ID is assigned.

Templates

Templates are pre-built ontologies available to all users from a shared marketplace. Use list-templates to browse them, then import-template to instantiate one as a new ontology in your workspace.

List templates

Return all available templates from the marketplace. No parameters required.
data is an array of template objects (id, name, description, and metadata).

Import a template

Create a new ontology from a marketplace template. Data source connections are validated after import; any that cannot be resolved are reported in failed_datasources.
If any data sources declared in the template cannot be resolved in your workspace, the response includes a failed_datasources array listing which connectors need to be reconfigured before running concepts.

Export an ontology

Serialize a single ontology — its concepts (structure only, not cached output rows), data source binds, schema, and metadata — into a portable JSON payload. Use import-project to restore it.
Concept execution output (cached predicate rows) and embedding tables are excluded from the export. All concepts are marked as not-populated so they must be re-run after import.

Import an ontology

Restore an ontology from a payload previously produced by export-project. A new ontology ID is assigned; data source connections are validated after import and any that fail are reported in failed_datasources.

Export workspace

Export every ontology in the workspace — and all workspace-level tables — in a single payload. Equivalent to calling export-project for each ontology plus the workspace-level tables in one request.

Import workspace

Restore a full workspace from a payload produced by export-workspace. Each ontology is imported in turn; partial failures are tracked per-ontology in the summary.

Create from context

Create a brand-new ontology from free-text context and/or file attachments. The platform analyzes the input with the LLM to extract entities and relationships, generates an ontology name and description, and uses Vadalingo to translate the domain knowledge into Vadalog concepts. This endpoint is sent as multipart/form-data (form fields, not JSON) because it accepts file uploads.
Provide at least one of context or files; supplying neither returns a 400.

Snapshots

Snapshots are point-in-time captures of an ontology’s full state — concepts, data source binds, and schema. They enable lightweight versioning without a full export/import cycle.
Restoring a snapshot overwrites the current ontology state. By default, a safety snapshot of the current state is automatically created before the restore proceeds. Set create_safety_snapshot: false to skip this.

Create a snapshot

List snapshots

Return snapshot metadata for an ontology. The heavy snapshot payload is omitted — use restore with a snapshot_id to apply one.
data is an array of snapshot metadata objects (snapshot_id, description, created_at).

Restore a snapshot

Delete a snapshot

Other operations