data-shapes-test-suite.tests.sparql.node.prefixes-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: .
sh:declare [
rdf:type sh:PrefixDeclaration ;
sh:namespace "http://datashapes.org/sh/tests/sparql/node/prefixes-001.test#"^^xsd:anyURI ;
sh:prefix "ex" ;
] ;
.
ex:InvalidResource1
ex:property ;
.
ex:TestPrefixes
owl:imports ;
sh:declare [
sh:namespace "http://test.com/ns#"^^xsd:anyURI ;
sh:prefix "test" ;
] ;
.
ex:TestSPARQL
sh:prefixes ex:TestPrefixes ;
sh:select """
SELECT $this ?value
WHERE {
$this ex:property ?value .
FILTER (?value = test:Value) .
} """ ;
.
ex:TestShape
rdf:type sh:NodeShape ;
sh:sparql ex:TestSPARQL ;
sh:targetNode ex:InvalidResource1 ;
sh:targetNode ex:ValidResource1 ;
.
<>
rdf:type mf:Manifest ;
mf:entries (
) ;
.
rdf:type sht:Validate ;
rdfs:label "Test of sh:prefixes 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:InvalidResource1 ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraint ex:TestSPARQL ;
sh:sourceConstraintComponent sh:SPARQLConstraintComponent ;
sh:sourceShape ex:TestShape ;
sh:value ;
] ;
] ;
mf:status sht:approved ;
.