-
Notifications
You must be signed in to change notification settings - Fork 30
#300: Added support for RDF 1.2 triple terms #368
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
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f8242fc
#300: Added support for RDF 1.2 triple terms
bergos 7551c02
Update shacl12-test-suite/tests/core/node/reifiableBy-001.ttl
bergos de746c3
Limit path for reification to IRIs
bergos 345eb4c
Improved reifiableBy definitions, moved sh:path constraint
bergos 48bef5e
Apply suggestions from code review
bergos c598b86
Apply suggestions from code review
bergos 3ced0c9
Renamed to sh:reifierShape
bergos 2c0a282
fix: reifierShape: corrected label, improved definition, moved sh:pat…
bergos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
@prefix dash: <http://datashapes.org/dash#> . | ||
@prefix ex: <http://datashapes.org/sh/tests/core/node/reifierShape-001.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:InvalidResource1 | ||
ex:propertyA "invalid" {| | ||
ex:propertyB false ; | ||
|} ; | ||
. | ||
ex:ReifyShape | ||
rdf:type sh:NodeShape ; | ||
sh:property ex:ReifyShape-propertyB ; | ||
. | ||
ex:ReifyShape-propertyB | ||
sh:path ex:propertyB ; | ||
sh:in ( true ) ; | ||
. | ||
ex:TestShape | ||
rdf:type sh:NodeShape ; | ||
rdfs:label "Test shape" ; | ||
sh:property ex:TestShape-propertyA ; | ||
sh:targetNode ex:InvalidResource1 ; | ||
sh:targetNode ex:ValidResource1 ; | ||
. | ||
ex:TestShape-propertyA | ||
sh:path ex:propertyA ; | ||
sh:reifierShape ex:ReifyShape ; | ||
. | ||
ex:ValidResource1 | ||
ex:propertyA "valid" {| | ||
ex:properrtyB true ; | ||
|} ; | ||
. | ||
<> | ||
rdf:type mf:Manifest ; | ||
mf:entries ( | ||
<reifierShape-001> | ||
) ; | ||
. | ||
<reifierShape-001> | ||
rdf:type sht:Validate ; | ||
rdfs:label "Test of sh:reifierShape 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:sourceConstraintComponent sh:ReifierShapeConstraintComponent ; | ||
sh:sourceShape ex:TestShape-propertyA ; | ||
sh:value "invalid" ; | ||
] ; | ||
] ; | ||
mf:status sht:approved ; | ||
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
@prefix dash: <http://datashapes.org/dash#> . | ||
@prefix ex: <http://datashapes.org/sh/tests/core/node/reifierShape-002.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:InvalidResource1 | ||
ex:propertyA "invalid" ; | ||
. | ||
ex:ReifyShape | ||
rdf:type sh:NodeShape ; | ||
sh:property ex:ReifyShape-propertyB ; | ||
. | ||
ex:ReifyShape-propertyB | ||
sh:path ex:propertyB ; | ||
. | ||
ex:TestShape | ||
rdf:type sh:NodeShape ; | ||
rdfs:label "Test shape" ; | ||
sh:property ex:TestShape-propertyA ; | ||
sh:targetNode ex:InvalidResource1 ; | ||
sh:targetNode ex:ValidResource1 ; | ||
. | ||
ex:TestShape-propertyA | ||
sh:path ex:propertyA ; | ||
sh:reifierShape ex:ReifyShape ; | ||
sh:reificationRequired true ; | ||
. | ||
ex:ValidResource1 | ||
ex:propertyA "valid" {| | ||
ex:properrtyB true ; | ||
|} ; | ||
. | ||
<> | ||
rdf:type mf:Manifest ; | ||
mf:entries ( | ||
<reifierShape-002> | ||
) ; | ||
. | ||
<reifierShape-002> | ||
rdf:type sht:Validate ; | ||
rdfs:label "Test of sh:reifierShape 002 with sh:reificationRequired" ; | ||
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:sourceConstraintComponent sh:ReifierShapeConstraintComponent ; | ||
sh:sourceShape ex:TestShape-propertyA ; | ||
sh:value "invalid" ; | ||
] ; | ||
] ; | ||
mf:status sht:approved ; | ||
. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.