-
Notifications
You must be signed in to change notification settings - Fork 34
Issue 172: Support for sh:closed sh:ByTypes
#399
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
Conversation
Co-authored-by: Thomas Bergwinkl <bergos@users.noreply.github.com>
sh:closed sh:ByTypes
Co-authored-by: Ted Thibodeau Jr <tthibodeau@openlinksw.com>
shacl12-core/index.html
Outdated
function collectProperties(S) | ||
add all IRI properties that can be reached from S via the SPARQL path | ||
sh:property/sh:path | ||
if S is a SHACL instance of rdfs:Class in the shapes graph { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is rdfs:Class
correct to use here, in light of the lengthy discussion on #212 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so, but what in particular are you concerned about?
shacl12-core/index.html
Outdated
if S is a SHACL instance of sh:NodeShape in the shapes graph | ||
for each triple in the shapes graph matching (S sh:node ?o) | ||
collectProperties(?o) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sh:node
can also go on a sh:PropertyShape
. So should "if S is a SHACL instance of sh:NodeShape in the shapes graph" instead read "if S is a SHACL instance of sh:NodeShape or sh:PropertyShape in the shapes graph"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to the syntax rules, the values of sh:node must be well-formed node shapes, not property shapes. If you want property shapes there, nest them inside a node shape via sh:property.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Closes #172