Repository navigation
Reasoner 0.9.7, SHACL focus counts and an entailment verdict, repair weakening for several axioms, and warnings where the reasoner or a shape file silently dropped input.
Added
- Focus counts in validation.
validateGraphreturnsfocus(nodeShapes,shapesWithFocus,perShape) and, once validation ran with and without inferred triples,focusComparison;runReasoningreturnsshaclFocusandshaclFocusComparison. The reasoning report shows one line with the counts, so a shape that selects nothing is told apart from a conforming one. explainEntailmentreturnsverdict:entailed,not-entailed(a decided answer) orundetermined(the check could not decide;isEntailedisnull,undeterminedKindandreasonsay why). An undecided answer is not cached.explainDiagnosticstakesassessGuardCost. Each deletion repair that restores consistency on its own then carriesguardImpact: the declared class-disjointness guards it destroys, with the verdictrestores-consistency-with-collateralwhen it deletes a constraint the ontology used to reject modelling errors with.exportGraphformatjsonld-dataset: one JSON-LD graph object per named graph.owl:importsare followed transitively, with a visited set and limits.- Ill-typed literals show as warnings in the reasoning report. Numeric and boolean literals outside their datatype (
"5abc"^^xsd:integer,"300"^^xsd:byte, integers beyond 64 bits) are dropped by the reasoner and so do not make an ontology inconsistent. The report lists each one (rulereasoner:ill-typed-literal, linked to the subject) and says the reasoner ignores it; beyond the first few it adds a count of the rest. - Setting "Write the full class hierarchy" (Konclude backend, off by default,
reasonerClosurein the app config). On, the reasoner also writes every transitiverdfs:subClassOfpair into the inferred graph (about 6-9 times the hierarchy triples). Needed only when SPARQL or SHACL should see the whole hierarchy without reasoning; entailment checks and explanations do not need it. - Failed SHACL shape files are shown in the SHACL panel. A file that cannot be fetched or parsed gives a red "N failed" badge on the SHACL Shapes header, a dot on the collapsed sidebar button and an alert listing each file with its error, until the next load. Before, only a toast told the user. The MCP tool
loadShacl(inline Turtle) reports through the same track.
Changes to behaviour
- A shape whose validation throws is reported as one violation naming the shape; the other shapes are still validated.
- Shape files are parsed with their URL as base IRI. A file that cannot be fetched or parsed is skipped with a warning and a notice;
loadShaclFromUrlthen names the failed and the loaded files. - SPARQL updates run through
queryGraphare journaled as agent edits. - Loaded-from bookkeeping lives in
urn:vg:loaded-from, which is excluded from reasoning and from the SHACL view and exported as its own graph. Named graphs of imported TriG and N-Quads files other than theurn:vg:*graphs go to the import's target graph. - Weakening is offered for repair sets of several axioms when the installed reasoner accepts
WeakenOptions.alsoRemove(WEAKEN_ACCEPTS_ALSO_REMOVEinreasonerCapabilities.ts, on sincerdf-reasoner-konclude0.9.7). Without it a culprit is weakened on its own, as before. - DL-safe SWRL rules (
swrl:Imp) in the data are applied during reasoning (reasoner 0.9.7 default); their consequences appear as inferred triples. Rules withswrlb:*built-ins are skipped. No rules, no cost.
Dependencies
rdf-reasoner-konclude0.9.6 → 0.9.7 (pinned). W3C OWL 2 DL test suite: consistency 265 of 266 correct (247 before), entailment 68 of 84 (60 before);isEntailednow decidessameAs,equivalentProperty, domain, range and subclass over the transitive closure. Benchmarks in the browser are unchanged: reasoning-demo 0.90-0.98 s (53 inferred), Pizza 1.07-1.12 s (170), PMDCO 2.55-2.63 s (289), GALEN 3.10-3.14 s (1,386), LUBM-1 with data 9.9-10.0 s (71,025); the inferred counts equal those of 0.9.5.
Fixes
- The four type errors of the typecheck baseline are fixed (
replaceAllneededlibES2021, a report-message helper takes warnings, a WebMCP input cast); the baseline is now 0.
Full Changelog: v1.8.1...v.1.8.2