![JAR search and dependency download from the Maven repository](/logo.png)
data-shapes-test-suite.tests.core.property.maxCount-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:InvalidPerson
rdf:type ex:Person ;
ex:firstName "George" ;
ex:firstName "John" ;
rdfs:label "Invalid person" ;
.
ex:Person
rdf:type rdfs:Class ;
rdfs:label "Person" ;
rdfs:subClassOf rdfs:Resource ;
.
ex:PersonShape
rdf:type sh:NodeShape ;
sh:property ex:PersonShape-firstName ;
sh:targetClass ex:Person ;
sh:targetNode ex:ValidResource ;
.
ex:PersonShape-firstName
sh:path ex:firstName ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
.
ex:ValidResource
rdf:type ex:Person ;
ex:firstName "John" ;
rdfs:label "Valid resource" ;
.
<>
rdf:type mf:Manifest ;
mf:entries (
) ;
.
rdf:type sht:Validate ;
rdfs:label "Test of sh:maxCount 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:InvalidPerson ;
sh:resultPath ex:firstName ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:MaxCountConstraintComponent ;
sh:sourceShape ex:PersonShape-firstName ;
] ;
] ;
mf:status sht:approved ;
.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy