data-shapes-test-suite.tests.core.node.pattern-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:TestShape
rdf:type sh:NodeShape ;
sh:pattern "^[2-8][0-9]*$" ;
sh:targetClass ex:TestClass ;
sh:targetNode ex:Test ;
sh:targetNode 20000123 ;
sh:targetNode "3456" ;
sh:targetNode 39 ;
sh:targetNode "777777"@mi ;
sh:targetNode 9 ;
sh:targetNode "John" ;
.
<>
rdf:type mf:Manifest ;
mf:entries (
) ;
.
rdf:type sht:Validate ;
rdfs:label "Test of sh:pattern at node 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:Test ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:PatternConstraintComponent ;
sh:sourceShape ex:TestShape ;
sh:value ex:Test ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode 9 ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:PatternConstraintComponent ;
sh:sourceShape ex:TestShape ;
sh:value 9 ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode "John" ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:PatternConstraintComponent ;
sh:sourceShape ex:TestShape ;
sh:value "John" ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode _:b22415 ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:PatternConstraintComponent ;
sh:sourceShape ex:TestShape ;
sh:value _:b22415 ;
] ;
] ;
mf:status sht:approved ;
.
_:b22415
rdf:type ex:TestClass ;
.