1. Conduid
  2. RAG
  3. Ontosphere
MCP server · RAG

Ontosphere

Browser-based RDF/ontology knowledge graph editor — load RDF from files, URLs or SPARQL endpoints; author nodes and edges on the canvas; run OWL-RL reasoning; apply multi-algorithm layout and clustering. AI-native via MCP tool surface and relay bridge. Fully client-side, no backend required.

63Good

Scored 22 hours ago · breakdown

About Ontosphere

Ontosphere is an MCP server published by ThHanke in the RAG category: browser-based RDF/ontology knowledge graph editor — load RDF from files, URLs or SPARQL endpoints; author nodes and edges on the canvas; run OWL-RL reasoning; apply multi-algorithm layout and clustering. AI-native via MCP tool surface and relay bridge. Fully client-side, no backend required. Conduid read 42 tools from its source: addNode, addTriple, canonicalizeGraph, clearInferred, clusterNodes, diffAgentEdits and 36 more. No package is published for it, so it installs from a source checkout.

The repository has 275 stars and 35 forks, and its last commit was on 23 Nov 2026. The latest release is v1.8.1 (12 Nov 2026): Ontosphere v1.8.1 A correctness and speed release on top of 1.8.0. It follows v1.8.0 (11 Nov 2026), and the 5 most recent releases go back to v1.7.5 (23 Sep 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include fair-data, graph-editor, json-ld, knowledge-graph, linked-data and ontology.

Install

From source
git clone https://github.com/ThHanke/ontosphere

Tools (42)

addNodeAdd an entity (node) to the canvas by IRI, with optional RDF type(s) and label.
addTripleAdd a simple RDF triple between named entities (IRIs) or attach a literal annotation. Use for: object-property links between known IRIs (e.g. ex:Pizza rdf:type ex:Food), data/annotation properties (e.g. rdfs:label "Pizza"@en), and rdf:type assertions. Object-property triples render on canvas immediately; literal triples appear when the subject node is expanded via expandNode. OWL RESTRICTIONS via blank-node labels — 4 addTriple calls per restriction (use a distinct label per restriction: _:b0, _:b1, _:b2 …): addTriple("_:b0","rdf:type","owl:Restriction") [MUST be owl:Restriction, NOT owl:Class] + addTriple("_:b0","owl:onProperty","ex:hasPart") + addTriple("_:b0","owl:someValuesFrom","ex:SalamiTopping") + addTriple("ex:SalamiPizza","owl:equivalentClass","_:b0"). Same label → same IRI → restrictions collapse — always use a distinct label per restriction. Alternatively use loadRdf with Turtle blank-node syntax for all triples in one call.
canonicalizeGraphProduce the W3C RDFC-1.0 canonical N-Quads form + a content hash of the graph — for reproducible snapshots, deterministic diffing, and standards-compliant dataset identity.
clearInferredRemove all inferred (reasoned) triples from the graph.
clusterNodesGroup canvas nodes into clusters. Provide `iris` to group exactly those nodes directly, or provide `algorithm` to run community-detection on all canvas nodes. Fails if any target node is already in a cluster.
diffAgentEditsInspect the exact triples added and removed by a recorded agent edit batch. Pass the batchId from listAgentEdits. Returns {tool, agent, timestamp, reverted, added:[{s,p,o}], removed:[{s,p,o}]}.
expandNodeExpand canvas node(s) to show annotation properties. Pass iri to expand one node; omit iri to expand all nodes at once. Pass expand=false to collapse.
explainDiagnosticsRun the full symbolic verifier (OWL 2 DL reasoning + SHACL) and return ONE structured, actionable diagnosis of everything wrong with the current graph. Use this to decide what to fix after authoring. Response: { isConsistent, justifications, unsatisfiableClasses, profile, shaclViolations, repairBrief, suggestedRepairs }. isConsistent=false means a logical contradiction: `justifications` lists the minimal sets of axioms (MIPS) the reasoner used to compute the repairs — remove or revise one axiom per set. Declarations (`C a owl:Class`) are not part of a justification, and the count follows the reasoner's repair search, so it can exceed `maxJustifications`. `unsatisfiableClasses` are classes that can never have instances (best-effort); it is not computed for an inconsistent ontology (every class is unsatisfiable there), and `unsatisfiableClassesSkipped: 'ontology-inconsistent'` says so. `profile` reports OWL 2 profile analysis: the legacy DL sanity check (owl2dl + violations, e.g. a literal on an object property) PLUS structural EL/QL/RL detection (el/ql/rl each { valid, violations:[{construct,axiom,reason}] }) and `mostRestrictive` (EL|QL|RL|DL|Full) — the tightest profile the ontology fits, indicating whether a cheaper profile-specific reasoner suffices. `shaclViolations` are data-shape conformance failures. `repairBrief` is a ranked plain-language summary you can act on directly. `suggestedRepairs` is a ranked list of EXECUTABLE reasoner-computed fixes, each { id, issue, kind?, action:{tool,args}, batch?, weakerThan?, alternativeTo?, weakeningVerified?, rationale, verifiedConsistent?, verifiedSet?, justificationsCovered?, needsValue?, needsManualReview? }: for inconsistencies the DELETION repairs (kind:'delete') form a minimal hitting set over the MIPS — removing the WHOLE set restores consistency. AXIOM WEAKENING repairs (kind:'weaken', ids W1,W2,…) are a LESS-destructive alternative (Troquard et al. AAAI 2018; Li & Lambrix ISWC 2024): for an rdfs:subClassOf culprit A ⊑ D they replace it with a weaker A ⊑ D′ (D′ ⊒ D) or drop a conjunct — apply via batch:{removes,adds}; prefer weakening over deletion to preserve more knowledge. verifiedConsistent:true ⇒ removing that ONE axiom alone restores consistency; with multiple independent contradictions it is commonly false for every repair (means 'not ALONE', not 'wrong'). Trust the top-level `repairSetVerifiedConsistent` / per-repair `verifiedSet` (the full set together) and apply the entire set. needsManualReview:true ⇒ no auto-repair (inspect manually). Apply each by calling its action.tool (always removeLink for inconsistency repairs) with action.args. Read-only: never mutates asserted data.
explainEntailmentExplain WHY a specific entailed axiom holds — Horridge-style justifications for an ARBITRARY entailed axiom (not just inconsistency). Ask 'why is A rdfs:subClassOf B?' or 'why is x rdf:type C?' and get back the minimal set(s) of asserted axioms whose conjunction logically entails it. Input: { subjectIri, predicateIri, objectIri, maxJustifications? }. Returns { isEntailed, verdict, justifications, summary, ontologyInconsistent?, vacuous?, reason? }: isEntailed=true means the OWL 2 DL reasoner derives the axiom; verdict is entailed, not-entailed (a decided answer: under the open world assumption the ontology does not settle it) or undetermined (the check could not decide; isEntailed=null, see reason). justifications is a list of minimal axiom sets (each { subject, predicate, object }[]) — every axiom in a set is needed to derive the conclusion. A directly asserted axiom comes back as its own one-axiom justification. isEntailed=true with justificationUnavailable=true means the axiom is entailed but no sound justification could be produced (see reason): ask again with justificationMode 'exact'. justificationMode in the result says which search produced the justifications ('exact' = guaranteed minimal, 'fast' = one verified candidate, not necessarily minimal). isEntailed=false with empty justifications means the axiom is NOT entailed. ontologyInconsistent=true (isEntailed=null) means the ontology is ALREADY inconsistent so entailment is vacuous — run explainDiagnostics and fix consistency first; the result is NOT a real entailment. vacuous=true (subClassOf only) means the axiom holds ONLY because the subject class is unsatisfiable (empty class ⊑ anything) — not a genuine derivation; fix the unsatisfiable class. summary is a short plain-language 'Inferred because: …' explanation. Supported shapes: rdfs:subClassOf and rdf:type with an IRI object (e.g. transitive subclass A⊑B,B⊑C ⟹ A⊑C, or domain/range-driven type inference). Read-only: never mutates asserted data.
exportGraphExport the current RDF graph in the requested serialisation format. turtle | jsonld | rdfxml flatten the store into a single default graph (named-graph structure is lost). nquads | trig | jsonld-dataset are DATASET-FAITHFUL: they collect quads from every urn:vg:* graph (data, inferred, shapes, ontologies, workflows, loaded-from) and preserve each graph IRI, so the multi-graph partition round-trips on re-import (jsonld-dataset: one JSON-LD graph object {"@id": graph IRI, "@graph": [...]} per graph).
exportImageExport the current diagram canvas as SVG (default) or PNG. Use noCss: true to strip embedded CSS for smaller token-efficient output — recommended for AI relay use. Use focusIri to crop the export to a specific node and all its neighbours currently on canvas.
findPathFind the shortest path between two nodes in the RDF graph using BFS. Crosses ABox and TBox edges freely. Returns ordered list of hops.
fitCanvasFit the viewport to show all elements on the canvas.
focusNodePan and zoom the viewport to centre on a specific node by IRI.
generateDatasetMetadataGenerate VoID + DCAT metadata describing the current dataset (triple/class/property counts, partitions, vocabularies used) for FAIR publishing.
getCapabilitiesReturn the supported layout algorithms and export formats.
getGraphStateReturn a summary of the current graph state scoped to the requested graphs. Default (graphs omitted): data + inferred — canvas node/link counts. Include "urn:vg:shapes" to also get SHACL validation status.
getLinksReturn edges currently in the graph.
getNeighborsTraverse the RDF graph by BFS from a start node. Returns neighboring nodes and edges up to the given depth. Use layer="abox" for instance data, "tbox" for class/property hierarchy, "both" for everything.
getNodeDetailsReturn all RDF properties (triples) for a specific entity IRI — both asserted (urn:vg:data) and inferred (urn:vg:inferred). Inferred triples are marked inferred:true in the result. Also navigates the canvas to the node, switching between ABox/TBox views if needed.
getNodesReturn entities currently on the canvas. Optionally filter by type IRI or label substring.
helpList all available tools or get details about a specific tool.
layoutNodesLay out a named subset of canvas nodes together in a free area, pan the viewport to them, and return the bounding box. Fails if any IRI is not on the canvas or is inside a cluster.
listAgentEditsList recorded agent edit batches (provenance of mutations) most-recent-first. Each mutating tool call (addNode/updateNode/removeNode/addTriple/removeLink/loadRdf) is recorded as a PROV-O Activity in the urn:vg:provenance sidecar graph. Returns [{batchId, tool, agent, timestamp, addedCount, removedCount, reverted}]. Use diffAgentEdits to inspect the exact triples and revertAgentBatch to undo a batch. NOTE: the journal is in-memory and volatile — it is cleared on page reload (the store itself is also volatile). NOTE: only the most recent few thousand batches are retained (MAX_BATCHES, default 5000); older batches are evicted and can no longer be listed or reverted.
listNamespacesReturn all registered IRI prefixes and their namespace URIs.
loadOntologyDiscover or load well-known ontologies. Pass url to load by prefix name (e.g. "ical", "mo", "bot", "gr") or by namespace/file URL. Pass query to search by use-case keyword (e.g. "calendar", "music", "building", "e-commerce"). Pass neither to list all ~55 registered ontologies. OWL/RDFS/RDF/XSD are always pre-loaded.
loadRdfLoad RDF data into the graph from a URL or inline Turtle text. Common prefixes (owl:, rdf:, rdfs:, ex:, xsd:) are auto-injected when you do not declare them — you do not need to include @prefix declarations. A well-formed @prefix of your own, even for one of these names (e.g. ex:), is kept and wins.
loadShaclLoad SHACL shapes from inline Turtle text into the shapes graph (urn:vg:shapes). Invalid Turtle fails the call and loads nothing. Pass baseIri to resolve relative IRIs (e.g. <#MyShape>). Call validateGraph to run validation after loading.
loadShaclFromUrlLoad SHACL shapes from a URL into urn:vg:shapes (replacing the shapes loaded before). Supports direct .ttl file URLs, GitHub folder tree URLs (auto-discovers .ttl/.shacl files), and comma-separated mixes. Each file is parsed with its URL as base IRI. Returns { loaded, errors }; success is false when any file failed to fetch or parse; the error then names each failed file and the files that were loaded (those stay loaded).
queryGraphRun a SPARQL query or update. Queries (SELECT, CONSTRUCT, ASK) run over the union of all graphs (urn:vg:data, urn:vg:ontologies, urn:vg:inferred, urn:vg:shapes, ...) as the default graph; use GRAPH <urn:vg:data> or GRAPH <urn:vg:inferred> to restrict a pattern to asserted data or to inferred triples. Namespace prefixes are injected automatically. Updates: patterns without an explicit GRAPH clause are scoped to urn:vg:data (inserts and deletes there, WHERE matches there); a GRAPH clause targets that graph (e.g. urn:vg:ontologies). Supported: INSERT DATA, DELETE DATA, DELETE WHERE, DELETE...INSERT...WHERE. Every update is journaled as an agent edit (quads added/removed per graph; see listAgentEdits / revertAgentBatch) and returns { updated, added, removed }.
removeLinkRemove ANY triple from the RDF store, given its subject, predicate and object. Despite the name it is not limited to object-property edges: the object may be an IRI (an ABox edge or a TBox axiom such as owl:disjointWith / rdfs:subClassOf) OR a literal value (an annotation). To remove the EXACT axiom a reasoner repair points at — which may physically live in an imported ontology graph and/or carry a typed/language-tagged literal — pass the optional graphName (e.g. "urn:vg:ontologies") and, for literal objects, objectIsLiteral=true with objectDatatype/objectLanguage. These map 1:1 onto explainDiagnostics.suggestedRepairs action.args (graph / objectDatatype / objectLanguage / objectTermType), so an agent can apply a suggested repair faithfully. Omitting them targets the default data graph and coerces the object to a string/IRI (legacy behaviour).
removeNamespaceUnregister an IRI prefix from the namespace registry.
removeNodeRemove an entity and all its triples from the canvas.
revertAgentBatchUndo a recorded agent edit batch: re-removes the triples it added and re-adds the triples it removed, in urn:vg:data. Idempotent — reverting an already-reverted batch is a safe no-op (reported via alreadyReverted). Because the graph may have changed since the edit, the revert is best-effort: returns {success, alreadyReverted?, reverted:{addedRemoved, removedRestored}, requested:{addedToRemove, removedToRestore}}. reverted.* are the ACTUAL store deltas (quads really removed/re-added); requested.* are the batch's recorded counts. When reverted < requested the revert was PARTIAL — a later edit had already removed some added triples or re-added some removed ones. The batch is then marked reverted (prov:wasInvalidatedBy + vg:reverted true) in urn:vg:provenance. Evicted batches (older than MAX_BATCHES) report success:false (unknown batchId).
runLayoutApply a layout algorithm to the current graph on the canvas.
runReasoningRun OWL reasoning over the loaded graph and infer new triples. Default backend is 'konclude' (full OWL 2 DL). Pass reasonerBackend='n3' to use N3 rule-based inference instead. Pass clearBefore=true to clear previous inferences first. SHACL validation runs by default after reasoning if shapes are loaded (shaclValidation=true); pass shaclValidation=false to skip it. Response: { inferredTriples, isConsistent: boolean|null, errors: ReasoningError[], shaclFocus?, shaclFocusComparison? } (shaclFocus / shaclFocusComparison: focus-node counts of the SHACL run after reasoning, as validateGraph's focus / focusComparison). isConsistent=false means the ontology is logically contradictory — inferences were skipped and errors contains per-entity clash details (nodeId: individual IRI, rule, message). isConsistent=null when using the n3 backend or when validation was unavailable.
searchTermsSearch existing ontology terms (classes / properties / individuals) by label or local name across all loaded ontologies (urn:vg:ontologies) and the asserted graph, so you can REUSE an existing IRI instead of minting a new ex: one. ALWAYS call this before creating a new class or property — if a pmdco:/bfo:/iof:/qudt: (etc.) term already exists, reuse it. Results are ranked (exact label > label prefix > label substring > local-name match) and include the resolved prefix when known. Covers terms already loaded into the store; it does not query remote registries (LOV/BioPortal). To pull in more vocabularies first, use loadOntology.
setNamespaceRegister or update an IRI prefix (upsert). Creates the prefix if new, replaces it if already registered.
setViewModeSwitch the canvas between ABox view (individuals/instances) and TBox view (classes/properties). Call before exportImage when you want to capture a specific layer.
suggestOntologiesForTaskSuggest compatible sets of ontologies for a plain-language task description. Pass task as a phrase ("people I know", "mind map", "track sensor readings"). Returns matching packs — each with prefix list and rationale — so you can load them via loadOntology. Pass empty string or omit task to browse all 10 available packs.
updateNodeUpdate annotation properties of an existing entity without deleting it (preserves all edges). Only modifies asserted triples in urn:vg:data — inferred triples are never touched.
validateGraphValidate the data graph (urn:vg:data: everything loaded or authored as data, TBox and ABox) plus the inferred graph against SHACL shapes loaded in urn:vg:shapes. Findings are reported for subjects in urn:vg:data. Returns { conforms, violations, focus, focusComparison? }: conforms is true exactly when violations is empty; focus = { nodeShapes, shapesWithFocus, perShape, afterReasoning } counts the node shapes that select at least one focus node in the record (subjects in urn:vg:data) and the focus nodes per such shape; focusComparison compares the last validation without inferred triples to the last one after reasoning ({ nodeShapes, asserted, reasoned, newlyActive }). A shape whose validation throws (e.g. an unparsable SPARQL constraint) is reported as one violation naming the shape; the other shapes are still validated.

Security checks

  • ✓README presentThe repository's README runs to about 8.9K words.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.

2 checks have not been run yet.

Releases

v1.8.1v1.8.1 · 12 Nov 2026Ontosphere v1.8.1 A correctness and speed release on top of 1.8.0. Reasoning in the browser is about six times faster again (reasoner 0.9.5), explanations of derived facts are correct after a reasoning run, repair assessment sees every…
v1.8.0v1.8.0 · 11 Nov 2026Ontosphere v1.8.0 Reasoning moves to rdf-reasoner-konclude 0.9.3, repair suggestions are now computed by the reasoner, and large graphs reason and render much faster. Inferred counts change and some MCP behaviour changes, see Upgrade notes…
v1.7.7v1.7.7 · 16 Oct 2026Changelog [1.7.7] — 2026-10-16 Reasoning rdf-reasoner-konclude 0.8.0. The reasoner digests the store content on every call, rebuilds only when it changed, recycles its own Worker when the WASM heap grows, and recovers from stalled kernels.…
v1.7.6v1.7.6 · 24 Sep 2026New features WebMCP support (document.modelContext) Full WebMCP spec compliance: `document.modelContext` polyfill, object-form `registerTool`, `toolchange` events, and signal-based unregistration TypeScript types for the polyfill and…
v1.7.5v1.7.5 deterministic, memory-isolated reasoning · 23 Sep 2026Ontosphere v1.7.5 The main theme of v1.7.5 is deterministic, memory-isolated reasoning — each reasoning run now executes in a strict serial queue with a fresh reasoner instance, eliminating state leakage and non-deterministic results from…

README

The repository's README runs to about 8.9K words, fetched 12 days ago. The original in the repository is authoritative.

Read full README
Questions

About Ontosphere

How do I install Ontosphere?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Ontosphere safe to use with an AI agent?

Its trust score is 63 out of 100 (good). It passes all 4 static checks Conduid ran on the repository. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Ontosphere still maintained?

Yes — the latest release is v1.8.1 (12 Nov 2026), and the last commit was 8 days ago. The repository has 275 stars and 1 open issues.

What tools does Ontosphere provide?

Conduid read 42 tools from the source: addNode, addTriple, canonicalizeGraph, clearInferred, clusterNodes, diffAgentEdits, expandNode, explainDiagnostics and 34 more.