shacl-engine
Version:
A fast RDF/JS SHACL engine
28 lines (23 loc) • 725 B
text/turtle
@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 sht: <http://www.w3.org/ns/shacl-test#>.
<> a mf:Manifest;
mf:entries (<closed-false>).
<closed-false> a sht:Validate;
rdfs:label "Test of sh:closed set to false";
mf:action [
sht:dataGraph <>;
sht:shapesGraph <>
];
mf:result [ a sh:ValidationReport;
sh:conforms true
].
ex:MyShape a sh:NodeShape;
sh:closed false;
sh:targetNode ex:ValidInstance1.
ex:ValidInstance1
ex:otherProperty 4;
ex:someProperty 3.