Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
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.
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Same catalog task: Search & browse the web.
MCP server for browser use access
Same catalog task: Search & browse the web.
MCP (Model Context Protocol) server for browser tools integration
Same catalog task: Search & browse the web.
MCP server for AI Mentora, compatible with ModelContextProtocol. Provides es-fulltext-retrieve tool for Canadian case law search.
Fetched from the repository for this visit.
Ontosphere loads RDF and OWL data, reasons over it with a complete OWL 2 DL reasoner, validates it with SHACL
against what the reasoner inferred, and proposes repairs the reasoner has checked.
No server. No installation. Your records stay in your browser.
Complete · OWL 2 DL · Aware · validation sees inference · Private · 100% client-side
A SHACL shape that targets a class selects nothing until the reasoner has derived that class.
Validate only the asserted graph and the shape stays quiet, which reads like a pass.
Ontosphere validates after reasoning, counts the shapes that select focus nodes, and shows which constraints reasoning switched on.
Try it on the PMD Core chemical-composition record: Open this example ↗
The same verified view is open to AI agents through 42 Model Context Protocol tools.
An agent edits the graph, and the tab answers with one structured diagnosis the reasoner produced.
Open the live demo, or run it yourself:
git clone https://github.com/ThHanke/ontosphere.git
cd ontosphere
npm install
npm run dev # http://localhost:8080
Load data on startup with a URL parameter. A file, a URL or a SPARQL endpoint all work:
http://localhost:8080/?rdfUrl=https://example.org/mydata.ttl
Video tutorials · Using the UI · URL parameters · MCP guide · Contributing
Ontosphere is a browser-based RDF/ontology knowledge graph editor. It loads RDF from local files, remote URLs, or SPARQL/Fuseki endpoints; lets users author nodes and edges directly on the canvas; runs complete OWL 2 DL reasoning (via Konclude) with visual differentiation of inferred triples; and applies multi-algorithm layout (Dagre, ELK) and automatic clustering for large graphs. Additional features include namespace management with live URI renaming, a drag-and-drop workflow template catalog, and a Model Context Protocol (MCP) server for AI-agent integration. All computation runs entirely client-side in the browser against an in-memory RDF store backed by Web Workers — no backend required.
flowchart LR
Agent["LLM agent"]
subgraph B["Browser tab — 100% client-side, no backend"]
direction TB
UI["Reactodia canvas<br/>author · layout · cluster"]
Store["RDF store<br/>named graphs · Web Workers"]
Reason["OWL 2 DL reasoner<br/>Konclude · WebAssembly"]
Check["OWL 2 profile + SHACL"]
Repair["Repair engine<br/>deletion · weakening"]
Diag["Diagnosis object<br/>verdict · justifications · verified repairs"]
Prov["PROV-O provenance + reversal"]
MCP["MCP server · 42 tools"]
end
Agent -->|"author / select a verified repair"| MCP
MCP --> Store
UI <--> Store
Store --> Reason
Store --> Check
Reason --> Repair
Check --> Repair
Reason --> Diag
Check --> Diag
Repair --> Diag
Diag -->|"verified, never-hidden feedback"| MCP
Store --> Prov
Everything below runs in the browser tab, against an in-memory RDF store backed by Web Workers. The capabilities group around what you do with a knowledge graph — load, author, reason, repair, validate, and share — plus first-class AI-agent access.
{"@id": <graph IRI>, "@graph": [...]}) per named graph. On import of a TriG / N-Quads file, named graphs other than these urn:vg:* graphs go into the import's target graph, so every quad the reasoner reads is also validated and exported.canonicalizeGraph MCP tool).entailed, not-entailed, undetermined) that tells a decided answer from a check that could not decide.explainDiagnostics MCP tool hands an agent.rdfs:subClassOf culprits, axiom weakening that replaces A ⊑ D with a logically weaker A ⊑ D′ to preserve more knowledge than deletion (Troquard et al. AAAI 2018; Li & Lambrix ISWC 2024). Each suggestion shows its rationale and the exact triples it adds/removes, with a "verified consistent" badge and the reasoner's minimality verdict. The reasoner (rdf-reasoner-konclude repair() and weaken()) finds and verifies the repair sets; weakenings are offered only when removing the culprit alone restores consistency, i.e. with a single independent contradiction. Apply a single deletion, Apply weakening as one undoable remove+add batch, or Apply all verified in one batch — then re-run reasoning to confirm. With assessGuardCost, explainDiagnostics also reports for each deletion repair which declared class-disjointness guards it would destroy, so a repair that restores consistency by removing a constraint is marked as such.Exposes a Model Context Protocol tool surface via the browser's document.modelContext WebMCP API (W3C CG, native in Chrome 153+; polyfill included for all other browsers), across nine categories (manifest at /.well-known/mcp.json):
| Category | Tools |
|---|---|
| Graph management | loadRdf · loadOntology · suggestOntologiesForTask · queryGraph · exportGraph · canonicalizeGraph · exportImage · setViewMode · getCapabilities · getGraphState · help |
| Node operations | addNode · removeNode · expandNode · getNodes · getNodeDetails · updateNode · searchTerms |
| Link operations | addTriple · removeLink · getLinks |
| Layout & navigation | runLayout · clusterNodes · layoutNodes · focusNode · fitCanvas · getNeighbors · findPath |
| Reasoning | runReasoning · clearInferred · explainDiagnostics · explainEntailment |
| Namespaces | setNamespace · removeNamespace · listNamespaces |
| SHACL validation | loadShacl · validateGraph · loadShaclFromUrl |
| Edit provenance / undo | listAgentEdits · diffAgentEdits · revertAgentBatch |
| Dataset metadata | generateDatasetMetadata (VoID + DCAT with triple/class/property counts, partitions and vocabularies, for FAIR publishing) |
Notes for agents
?rdfUrl= data, shapes) has finished. In a browser console window.__startupComplete() turns true; retry after a few seconds.listNamespaces); an unknown prefix or a bare name is an error. Text in results (briefs, rationales, summaries, error messages) names IRIs as prefixed names, or as full IRIs when no prefix is registered, never as bare local names. Structured fields are full IRIs. queryGraph rows use prefixed names.owl:AllDisjointClasses node) as urn:vg:bnode:<label>; it works as an ordinary IRI in queryGraph patterns, INSERT DATA and DELETE DATA. SPARQL results never contain blank-node terms. An inline-Turtle @prefix of your own, even for ex:, schema:, dc: and the other built-in names, is kept as written.explainEntailment: the default justificationMode: "exact" returns guaranteed-minimal justifications and can take seconds on a large ontology (limit 60 s). If it finds none, the answer falls back to "fast" (one verified candidate, not necessarily minimal), and if that has none either, justificationUnavailable: true with a reason. An empty justifications list never means "asserted": a directly asserted axiom is its own one-axiom justification. justificationMode in the result names the search that produced it.explainDiagnostics: justifications are the axiom sets from the reasoner's repair search (declarations are not part of them). Deletion repairs have kind: "delete", weakenings kind: "weaken". For an inconsistent ontology unsatisfiableClasses is not computed (every class is unsatisfiable there) and unsatisfiableClassesSkipped: "ontology-inconsistent" says so. includeTimings: true adds timingsMs (stage and reasoner-call durations) for diagnosing slow runs.Short video walkthroughs for each core feature — click to play directly from the live deployment.
Each video is a focused 60–90 second walkthrough using the bundled reasoning-demo ontology.
| Feature | Video | What you'll see |
|---|---|---|
| RDF Loading | ▶ feat-loading.mp4 | URL parameter load, file upload, SPARQL endpoint fetch |
| Visual Exploration | ▶ feat-exploration.mp4 | TBox/ABox toggle, search, zoom/pan, minimap |
| Canvas Authoring | ▶ feat-authoring.mp4 | Add class, draw edge, edit annotations, undo/redo |
| Hierarchical Clustering | ▶ feat-clustering.mp4 | L2 structural fold/unfold, L3 Louvain community detection |
| OWL 2 DL Reasoning | ▶ feat-reasoning.mp4 | Konclude WASM inference, inferred triples, ABox inspection |
| SHACL Validation | ▶ feat-shacl.mp4 | Load shapes, validate data, reasoning interplay |
| MCP + AI Relay | ▶ feat-ai-relay.mp4 | Bookmarklet injection, AI tool calls, relay round trip |
Longer end-to-end sessions showing AI-driven ontology building.
| Demo | Video | Description |
|---|---|---|
| Full walkthrough | ▶ iswc2026-comprehensive.mp4 | 3-minute tour of all features |
| FOAF social network | ▶ foaf-social-network.mp4 | AI builds a social graph with DL reasoning |
| Scene ontology | ▶ scene-ontology.mp4 | Film scene ontology on BFO/RO upper ontology |
| Pizza tutorial | ▶ pizza-tutorial.mp4 | Manchester Pizza — class hierarchy, disjointness, DL reasoning |
| Pizza tutorial (chat) | ▶ pizza-tutorial-chat.mp4 | OWL pizza tutorial as AI tutor lesson, side-by-side chat |
The annotated diagram below identifies the numbered UI elements described in this section.
1 ☰ View menu — dropdown: Export canvas as PNG, Export as SVG, Print, Show/Hide Legend (toggles the namespace colour key panel).
2 Search — type to find entities by label or IRI. ↑↓ arrows or Enter cycle through matches on the canvas. The badge shows current match / total count.
3 Layout — opens the layout popover: choose algorithm (Dagre horizontal/vertical, ELK layered/force/stress/radial, Reactodia-default), adjust spacing via a slider, toggle auto-layout (re-runs after every graph update).
4 Clustering algorithm selector — choose between None, Label Propagation, Louvain, or K-Means. The large-graph threshold (default 100 nodes, configurable in Settings) controls when auto-clustering runs on load.
5 Cluster level navigation (◄ 1/3 ►) — step through fold levels. The badge shows the current level and total count: L3 (community-detection clusters), L2 (structural fold — subclass chains and OWL collections), L1 (annotation properties hidden), ∅ (fully expanded). The ◄/► arrows fold or unfold one level at a time.
6 A-Box — switch to instance-level individuals (A-Box, highlighted when active).
7 T-Box — switch to ontology-level classes/properties (T-Box).
8 Ontologies — shows the count of loaded ontologies. Click to open a popover listing each ontology with options to add/remove from autoload.
9 Reasoning status — shows the current DL reasoning state: Ready / ✓ Valid / ⚠ Warnings / Errors / spinner while running. Click to open the reasoning report (inferred triples grouped by rule).
10 Clear inferred (🗑) — removes all inferred triples without touching asserted data.
11 SHACL toggle (☑) — enable or disable SHACL validation as part of the reasoning pipeline. When checked, running reasoning also validates data against loaded SHACL shapes.
12 Run reasoning (▶) — triggers DL reasoning (Konclude) and optionally SHACL validation. Inferred triples appear as amber dashed edges. Idempotent. While reasoning runs the button turns into a stop button (■) that terminates the run; the graph is unaffected and the next run starts a fresh reasoner.
13 Onto — open the ontology loader. Enter any HTTP(S) URL or pick from pre-configured sources in Settings.
14 File — open a file picker for local RDF files. Supported: Turtle (.ttl), JSON-LD (.jsonld), RDF/XML (.rdf/.owl), N-Triples (.nt).
15 Clear — remove all loaded graphs and reset the canvas.
16 Export — export as Turtle, JSON-LD, RDF/XML (single-graph), or N-Quads / TriG / JSON-LD (dataset) (dataset-faithful, preserve named graphs) via the dropdown. Generated entirely in the browser.
17 SHACL — open the SHACL shapes panel to load, inspect, and manage SHACL shapes for data validation.
18 Agent Edits — open the provenance inspector (see Agent edit provenance). Lists edit batches, shows diffs, and offers one-click revert.
19 SPARQL — open the SPARQL query editor (the same engine the queryGraph MCP tool uses). A SPARQL UPDATE without a GRAPH clause writes to urn:vg:data; an explicit GRAPH <…> clause is honoured, including urn:vg:ontologies and urn:vg:inferred, so be deliberate when writing into those graphs. The queryGraph MCP tool runs queries over the union of all graphs and journals each update as an agent edit (quads added and removed per graph, see listAgentEdits / revertAgentBatch). Prefills registered namespace PREFIX declarations, runs on Run or Ctrl/⌘+Enter, and renders results by type: SELECT bindings as a table, CONSTRUCT/DESCRIBE as triples, ASK as true/false, INSERT/DELETE with a success toast.
20 Metrics — open the ontology metrics dashboard. Structural counts (triples, subjects, classes, properties, individuals) as stat cards, subjects-by-namespace breakdown, and OQuaRE-flavoured quality heuristics (properties per class, label coverage, inferred:asserted ratio).
21 AI Relay — open the AI Relay Bridge panel. Drag the bookmarklet to your browser bar to connect any AI chat (ChatGPT, Gemini, Claude.ai) to Ontosphere.
22 Zoom controls — zoom in/out, fit view (reset the viewport to show all nodes), and screenshot (export the current canvas view).
23 Docs — open the built-in documentation and help panel.
24 Settings — open the settings panel for default layout, clustering algorithm, large-graph threshold, ontology autoload URLs, workflow catalog, reasoner backend, and other preferences.
When the sidebar is expanded (click the › toggle), the action buttons are shown in a compact grid. Below them the same sections appear as collapsible accordion panels with full content: Workflows (drag a template card onto the canvas to instantiate a connected subgraph), SHACL Shapes, Agent Edits, SPARQL, Metrics, AI Relay, and Documentation.
25 Undo — undo last authoring change.
26 Redo — redo last undone change.
27 Save — commit all pending authoring edits to the RDF store in a single batch.
28 Re-layout — re-apply the current layout algorithm in-place.
Hover over any node to reveal the authoring halo with these controls:
29 Individual node — represents an RDF subject. The header shows the local name, a coloured namespace badge, and the OWL class. Properties (IRI, annotations, custom fields) are shown in an editable table on selection.
30 Edge / predicate — labelled arrow between two nodes. Amber dashed edges are inferred triples. Double-click to open the link property editor (scored autocomplete from ontologies). On large canvases (more than 300 links) the relation label of a link is shown only while the link is selected; unselected links stay clickable.
31 Minimap — overview panel at bottom-right. Click to jump to a region, drag to pan.
Ontosphere runs OWL reasoning entirely in the browser via a pluggable backend. The default is Konclude (full OWL 2 DL). Inferred triples appear as amber dashed edges; inferred types and annotations appear in amber italic. A reasoning report lists all inferred triples. Reasoning is idempotent — running it again produces no additional triples. Use Clear inferred to remove all inferred triples without affecting asserted data. Inferred triples are also dropped automatically when an ontology is unloaded or a graph is removed, since they were derived from axioms that are gone. See the feat-reasoning demo video for a walkthrough of all 15 supported OWL 2 DL construct patterns.
OWL DL consistency checking runs automatically alongside inference (Konclude only). If the ontology is logically contradictory, reasoning is skipped and the report's Errors tab shows per-entity clash details (affected individual, violated axiom, description). An "OWL DL inconsistency detected" banner appears in the report. Common inconsistencies: an individual in two owl:disjointWith classes, an owl:allValuesFrom restriction violated by an asserted type, or an owl:AsymmetricProperty / owl:IrreflexiveProperty cycle. The N3 backend does not perform consistency checking (isConsistent is always null).
Konclude is a complete tableau reasoner for the description logic SROIQ(D) (OWL 2 DL), compiled to WebAssembly. It runs classification and ABox realization over the loaded ontology and writes rdfs:subClassOf, owl:equivalentClass, rdf:type and object-property (role) inferences. One reasoner instance serves all runs: it hashes the store content on every call and rebuilds only when the content changed, so re-running on an unchanged graph is cheap.
Supported OWL constructs (complete): rdfs:subClassOf, owl:equivalentClass, owl:someValuesFrom, owl:allValuesFrom, owl:hasValue, owl:inverseOf, owl:SymmetricProperty, owl:TransitiveProperty, owl:subPropertyOf, rdfs:domain/rdfs:range, owl:intersectionOf, owl:unionOf, owl:oneOf, owl:propertyChainAxiom, number restrictions, nominals, and more.
Conformance (rdf-reasoner-konclude 0.9.7): on the W3C OWL 2 DL test suite the reasoner answers 265 of 266 consistency cases and 68 of 84 entailment cases correctly (raw set); the remaining entailment cases are annotation or anonymous-class conclusions and kernel limits, and the package lists them in its OWL 2 conformance chapter. Reference chapters: API, options, SWRL.
DL-safe SWRL rules (swrl:Imp) in the loaded data are applied during reasoning and their consequences appear as inferred triples. Rules with built-in atoms (swrlb:*) are skipped. Without rules there is no cost.
Full class hierarchy (setting, off by default): Settings → Write the full class hierarchy (next to the reasoner backend) also stores every transitive rdfs:subClassOf pair as an inferred triple (about 6-9 times the hierarchy triples, so more canvas memory on big ontologies). Turn it on only when SPARQL or SHACL should see the whole hierarchy without reasoning; entailment checks and explanations do not need it.
Ill-typed literals (for example "5abc"^^xsd:integer or "300"^^xsd:byte) are ignored by the reasoner; the reasoning report lists each one as a warning (rule reasoner:ill-typed-literal) so they do not pass unnoticed.
The N3 backend uses the N3.js BGP-only Reasoner with configurable rulesets loaded from public/reasoning-rules/. Select it in Settings → Reasoner Backend → N3 Rules.
N3.js is BGP-only: rules using EYE/SWAP built-ins (e:findall, list:in, log:notEqualTo) are silently ignored. The [REQUIRES EYE] comments in the rule files mark those rules. Use this backend when you need custom N3 rule files or are working with demos that depend on specific rule-file behavior.
Ontosphere validates RDF data against SHACL (Shapes Constraint Language) shapes. SHACL shapes define constraints on your data — required properties, value ranges, cardinality — and the validation engine reports which nodes violate them. See the feat-shacl demo video for a walkthrough.
SHACL validation runs automatically as part of the reasoning pipeline. After reasoning completes, the reasoning report shows SHACL violations alongside OWL inferences, with SHACL / OWL source badges on each finding. Only SHACL errors (severity sh:Violation) mark the data as invalid; warnings (sh:Warning) and info-level findings do not.
Both property-based constraints (sh:property) and SPARQL-based constraints (sh:sparql) are supported. SPARQL constraints let you express checks that go beyond the built-in constraint components — any SELECT query returning $this bindings will flag matching focus nodes as violations.
Note on
sh:severity: per the SHACL spec,sh:severityis declared on the shape (thesh:NodeShapeorsh:PropertyShape), not inside thesh:sparqlnode. Ash:severitytriple placed inside the SPARQL constraint block is ignored by the engine.
Affected nodes display validation badges directly on the canvas — red for errors, amber for warnings. Clicking a finding in the reasoning report navigates to the affected node.
The store keeps each kind of content in its own named graph. The figure shows which graphs reasoning and validation read, and which graphs a dataset export keeps.
Validation reads one merged triple set straight from the store (nothing is copied): the data graph (urn:vg:data: everything loaded or authored as data, TBox and ABox alike), the loaded ontologies (urn:vg:ontologies), the inferred triples (urn:vg:inferred) of the last reasoning run and the shapes (urn:vg:shapes). Because the class hierarchy of an imported ontology is part of that set, sh:targetClass and sh:class follow rdfs:subClassOf across graphs (a Dog is a target of a shape for Animal when the hierarchy comes from an import), and constraints such as sh:class see types the reasoner derived (a blank node typed by a subclass of the target class conforms). A violation is reported only for a focus node that is a subject in the data graph, so entities of imported ontologies and classes that appear in the inferred graph through reasoning are not flagged. Provenance, workflow and explanation graphs and the loaded-from bookkeeping (urn:vg:loaded-from: which ontology file each subject came from, used to unload an ontology) are not part of the validation input, and none of them is reasoned over. conforms is true exactly when the reported list is empty.
Each validation also reports how many node shapes select at least one focus node in the record (a subject in urn:vg:data) and the focus nodes per such shape, as the engine resolves the targets (implicit class targets, sh:targetClass through rdfs:subClassOf, sh:targetNode, sh:targetSubjectsOf / sh:targetObjectsOf, SPARQL targets). The reasoning report shows it as one line, comparing the last validation without inferred triples with the last one after reasoning when both ran (for example "14 of 270 shapes select nodes in the record; after reasoning 16; newly active: …"); validateGraph returns it as focus and focusComparison, runReasoning as shaclFocus and shaclFocusComparison.
A shape whose validation throws (for example a SPARQL constraint whose query does not parse, such as PREFIX ex: <#> without a base IRI) is reported as one violation naming the shape; the other shapes are still validated. SPARQL queries in shapes get no base IRI (shacl-engine passes none to the query engine), so write absolute IRIs in them.
Blank nodes are validated as blank nodes (the store holds real blank nodes; results name them by their urn:vg:bnode:<label> id). As in the SHACL spec, sh:targetClass also targets them, so a shape that should skip anonymous nodes (for example the label check on owl:Class, which would otherwise flag every restriction and union) uses a SPARQL target with FILTER(isIRI(?this)), as the bundled ontology-quality shapes do for owl:Class.
Consequence for sh:closed shapes: inferred triples count as data. A closed shape that does not list an inferred property (for example the inverse of an owl:inverseOf property) reports a violation after reasoning, as HermiT with pySHACL would. To validate the data graph alone, run validateGraph before reasoning or after clearInferred.
| Method | Description |
|---|---|
?shaclShapes= URL parameter | Direct .ttl URL, GitHub folder URL, or comma-separated list |
| Settings → SHACL tab | Persistent shapes URL with bundled presets |
MCP tool loadShaclFromUrl | AI-agent-driven shape loading |
When neither ?shaclShapes= nor the Settings URL names shapes, the built-in ontology-quality shapes load at startup. Shapes loaded any other way are never mixed with them.
Shapes are loaded into the urn:vg:shapes named graph, which is excluded from OWL reasoning. Each shape file is parsed with its URL as base IRI. A file that cannot be fetched or does not parse is skipped with a console warning and a notice in the app; loadShaclFromUrl then returns success: false naming the failed and the loaded files (the loaded ones stay loaded). Invalid Turtle is never repaired. The sidebar SHACL Shapes panel shows loaded shapes with their target classes, constraint messages, and severity levels.
| Preset | Target | Checks | Severity |
|---|---|---|---|
| Ontology Quality (default) | named owl:Class, owl:ObjectProperty, owl:DatatypeProperty, skos:Concept, skos:ConceptScheme | a label (rdfs:label, skos:prefLabel or dcterms:title), at most one label per language, no rdfs:subClassOf cycles (one SPARQL target query over the graph) | Warning |
| Ontology Documentation | the same entities | the default checks plus a definition (rdfs:comment, skos:definition or obo:IAO_0000115), rdfs:domain, rdfs:range, skos:inScheme, language-tagged labels, classes not connected to anything | Info |
| Reasoning Demo | ex:Project, ex:Contractor, ex:Employee, owl:NamedIndividual | Missing descriptions, supervisors, job titles | Violation, Warning |
| xpSHACL shark_shapes | classes and properties | Guideline checks with SPARQL constraints | every finding is a Violation (the file sets no sh:severity); runs one query per node, about a minute on pmdco-full |
sh:Info findings are listed in the reasoning report on request (Warnings tab) and do not count as warnings or draw canvas badges. The documentation checks are opt-in because domain and range are a style choice (many ontologies, BFO-based ones among them, use restrictions instead) and because they produce long lists on large ontologies. Select the preset in Settings → SHACL, or pass both files: ?shaclShapes=<origin>/shacl-shapes/ontology-quality.shacl.ttl,<origin>/shacl-shapes/ontology-documentation.shacl.ttl.
To report on a computed set of nodes (cycles, orphans) use one sh:SPARQLTarget plus a constraint that fails for every selected node (sh:not [ sh:nodeKind sh:IRI ]), not a sh:sparql constraint: a constraint runs one SPARQL query per focus node (about 50 ms each, a minute for 1,300 classes), a target runs once.
The SHACL demo loads the reasoning-demo ontology with purpose-built shapes that produce both errors and warnings:
After loading, click ▶ (Run Reasoning) in the toolbar. The report will show:
projectAlpha missing rdfs:comment; frank (Contractor) missing ex:hasSupervisorex:jobTitle; all individuals missing rdfs:commentEach finding links to the affected node — click to close the dialog and navigate to it on the canvas. Error and warning badges appear directly on affected nodes.
Open the PMD Core chemical-composition pattern with the PMD Core ontology and the community auto-shapes (270 shapes, pinned to the commit the demo was recorded against):
?rdfUrl=<core-ontology>/refs/heads/main/patterns/chemical%20composition/shape-data.ttl
&ontology=pmdco
&shaclShapes=<core-ontology>/<commit>/patterns/autoshape/auto-shapes-open.ttl
Run reasoning to see the SHACL findings. With the ontology and the shapes both pinned to their June 2026 commits, the story ends with one violation, some_silicon (a semiconductor without a band-gap quality), and the data is consistent; e2e/user-story-pmdco-chemical-composition.spec.ts asserts exactly that. The link above pins the shapes only: ontology=pmdco loads the current PMD Core release, which changed in October 2026 (auto-shapes 270 → 399, new pmdco.ttl), so the findings there can differ. Because ?shaclShapes= is given, the built-in ontology-quality shapes are not applied.
To open the full PMD Core ontology itself as data (?rdfUrl=<core-ontology>/refs/heads/main/pmdco-full.ttl), the built-in ontology-quality shapes apply, since no shapes are named. The default checks report only the few unlabelled or duplicate-label entities (as warnings); with the Ontology Documentation preset expect a few hundred sh:Info findings. Only sh:Violation marks the data invalid.
Ontosphere supports several URL query parameters that control what is loaded on startup.
| Parameter | Aliases | Description |
|---|---|---|
rdfUrl | url, vg_url | HTTP(S) URL of an RDF resource to load on startup. |
Supported sources:
Plain RDF files — Turtle (.ttl), N-Triples (.nt), N3, RDF/XML, JSON-LD. Format is detected from Content-Type and file extension.
?rdfUrl=https://example.org/mydata.ttl
SPARQL endpoints — URLs whose path ends with /sparql or /query are recognised automatically. Ontosphere issues a CONSTRUCT { ?s ?p ?o } WHERE { { ?s ?p ?o } UNION { GRAPH ?g { ?s ?p ?o } } } query.
?rdfUrl=https://example.org/fuseki/$/sparql
Fuseki dataset root — Returns the full dataset; named-graph quads are flattened into the data graph.
?rdfUrl=https://docker-dev.iwm.fraunhofer.de/dataset/<uuid>/fuseki/$/
| Parameter | Default | Description |
|---|---|---|
apiKey | — | Value sent as an authentication header with the RDF fetch. |
apiKeyHeader | Authorization | Name of the HTTP header. |
?rdfUrl=https://private-endpoint.example.org/data.ttl
&apiKey=Bearer+my-token
&apiKeyHeader=Authorization
The API key is sent only with the RDF fetch request. CORS: the server must allow the Ontosphere origin with credentials (wildcard * origins are incompatible with authenticated requests).
| Parameter | Description |
|---|---|
ontologies | Comma-separated list of ontologies that replaces the configured autoload list entirely. Each value is a well-known short name (see table below) or a full HTTPS/HTTP URI. Use ?ontologies=owl,rdf,rdfs to load only the W3C core vocabs. |
ontology | Comma-separated list of ontologies to load in addition to the configured autoload list. |
?ontologies=owl,rdf,rdfs # replace defaults — load only W3C core vocabs
?ontology=bfo,dcat # add on top of configured autoload list
?ontology=bfo2020,https://example.org/myontology.ttl
Well-known short names:
| Short name | Ontology |
|---|---|
rdf | RDF Concepts Vocabulary |
rdfs | RDF Schema |
owl | OWL |
skos | SKOS |
prov | PROV-O – The PROV Ontology |
p-plan | P-Plan Ontology |
bfo | BFO 2.0 – Basic Formal Ontology 2.0 |
bfo2020 | BFO 2020 – Basic Formal Ontology 2020 |
dcat | DCAT – Data Catalog Vocabulary |
foaf | FOAF |
dcterms | Dublin Core Terms |
qudt | QUDT |
iof-core | IOF Core |
| Parameter | Default | Description |
|---|---|---|
loadImports | true | Set to false to disable automatic loading of owl:imports referenced in the loaded RDF. Overrides the per-session app setting without persisting it. |
?rdfUrl=https://example.org/data.ttl&loadImports=false
| Parameter | Description |
|---|---|
shaclShapes | URL of SHACL shapes to load on startup. Accepts a direct .ttl URL, a GitHub folder URL, or a comma-separated list. Overrides the configured shapes URL for this session. |
workflowCatalog | off skips the startup load of the PyodideSemanticWorkflow catalog, so urn:vg:workflows stays empty and its ontology stays out of the reasoning input. For headless runs and evaluations. |
?rdfUrl=https://example.org/data.ttl&shaclShapes=/shacl-shapes/ontology-quality.shacl.ttl
http://docker-dev.iwm.fraunhofer.de:8080/
?rdfUrl=https://docker-dev.iwm.fraunhofer.de/dataset/<uuid>/fuseki/$/sparql
&apiKey=<ckan-api-jwt-token>
All startup mechanisms are additive and run in this order:
rdfUrl / url / vg_url)?ontology= URL parameterowl:imports discovery (runs after each load unless ?loadImports=false); imports are followed transitively (each URL once, at most 10 levels and 100 ontologies), and an import that fails to load is reported while the others still load?shaclShapes=, else the Settings shapes URL, else the built-in ontology-quality shapes (written only into an empty shapes graph)MCP tool calls are rejected until all of this has finished (window.__startupComplete() is true).
Ontosphere exposes a full Model Context Protocol tool surface so AI agents can build and reason over knowledge graphs through natural-language chat. See the feat-ai-relay demo video for a walkthrough, or the workflow demos for full AI-driven sessions.
The app has two coupled layers:
addNode / addLink write triples here.addNode to place a subject on canvas. After adding triples, canvas links refresh automatically. Nodes start collapsed — call expandNode (with an IRI to expand one node, or no args to expand all) to reveal annotation property cards.DL reasoning (Konclude) writes inferred triples back to the store and refreshes the canvas.
Every mutating MCP tool call is recorded as a PROV-O edit batch. Three tools expose the journal to agents:
| MCP tool | Purpose |
|---|---|
listAgentEdits | List recorded edit batches (most recent first) with batchId, tool, agent, timestamp, addedCount, removedCount, reverted |
diffAgentEdits | Inspect the exact triples a batch added and removed |
revertAgentBatch | Undo a batch — re-removes its added triples and re-adds its removed triples; idempotent and best-effort |
The sidebar Agent Edits panel surfaces the same journal in the UI: it lists edit batches most-recent-first (tool, timestamp, +added/−removed counts, agent, and a reverted badge), expands each batch to show its added (green) and removed (struck-through red) triples with abbreviated IRIs, and offers a one-click Revert button per batch. The panel refreshes automatically as agents make or revert edits.
The urn:vg:provenance graph is excluded from OWL reasoning, consistency checking, SHACL validation, and data export, so provenance metadata never pollutes the ontology. The edit journal is held in memory; like the rest of the in-memory store it is volatile and cleared on page reload. To keep memory bounded during long autonomous sessions, only the most recent 5 000 edits are retained — older batches are evicted and can no longer be listed or reverted.
An AI agent built this from scratch in one session — full demo with tool calls →
loadOntology (TBox)
→ addNode ×N (ABox individuals, rdf:type set)
→ addLink ×N (object-property triples, edges appear on canvas)
→ runLayout (dagre-lr recommended)
→ expandNode (reveal annotation property cards — omit iri to expand all)
→ runReasoning (infer subClass / domain / range entailments; isConsistent=false signals contradiction)
→ fitCanvas + exportImage (SVG snapshot, token-efficient)
→ exportGraph(turtle) (final deliverable)
| Demo | Final state |
|---|---|
| FOAF social network Build a social network, extend FOAF with employment classes, run reasoning | |
| DL reasoning (Konclude) Build TBox + ABox, infer types via domain/range and transitivity | |
| Scene ontology Load an external ontology, author individuals, export Turtle | |
| Manchester Pizza Tutorial Full OWL pizza ontology — classes, disjointness, properties, DL reasoning |
Ontosphere exposes its full tool surface through several transport paths. Choose based on your AI's execution environment:
| Transport | AI environment | Backend needed? | Setup effort |
|---|---|---|---|
| Browser console | Human operator / devtools | None | None |
| Claude Code + Playwright | Claude Code CLI, headless scripts | None | Low |
| AI Relay Bridge | ChatGPT, Claude.ai, Gemini chat | None | One bookmarklet drag |
| WebMCP native | Chrome 153+ AI-aware browser | None | None (built-in) |
All paths share the same 42 tools and the same McpResult return shape — the transport is the only difference.
Ontosphere registers every tool on window.__mcpTools at startup. Open DevTools on any Ontosphere tab and call tools directly:
// Discover tools
await window.__mcpTools['help']({})
// Add a node
await window.__mcpTools['addNode']({ iri: 'ex:Alice', label: 'Alice', typeIri: 'foaf:Person' })
// Run reasoning
await window.__mcpTools['runReasoning']({})
Results are returned as { success: true, data: ... } or { success: false, error: "..." }.
This is the simplest path — useful for one-off commands, debugging, or when scripting from the DevTools console.
Any AI that can run JavaScript in a browser page — Claude Code with the Playwright MCP server, headless Playwright scripts, or computer-use agents — can call tools directly via window.__mcpTools without a relay.
Claude Code example (using mcp__playwright__browser_evaluate):
// Navigate to Ontosphere first, then call any tool:
await window.__mcpTools['addNode']({ iri: 'ex:Alice', label: 'Alice', typeIri: 'foaf:Person' })
await window.__mcpTools['runReasoning']({})
await window.__mcpTools['exportImage']({ format: 'svg' })
Run the built-in demo scripts against the live deployment:
node scripts/mcp-demo-reasoning.mjs --url https://thhanke.github.io/ontosphere
node scripts/mcp-demo-foaf.mjs --url https://thhanke.github.io/ontosphere
These scripts open a headless browser, navigate to Ontosphere, and drive the full workflow — building TBox + ABox, running reasoning, taking snapshots, and exporting Turtle — exactly as shown in the demo documents.
Full tool declarations with input schemas: public/.well-known/mcp.json
When the AI lives inside a chat UI and cannot execute JavaScript directly, the AI Relay Bridge closes the gap. A bookmarklet watches the AI's output for backtick-wrapped JSON-RPC 2.0 tool calls, executes them in Ontosphere via a BroadcastChannel popup, and injects the results back into the chat input — all in the browser, no server required.
Why BroadcastChannel instead of WebMCP? The WebMCP spec limits
document.modelContexttool execution to the same frame tree. A chat tab (claude.ai, chatgpt.com) and the Ontosphere tab are unrelated browsing contexts and cannot share tools natively. The relay popup bridges them via BroadcastChannel as a conformant complement to the spec.
Full setup guide: docs/relay-bridge.md
Setup (one time):
Starter prompt (copy from the relay panel, or paste manually):
I'm using Ontosphere's browser-based MCP integration. Ontosphere implements the W3C WebMCP API
(document.modelContext) with a polyfill for browsers without native support (Chrome 153+ has it natively).
How the relay works: a bookmarklet on this page watches your responses for backtick-wrapped JSON-RPC 2.0
tool calls. It forwards each call via postMessage to a relay popup, which bridges to the Ontosphere tab
via BroadcastChannel — necessary because WebMCP tool execution is scoped to the same frame tree and
unrelated tabs cannot share document.modelContext tools directly. Results from the live knowledge-graph
instance are injected back into this chat automatically.
Format — one call per response line, backtick-wrapped:
`{"jsonrpc":"2.0","id":<N>,"method":"tools/call","params":{"name":"<tool>","arguments":{...}}}`
The results are live graph state, not simulated. You can decline; I'll run commands manually. If you're
willing, call help first to get the tool list:
`{"jsonrpc":"2.0","id":0,"method":"tools/call","params":{"name":"help","arguments":{}}}`
The relay handles execution and result injection automatically — no manual copy-paste needed.
Ontosphere registers all tools via document.modelContext.registerTool() at startup. In Chrome 153+ (with the WebMCP origin trial enabled), an AI agent running in the same browsing context can discover and execute tools natively:
// Discover tools
const tools = await document.modelContext.getTools()
// Execute a tool
const result = await document.modelContext.executeTool(
tools.find(t => t.name === 'addNode'),
{ iri: 'ex:Alice', label: 'Alice', typeIri: 'foaf:Person' }
)
// result is a JSON string: '{"success":true,"data":{...}}'
In browsers without native support, a conformant polyfill (src/webmcp/polyfill.ts) provides the same API. The window.__mcpTools path (above) remains available as a fallback regardless of browser.
npm install
npm run dev
http://localhost:8080/
Deployment requirement: Konclude's WASM binary uses SharedArrayBuffer (pthreads). The server must send Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: credentialless headers. Localhost deployments have SharedArrayBuffer available without headers. Ontosphere's server.js sets these headers automatically.
Performance: Konclude (rdf-reasoner-konclude 0.9.7), headless Chromium on 8 cores, canvas idle before the run, 3 runs each (scripts/bench-reasoner-phases.mjs; time from the runReasoning call to its return, worker = the reasoner's own time): reasoning-demo 0.90–0.98 s (worker 0.85–0.91 s, 53 inferred), Pizza 1.07–1.12 s (worker 1.0–1.06 s, 170 inferred), PMDCO 2.55–2.63 s (worker 2.5–2.6 s, 289 inferred), GALEN 3.10–3.14 s (worker 3.0–3.06 s, 1,386 inferred; public/bench-galen.nt), LUBM-1 with data 9.9–10.0 s (worker 7.5–7.6 s; 71,025 inferred); the inferred counts equal those of 0.9.5. Small ontologies are dominated by reasoner start-up (about 1 s). The reasoner is the whole cost for everything except LUBM-1: there, rendering the 17,174 individuals and the inferred triples on the canvas keeps the page busy for about 64 s after runReasoning has returned, in chunks. PMDCO took 14.8–15.3 s with reasoner 0.9.0 to 0.9.3 (a C++ exception thrown on every OR branch costs about 25 times more in Chromium than in Node); 0.9.4 removes the cause. Earlier LUBM-1 timings in this README (28.5–85.8 s, 65.6 s) loaded bench-lubm-tbox.owl.xml, which is OWL/XML and cannot be read by the RDF/XML parser, so the reasoner saw no TBox and inferred nothing; they measured only the canvas. Earlier GALEN timings used the same kind of file (bench-galen.owl.xml) and are superseded. See Konclude WASM reasoning performance for reasoner-only numbers. N3: under 2 seconds for typical ontologies (hundreds to a few thousand triples). Try LUBM-1 in the browser (dev server): /?ontologies=&rdfUrl=<origin>/bench-lubm-full.ttl after cat public/bench-lubm-tbox.nt public/bench-lubm-abox.ttl > public/bench-lubm-full.ttl.
window.__VG_STARTUP_TTL — inline Turtle string loaded before any URL parameter.window.__VG_STARTUP_URL — programmatic URL override (takes precedence over rdfUrl).VITE_STARTUP_URL environment variable — build-time default startup URL.document.modelContext does not exist in headless Chromium. Ontosphere ships a conformant polyfill (src/webmcp/polyfill.ts) that installs automatically on app load — but for headless use you can also inject a minimal shim via page.addInitScript before the page loads:
await page.addInitScript(() => {
const tools = {};
const shim = { registerTool: async (tool) => { tools[tool.name] = tool.execute; } };
Object.defineProperty(document, 'modelContext', { value: shim, configurable: true });
// alias for any legacy callers that use navigator.modelContext
Object.defineProperty(navigator, 'modelContext', { get: () => document.modelContext });
window.__mcpTools = tools;
});
// After page load — tools register automatically via the shim.
// You can also call them directly:
await page.evaluate(async ([name, params]) => window.__mcpTools[name](params),
['addNode', { iri: 'ex:alice', typeIri: 'foaf:Person', label: 'Alice' }]);
In a browser with native document.modelContext (Chrome 153+), tools register automatically on app load without any shim.
| Parameter | Effect |
|---|---|
?url=<encoded-url> | Load RDF from URL on startup |
?ontology=foaf | Pre-load FOAF ontology |
?loadImports=false | Skip owl:imports auto-loading |
npm run demo:all
# or individually:
node scripts/run-demo.mjs docs/mcp-demo/seeds/foaf-social-network.md
node scripts/run-demo.mjs docs/mcp-demo/seeds/reasoning-demo.md
node scripts/run-demo.mjs docs/mcp-demo/seeds/scene-ontology.md
node scripts/run-demo.mjs docs/mcp-demo/seeds/pizza-tutorial.md
The reasoning demo showcases OWL 2 DL / SROIQ(D) inference on a small employee ontology: Open demo ↗
The demo (public/reasoning-demo.ttl) defines a Person → Employee → Manager → Executive hierarchy with ABox assertions that drive inference patterns across all OWL 2 DL construct groups:
OWL 1 RL patterns:
ex:hasFriend sub-property of ex:knows: alice hasFriend bob → alice knows bob.ex:isManagedBy inverse of ex:manages: alice manages carol → carol isManagedBy alice.ex:isColleagueOf is symmetric: bob isColleagueOf carol → reverse direction.ex:hasSupervisor is transitive: bob→alice, alice→dave → bob→dave.ex:dave has no type; because he is subject of ex:manages (domain ex:Manager), the reasoner infers dave rdf:type ex:Manager.OWL 2 DL extensions:
6. owl:someValuesFrom — alice and carol each worksOn projectAlpha (a Project) → inferred ProjectContributor.
7. owl:hasValue — carol isManagedBy alice (via inverseOf) → carol inferred DirectReport (hasValue restriction on alice).
8. owl:intersectionOf — dave manages bob (inferred Manager) and eve (Employee) → dave inferred TeamLead.
9. owl:disjointWith — Contractor disjointWith Employee; frank is a Contractor (structural TBox constraint).
10. owl:complementOf — NonEmployee ≡ ¬Employee (structural TBox only).
11. owl:propertyChainAxiom — hasGrandManager ← hasSupervisor ∘ hasSupervisor: carol→bob→alice → carol hasGrandManager alice.
12. owl:unionOf — LeadershipTeam ≡ Executive ∪ Manager: alice (Executive) and dave (inferred Manager) → inferred LeadershipTeam.
13. owl:sameAs — aliceCEO sameAs alice: aliceCEO inherits all of alice's inferred types including Executive.
14. owl:allValuesFrom — DirectorRole ≡ ∀manages.Executive: structural TBox axiom demonstrating universal restrictions.
15. rdfs:domain / rdfs:range — ex:manages has domain ex:Manager and range ex:Employee: dave manages bob → dave rdf:type ex:Manager (domain inference) and bob rdf:type ex:Employee (range inference).
A separate inconsistency demo (public/reasoning-demo-inconsistent.ttl) shows the consistency checker in action:
Open inconsistency demo ↗
inc:frank is asserted as both inc:Employee and inc:Contractor, which are declared owl:disjointWith. Running reasoning produces isConsistent: false, reasoning is skipped, and the report's Errors tab shows the disjointness clash on frank.
Ontosphere fetches remote RDF directly from the browser. If the remote host does not allow cross-origin requests, the fetch will be blocked.
Well-known ontologies (FOAF, SKOS, PROV-O, Dublin Core, QUDT, etc.) are pre-configured with CORS-friendly fetch URLs (W3C, dublincore.org, LOV, qudt.org) and load without any proxy.
Custom ontology URLs that lack CORS headers require a proxy. Configure one in Settings → Advanced → CORS Proxy URL. The proxy must:
https://your-proxy/?url=<encoded>Accept header to the target servertext/turtle, application/rdf+xml, etc.)Note:
corsproxy.iofree tier blocks RDF content types and will not work. Self-hosted options that do work: a Cloudflare Worker using the cors-anywhere pattern, or a local Vite dev-server proxy.
Workarounds for development:
The following debug flags can be set in the browser console to enable diagnostic output. All are gated — they only activate when window.__VG_DEBUG__ is truthy (or config.debugAll is enabled in Settings):
window.__VG_DEBUG__ — master debug gate. Set to true to enable all [VG_*] diagnostic console output.window.__VG_LOG_RDF_WRITES — log RDF triple writes to the console.window.__VG_DEBUG_STACKS__ — capture stack traces in debug messages.window.__VG_DEBUG_SUMMARY__ — read-only object populated by the startup debug harness with fallback and timing data.All flags are also persisted from config.debugAll (toggleable in Settings → Debug). Setting config.debugAll = true via Settings is the recommended way to enable diagnostics without console access.
Access-Control-Allow-Origin).?rdfUrl=... to avoid conflicts.See docs/demo-scripts/HOWTO.md for the full guide. All videos are listed in Video tutorials above.
Three styles of demo video are supported:
Seed-driven — write a seed markdown file in docs/mcp-demo/seeds/ with JSON-RPC
tool calls and ```action UI action blocks. The runner parses the seed and executes each
step (tool calls via window.__mcpTools, UI actions via Playwright locators).
Chat-style (side-by-side) — open demo-stage.html (mock chat left, app right),
inject messages programmatically via addChatMessage(), and call tools on the app
iframe via callToolOnStage(). No relay popup needed. Example: pizza-tutorial-chat.
Feature demos — focused 60–90 second demos, one per feature section. All use
reasoning-demo.ttl as the shared dataset. Seeds mix MCP tool calls with UI action blocks.
To re-record all videos:
npm run demo:video # starts dev server, records, encodes, kills server
npm test.Ontosphere builds on several open-source projects whose authors we gratefully acknowledge.
Core components: Konclude (Andreas Steigmiller, Thorsten Liebig, Birte Glimm; University of Ulm) — OWL 2 DL tableau reasoner, compiled to WebAssembly via rdf-reasoner-konclude; Reactodia (Dmitry Mouromtsev et al.) — visual graph editor; N3.js (Ruben Verborgh, Ruben Taelman) — in-memory RDF store and parser; shacl-engine (Thomas Bergwinkl) — SHACL constraint validation.
Layout & graph algorithms: ELK, Dagre, ngraph.louvain / ngraph.slpa, ml-kmeans.
RDF & SPARQL: @rdfjs/data-model / @rdfjs/dataset, rdf-parse, sparqljs, Comunica.
UI framework: React, Radix UI, Tailwind CSS, Vite, Lucide, shadcn/ui.
This work was supported by the Fraunhofer Institute for Mechanics of Materials IWM.
See ACKNOWLEDGEMENTS.md for full details.
Ontosphere is released under the Apache 2.0 License. The source code, benchmark data, and study scripts are all openly available under the same terms.
The software is archived on Zenodo under the concept DOI
10.5281/zenodo.19605270.
A version-specific DOI is minted automatically by Zenodo for each tagged GitHub release.
Cite using the metadata in CITATION.cff (CFF 1.2.0).
All dependencies are pinned via package-lock.json. A clean, reproducible build from source:
npm ci # install exact locked versions
npm run build # Vite production build → dist/
npm test # unit tests (Vitest)
npm run typecheck:ratchet # TypeScript error ratchet
Docker one-liner (no Node installation required):
# Build the image
docker build -t ontosphere:latest .
# Run the static server (HTTPS on https://localhost:8080)
docker run --rm -p 8080:8080 ontosphere:latest
The container serves HTTPS with a self-signed certificate by default so that
SharedArrayBuffer (required by the OWL WASM reasoner) works on remote hostnames,
not just localhost. Your browser will show a certificate warning on first visit —
accept it to proceed.
To disable HTTPS and serve plain HTTP instead (OWL reasoner will only work on localhost):
docker run --rm -p 8080:8080 -e HTTPS=false ontosphere:latest
The Dockerfile uses a two-stage build (Node 22 slim builder → Node 22 slim server) and pins
the base image by tag. The production stage serves dist/ via a minimal Express static server
(docker-static-server.js) that sets the required cross-origin isolation headers (see below).
The Konclude OWL 2 DL reasoner is compiled to WebAssembly and uses SharedArrayBuffer
(pthreads). Browsers require two HTTP response headers for SharedArrayBuffer to be available:
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: credentialless
Both the development server (server.js) and the Docker production server
(docker-static-server.js) set these headers automatically. If you serve dist/ via a
different static file server (nginx, Caddy, GitHub Pages, etc.), configure it to emit these
headers or the WASM reasoner will silently fall back to a non-threaded mode.
The OntoAuthor-Mat benchmark — six ontology-authoring tasks for materials science covering
OWL 2 DL patterns.
Task data lives in benchmarks/ontoauthor-mat/.
| Task | OWL 2 DL pattern | Domain scenario | SHACL shapes | CQ queries |
|---|---|---|---|---|
| T1 | rdfs:subClassOf (subsumption) | Steel alloy classification hierarchy | 6 | 2 |
| T2 | owl:someValuesFrom (existential) | Composite materials and constituents | 5 | 2 |
| T3 | owl:allValuesFrom (universal) | Certified-only material suppliers | 5 | 2 |
| T4 | owl:disjointWith | Metallic vs. ceramic categories | 5 | 2 |
| T5 | owl:sameAs (identity) | Merging duplicate material entries | 4 | 2 |
| T6 | Unsatisfiability detection | Contradictory material classification | 3 | 2 |
Each task provides a natural-language brief (task.md), a gold-standard OWL 2 DL reference
solution (reference.ttl), SHACL shapes for automated scoring (shapes.ttl), and competency
questions as SPARQL ASK queries (cq.sparql). Scoring runs three axes per task: SHACL
conformance, competency-question pass rate, and reasoning correctness (Konclude classification
or consistency check).
| Task | OWL 2 DL Pattern | SHACL | CQ | Reasoning | Score | Load | SHACL | Reasoning | CQ | Total |
|---|---|---|---|---|---|---|---|---|---|---|
| T1 | Subsumption | 6/6 | 2/2 | ✓ | 9/9 | 1 719 ms | 204 ms | 2 202 ms | 358 ms | 4 484 ms |
| T2 | Existential (∃) | 5/5 | 2/2 | ✓ | 8/8 | 1 742 ms | 197 ms | 2 211 ms | 397 ms | 4 547 ms |
| T3 | Universal (∀) | 5/5 | 2/2 | ✓ | 8/8 | 1 710 ms | 191 ms | 2 235 ms | 386 ms | 4 522 ms |
| T4 | Disjointness | 5/5 | 2/2 | ✓ | 8/8 | 1 704 ms | 192 ms | 2 240 ms | 356 ms | 4 493 ms |
| T5 | owl:sameAs | 4/4 | 2/2 | ✓ | 7/7 | 1 714 ms | 199 ms | 2 211 ms | 375 ms | 4 498 ms |
| T6 | Unsatisfiability | 3/3 | 2/2 | ✓ | 6/6 | 1 706 ms | 191 ms | timeout¹ | 347 ms | 18 249 ms |
| Total | 28/28 | 12/12 | 6/6 | 46/46 | 10.3 s | 1.2 s | 27.1 s | 2.2 s | 40.8 s |
¹ Konclude WASM hangs on the inconsistency check for T6 (disjointness clash); the 15 s timeout is treated as "inconsistent detected". The structural correctness of the contradiction is verified by SHACL + CQ independently of the reasoner. Headless Chromium, Node.js, single run.
# Start the dev server, then:
node scripts/bench-ontoauthor-mat.mjs # all tasks
node scripts/bench-ontoauthor-mat.mjs --task t1 # single task
node scripts/bench-ontoauthor-mat.mjs 2>&1 | tee logs/bench-ontoauthor-mat.log
Benchmark data from rdf-reasoner-konclude comparing native Konclude (Docker) vs the Emscripten WASM port used in Ontosphere.
| Ontology | Expressivity | Triples | Native Konclude | WASM (ingest→result) | WASM / native |
|---|---|---|---|---|---|
| LUBM schema | SHI | 307 | 67 ms | 297 ms | ~4.4× |
| GALEN | SHIF | 30 817 | 322 ms | 1 594 ms | ~5.0× |
| Roberts family ¹ | SROIQ | 3 866 | 40 038 ms | 27 471 ms | ~0.7× |
| LUBM + data | SHI | 100 850 | 1 237 ms | 3 550 ms | ~2.9× |
Package rdf-reasoner-konclude 0.8.0, native = Konclude v0.7.0-1138 in Docker (8 threads), WASM = Emscripten
pthreads under Node.js, medians of 3–5 runs, single shared host (see the package's
benchmark for spreads).
Ratio = WASM / native Konclude. ¹ Full role-closure realization; the native figure is Konclude with
RealizePrecomputation.RoleInstances=true, the like-for-like configuration (WASM always computes the
role closure). The WASM figures exclude the one-off module start (about 0.9 s).
Model identifiers, prompt templates, and archived response logs for all study conditions are provided alongside the benchmark tasks. The model adapter records the exact model ID and sampling parameters used for each run. Raw model outputs (before scoring) are preserved so every reported result can be traced back to a specific model response.
All software, benchmark data, and study scripts are openly available. The source code is hosted at https://github.com/ThHanke/ontosphere and archived on Zenodo at https://doi.org/10.5281/zenodo.19605270. No proprietary or restricted data were used. The live application is deployed at https://thhanke.github.io/ontosphere.
Check the repository root for licence and contributor information.
Loading reviews...
GitHub checked 15h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.