-
Notifications
You must be signed in to change notification settings - Fork 38
added sh:conformanceDisallows, updated conformance-definition #555
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
bergos
wants to merge
12
commits into
gh-pages
Choose a base branch
from
issue-453
base: gh-pages
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c0e5a33
added sh:conformanceDisallows, updated conformance-definition
bergos 0e2bfa2
improved conformance definition language, fixed tabs vs. spaces
bergos 7763a7c
added not about def conformance disallow set, updated severity section
bergos efe67da
Apply suggestions from code review
bergos 6780a73
improved naming for conformance-disallow set, describe default set
bergos 3501c70
Update shacl12-core/index.html
bergos 9c8816e
added conformanceDisallows to changes section
bergos 3fef285
fixed whitespace
bergos a43a352
Add tests demonstrating conformanceDisallows
ajnelson-nist 313dc04
Update shacl12-core/index.html
YoucTagh 7572b4d
Update shacl12-core/index.html
YoucTagh 42d61a5
Update shacl12-core/index.html
YoucTagh 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
Some comments aren't visible on the classic Files Changed page.
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
56 changes: 56 additions & 0 deletions
56
shacl12-test-suite/tests/core/validation-reports/conformance-disallows-001.ttl
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,56 @@ | ||
@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:PersonShape | ||
rdf:type sh:NodeShape ; | ||
sh:property ex:PersonShape-age ; | ||
sh:targetNode ex:Person ; | ||
. | ||
ex:PersonShape-age | ||
rdf:type sh:PropertyShape ; | ||
sh:path ex:age ; | ||
sh:severity sh:Warning ; | ||
sh:datatype xsd:integer ; | ||
. | ||
ex:Bob | ||
rdf:type ex:Person ; | ||
ex:age "twenty two" ; | ||
. | ||
<> | ||
rdf:type mf:Manifest ; | ||
mf:entries ( | ||
<conformance-disallows-001> | ||
) ; | ||
. | ||
<conformance-disallows-001> | ||
rdf:type sht:Validate ; | ||
rdfs:label "Test of path sh:conformanceDisallows 001" ; | ||
rdfs:comment "conformanceDisallows presence lets sh:conforms be true despite presence of an sh:Warning-severity result. Test contents and behavior otherwise match conformance-disallows-002."@en ; | ||
rdfs:seeAlso <conformance-disallows-002> ; | ||
mf:action [ | ||
sht:dataGraph <> ; | ||
sht:shapesGraph <> ; | ||
] ; | ||
mf:result [ | ||
rdf:type sh:ValidationReport ; | ||
sh:conforms "true"^^xsd:boolean ; | ||
sh:conformanceDisallows sh:Violation ; | ||
sh:result [ | ||
rdf:type sh:ValidationResult ; | ||
sh:resultSeverity sh:Warning ; | ||
sh:focusNode ex:Bob ; | ||
sh:resultPath ex:age ; | ||
sh:value "twenty two" ; | ||
sh:resultMessage "ex:age expects a literal of datatype xsd:integer." ; | ||
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; | ||
sh:sourceShape ex:PersonShape-age ; | ||
] | ||
] ; | ||
mf:status sht:approved ; | ||
. |
55 changes: 55 additions & 0 deletions
55
shacl12-test-suite/tests/core/validation-reports/conformance-disallows-002.ttl
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,55 @@ | ||
@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:PersonShape | ||
rdf:type sh:NodeShape ; | ||
sh:property ex:PersonShape-age ; | ||
sh:targetNode ex:Person ; | ||
. | ||
ex:PersonShape-age | ||
rdf:type sh:PropertyShape ; | ||
sh:path ex:age ; | ||
sh:severity sh:Warning ; | ||
sh:datatype xsd:integer ; | ||
. | ||
ex:Bob | ||
rdf:type ex:Person ; | ||
ex:age "twenty two" ; | ||
. | ||
<> | ||
rdf:type mf:Manifest ; | ||
mf:entries ( | ||
<conformance-disallows-002> | ||
) ; | ||
. | ||
<conformance-disallows-002> | ||
rdf:type sht:Validate ; | ||
rdfs:label "Test of path sh:conformanceDisallows 002" ; | ||
rdfs:comment "conformanceDisallows absence causes sh:conforms be false due to presence of an sh:Warning-severity result. Test contents and behavior otherwise match conformance-disallows-001."@en ; | ||
rdfs:seeAlso <conformance-disallows-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:resultSeverity sh:Warning ; | ||
sh:focusNode ex:Bob ; | ||
sh:resultPath ex:age ; | ||
sh:value "twenty two" ; | ||
sh:resultMessage "ex:age expects a literal of datatype xsd:integer." ; | ||
sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; | ||
sh:sourceShape ex:PersonShape-age ; | ||
] | ||
] ; | ||
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
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.