data-shapes-test-suite.tests.core.property.hasValue-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:InvalidMalePerson
rdf:type ex:MalePerson ;
ex:gender "female" ;
rdfs:label "Invalid male person" ;
.
ex:MalePerson
rdf:type rdfs:Class ;
rdfs:label "Male person" ;
rdfs:subClassOf rdfs:Resource ;
.
ex:PersonShape
rdf:type sh:NodeShape ;
rdfs:label "Person shape" ;
sh:property ex:PersonShape-gender ;
sh:targetClass ex:MalePerson ;
.
ex:PersonShape-gender
sh:path ex:gender ;
rdfs:label "gender" ;
sh:datatype xsd:string ;
sh:hasValue "male" ;
.
ex:ValidMalePerson1
rdf:type ex:MalePerson ;
ex:gender "male" ;
.
ex:ValidMalePerson2
rdf:type ex:MalePerson ;
ex:gender "female" ;
ex:gender "male" ;
.
<>
rdf:type mf:Manifest ;
mf:entries (
) ;
.
rdf:type sht:Validate ;
rdfs:label "Test of sh:hasValue 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:InvalidMalePerson ;
sh:resultPath ex:gender ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:HasValueConstraintComponent ;
sh:sourceShape ex:PersonShape-gender ;
] ;
] ;
mf:status sht:approved ;
.