shacl-engine
Version:
A fast RDF/JS SHACL engine
36 lines (30 loc) • 907 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 (<uniqueLang-false>).
ex:TestShape a rdfs:Class, sh:NodeShape;
rdfs:label "Test shape";
sh:property ex:TestShapeProperty.
ex:TestShapeProperty
rdfs:label "test property";
sh:path ex:testProperty;
sh:uniqueLang false.
ex:ValidInstance1 a ex:TestShape;
ex:testProperty
"Me",
"Me"@en,
"Myself"@en,
"Moi"@fr.
<uniqueLang-false> a sht:Validate;
rdfs:label "Test of sh:uniqueLang set to false";
mf:action [
sht:dataGraph <>;
sht:shapesGraph <>
];
mf:result [ a sh:ValidationReport;
sh:conforms true
].