data-shapes-test-suite.tests.core.misc.message-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:datatype xsd:integer ;
sh:message "Test message"@en ;
sh:targetNode ex:InvalidNode ;
.
<>
rdf:type mf:Manifest ;
mf:entries (
) ;
.
rdf:type sht:Validate ;
rdfs:label "Test of custom sh:message 001" ;
rdfs:comment """
Note: This test verifies that the sh:message is copied into sh:resultMessage.
To pass this test, the test harness needs to preserve all sh:resultMessage triples
that are mentioned in the 'expected' results graph.""" ;
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:InvalidNode ;
sh:resultMessage "Test message"@en ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
sh:sourceShape ex:TestShape ;
sh:value ex:InvalidNode ;
] ;
] ;
mf:status sht:approved ;
.