Inspect Local Ontology
inspect_local_ontologyLoads RDF/OWL ontologies from local files, inline content, or uploads and returns a summary including class and property counts, namespaces, and triple statistics.
Instructions
Load and summarize an RDF/OWL ontology from the server filesystem, inline content, or an uploaded HTTP store (TTL, OWL/RDF-XML, NT, JSON-LD, Graphol XML).
Input (provide exactly one):
file_path: Absolute path on the MCP server filesystem. Use this only when the server process can really read that path (local stdio, same machine, or Docker with that directory mounted).
content + format: Raw RDF text sent inline. Works in remote HTTP mode too, but only for small payloads (max 1 MB).
upload_id: UUID returned by POST /upload. This is the preferred remote workflow when the ontology file is on the client machine instead of the server.
Important for remote MCP servers:
Do not assume file_path points to the user's laptop or local workstation.
If the MCP server runs on another machine/container and cannot access the file directly, call
get_upload_instructionsfirst, execute the returned curl command via Bash tool (do NOT read the file), then use the upload_id here.Prefer upload_id over trying many path variants when access to the original file is uncertain.
Never read the file content and relay it through the conversation — this wastes tokens. Use get_upload_instructions + Bash tool instead.
format values: "text/turtle" (default), "application/rdf+xml", "application/n-triples", "application/ld+json", "application/graphol+xml"
Returns:
File info: format, triple count, source
Classes: defined owl:Class / rdfs:Class with instance counts (top 20)
Properties: count of object and datatype properties
Namespaces used
Efficiency: file_path results are cached by mtime; repeated calls on unchanged files skip re-parsing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | RDF format of content: "text/turtle" (default), "application/rdf+xml", "application/n-triples", "application/ld+json", "application/graphol+xml" | |
| content | No | Raw RDF content as string (for remote server use; max 1 MB) | |
| file_path | No | Absolute path to the ontology file on the server filesystem | |
| upload_id | No | Upload UUID returned by POST /upload (HTTP mode) |