UNPKG

shacl-engine

Version:
24 lines (20 loc) 731 B
@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 (<targetNode-non-existing>). ex:MyShape a sh:NodeShape; sh:class ex:TheClass; sh:targetNode ex:Instance1. <targetNode-non-existing> a sht:Validate; rdfs:label "Test of sh:targetNode absent from data graph"; mf:action [ sht:dataGraph <targetNode-non-existing-data.ttl>; sht:shapesGraph <> ]; mf:result [ a sh:ValidationReport; sh:conforms true ].