Skip to content

#276: Unify ex namespace usage in tests #362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 105 additions & 105 deletions shacl12-test-suite/tests/core/complex/personexample.ttl
Original file line number Diff line number Diff line change
@@ -1,105 +1,105 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix ex: <http://datashapes.org/sh/tests/core/complex/personexample.test#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix sht: <http://www.w3.org/ns/shacl-test#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:Alice
rdf:type ex:Person ;
ex:ssn "987-65-432A" ;
.
ex:Bob
rdf:type ex:Person ;
ex:ssn "123-45-6789" ;
ex:ssn "124-35-6789" ;
.
ex:Calvin
rdf:type ex:Person ;
ex:birthDate "1999-09-09"^^xsd:date ;
ex:worksFor ex:UntypedCompany ;
.
ex:PersonShape
rdf:type sh:NodeShape ;
sh:closed "true"^^xsd:boolean ;
sh:ignoredProperties (
rdf:type
) ;
sh:property _:b61064 ;
sh:property _:b60054 ;
sh:property [
sh:path [
sh:inversePath ex:worksFor ;
] ;
sh:name "employee" ;
] ;
sh:targetClass ex:Person ;
.
_:b61064
sh:path ex:ssn ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:pattern "^\\d{3}-\\d{2}-\\d{4}$"
.
_:b60054
sh:path ex:worksFor ;
sh:class ex:Company ;
sh:nodeKind sh:IRI
.
<>
rdf:type mf:Manifest ;
mf:entries (
<personexample>
) ;
.
<personexample>
rdf:type sht:Validate ;
rdfs:label "Test of personexample" ;
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:Alice ;
sh:resultPath ex:ssn ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:PatternConstraintComponent ;
sh:sourceShape _:b61064 ;
sh:value "987-65-432A" ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode ex:Bob ;
sh:resultPath ex:ssn ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:MaxCountConstraintComponent ;
sh:sourceShape _:b61064 ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode ex:Calvin ;
sh:resultPath ex:birthDate ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:ClosedConstraintComponent ;
sh:sourceShape ex:PersonShape ;
sh:value "1999-09-09"^^xsd:date ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode ex:Calvin ;
sh:resultPath ex:worksFor ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:ClassConstraintComponent ;
sh:sourceShape _:b60054 ;
sh:value ex:UntypedCompany ;
] ;
] ;
mf:status sht:approved ;
.
@prefix dash: <http://datashapes.org/dash#> .
@prefix ex: <http://example.com/ns#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix sht: <http://www.w3.org/ns/shacl-test#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:Alice
rdf:type ex:Person ;
ex:ssn "987-65-432A" ;
.
ex:Bob
rdf:type ex:Person ;
ex:ssn "123-45-6789" ;
ex:ssn "124-35-6789" ;
.
ex:Calvin
rdf:type ex:Person ;
ex:birthDate "1999-09-09"^^xsd:date ;
ex:worksFor ex:UntypedCompany ;
.
ex:PersonShape
rdf:type sh:NodeShape ;
sh:closed "true"^^xsd:boolean ;
sh:ignoredProperties (
rdf:type
) ;
sh:property _:b61064 ;
sh:property _:b60054 ;
sh:property [
sh:path [
sh:inversePath ex:worksFor ;
] ;
sh:name "employee" ;
] ;
sh:targetClass ex:Person ;
.
_:b61064
sh:path ex:ssn ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:pattern "^\\d{3}-\\d{2}-\\d{4}$"
.
_:b60054
sh:path ex:worksFor ;
sh:class ex:Company ;
sh:nodeKind sh:IRI
.
<>
rdf:type mf:Manifest ;
mf:entries (
<personexample>
) ;
.
<personexample>
rdf:type sht:Validate ;
rdfs:label "Test of personexample" ;
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:Alice ;
sh:resultPath ex:ssn ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:PatternConstraintComponent ;
sh:sourceShape _:b61064 ;
sh:value "987-65-432A" ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode ex:Bob ;
sh:resultPath ex:ssn ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:MaxCountConstraintComponent ;
sh:sourceShape _:b61064 ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode ex:Calvin ;
sh:resultPath ex:birthDate ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:ClosedConstraintComponent ;
sh:sourceShape ex:PersonShape ;
sh:value "1999-09-09"^^xsd:date ;
] ;
sh:result [
rdf:type sh:ValidationResult ;
sh:focusNode ex:Calvin ;
sh:resultPath ex:worksFor ;
sh:resultSeverity sh:Violation ;
sh:sourceConstraintComponent sh:ClassConstraintComponent ;
sh:sourceShape _:b60054 ;
sh:value ex:UntypedCompany ;
] ;
] ;
mf:status sht:approved ;
.
2 changes: 1 addition & 1 deletion shacl12-test-suite/tests/core/misc/deactivated-001.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix ex: <http://datashapes.org/sh/tests/core/misc/deactivated-001.test#> .
@prefix ex: <http://example.com/ns#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down
2 changes: 1 addition & 1 deletion shacl12-test-suite/tests/core/misc/deactivated-002.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix ex: <http://datashapes.org/sh/tests/core/misc/deactivated-002.test#> .
@prefix ex: <http://example.com/ns#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down
2 changes: 1 addition & 1 deletion shacl12-test-suite/tests/core/misc/message-001.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix ex: <http://datashapes.org/sh/tests/core/misc/message-001.test#> .
@prefix ex: <http://example.com/ns#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down
2 changes: 1 addition & 1 deletion shacl12-test-suite/tests/core/misc/severity-001.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix ex: <http://datashapes.org/sh/tests/core/misc/severity-001.test#> .
@prefix ex: <http://example.com/ns#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down
2 changes: 1 addition & 1 deletion shacl12-test-suite/tests/core/misc/severity-002.ttl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@prefix dash: <http://datashapes.org/dash#> .
@prefix ex: <http://datashapes.org/sh/tests/core/misc/severity-002.test#> .
@prefix ex: <http://example.com/ns#> .
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
Expand Down
Loading