UNPKG

shacl-engine

Version:
38 lines (34 loc) 1.02 kB
@prefix ex: <http://example.org/>. @prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#>. @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>. @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>. @prefix sh: <http://www.w3.org/ns/shacl#>. @prefix shn: <https://schemas.link/shacl-next#>. @prefix sht: <http://www.w3.org/ns/shacl-test#>. <> a mf:Manifest; mf:entries (<debug>). ex:shape a sh:NodeShape; sh:targetNode ex:resource; sh:sparql [ sh:select """ SELECT $this WHERE { $this <http://example.org/property> ?a. } """ ]. <debug> a sht:Validate; rdfs:label "Test debug result"; mf:action [ sht:dataGraph <>; sht:shapesGraph <> ]; mf:result [ a sh:ValidationReport; sh:conforms true; sh:result [ a sh:ValidationResult; sh:focusNode ex:resource; sh:resultSeverity shn:Debug; sh:sourceConstraint []; sh:sourceConstraintComponent sh:SPARQLConstraintComponent; sh:sourceShape ex:shape ] ].