data-shapes-test-suite.tests.core.property.in-001.ttl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdf4j-shacl-testsuite Show documentation
Show all versions of rdf4j-shacl-testsuite Show documentation
Test suite for the SHACL Shapes Constraint Language
The newest version!
@prefix dash: .
@prefix ex: .
@prefix mf: .
@prefix owl: .
@prefix rdf: .
@prefix rdfs: .
@prefix sh: .
@prefix sht: .
@prefix xsd: .
ex:InvalidInstance1
rdf:type ex:ShapeClass ;
ex:property "D" ;
rdfs:label "Invalid instance1" ;
.
ex:ShapeClass
rdf:type rdfs:Class ;
rdf:type sh:NodeShape ;
sh:property ex:ShapeClass-property ;
.
ex:ShapeClass-property
sh:path ex:property ;
sh:datatype xsd:string ;
sh:in (
"A"
"B"
"C"
) ;
.
ex:ValidInstance1
rdf:type ex:ShapeClass ;
ex:property "A" ;
rdfs:label "Valid instance1" ;
.
ex:ValidInstance2
rdf:type ex:ShapeClass ;
ex:property "A" ;
ex:property "B" ;
ex:property "C" ;
rdfs:label "Valid instance2" ;
.
<>
rdf:type mf:Manifest ;
mf:entries (
) ;
.
rdf:type sht:Validate ;
rdfs:label "Test of sh:in at property shape 001" ;
mf:action [
sht:dataGraph <> ;
sht:shapesGraph <> ;
] ;
mf:result [
rdf:type sh:ValidationReport ;
sh:conforms "false"^^xsd:boolean ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode ex:InvalidInstance1 ;
sh:resultPath ex:property ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:InConstraintComponent ;
sh:sourceShape ex:ShapeClass-property ;
sh:value "D" ;
] ;
] ;
mf:status sht:approved ;
.