Expand description
W3C sh:ValidationReport generation (component-granular, RDF-driven).
Producing a spec-faithful report needs provenance the optimized algebra
discards: each result carries sh:sourceConstraintComponent,
sh:sourceShape, and sh:resultPath, and the granularity is one result per
(focus, value node, component) — sh:and/sh:or/sh:not/sh:node report
as a unit (they do not drill into sub-failures), while sh:property
delegates to the nested shape. So this validator walks the shapes graph
directly, reusing only the leaf evaluation primitives (succ,
value_type_holds). It is separate from the algebra path used for fast
conformance.
Coverage is a growing subset of SHACL Core (see docs/BACKLOG.md).
Structs§
- Property
Witness - The observed binding of one
sh:propertyshape at one conforming focus node — the inverse of a violation: not what failed, but what a passing property shape’ssh:pathactually resolved to. - Validation
Report - Validation
Result - One
sh:ValidationResult.
Functions§
- evaluate_
function_ expression - Evaluate a SPARQL expression (a
dash:expressionfunction-call string such asex:fn("A", "B")) against thesh:SPARQLFunctions declared inshapes, returning the result term. Drivesdash:FunctionTestCases and exposes SHACL functions as a standalone capability. The document’s prefixes and base form the query prologue so prefixed function names resolve. - property_
witnesses_ graphs_ with_ mode - Collect
PropertyWitnesses for everysh:propertyshape (reached throughsh:property,sh:and, andsh:nodefrom a target/profile node shape) at every focus node that conforms to that node shape — the inverse ofvalidate_report_graphs_with_mode.key_path, when given, is evaluated from each property shape’s own node over the shapes graph to produce a stablePropertyWitness::key; property shapes where it resolves to no value fall back to their own source node as the key. - property_
witnesses_ graphs_ with_ mode_ and_ options property_witnesses_graphs_with_modewith an explicit severity policy, so conformance agrees exactly withvalidate_report_graphs_with_mode_and_optionsunder the same options.- report_
to_ graph - Serialize a report as an RDF
sh:ValidationReportgraph (W3C shape). - validate_
report - Validate
dataagainst the shapes inshapes, producing a W3C report. - validate_
report_ graphs - Validate split data and shapes graphs using the selected graph mode.
- validate_
report_ graphs_ with_ mode - Validate split data and shapes graphs using an explicit graph mode.
- validate_
report_ graphs_ with_ mode_ and_ options - Validate split graphs with an explicit graph mode and severity policy.
- validate_
report_ with_ options - Validate and build a W3C report using an explicit severity policy.