-
Notifications
You must be signed in to change notification settings - Fork 63
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
Validating the domain (or ObjectProperty range) asserted in a data graph exists in the ontology graph? #183
Comments
Is your application an OWL application? If so, domains and ranges can get significantly complex, e.g. for properties that have a domain that is all X's and all not-Y's would be a union of X with the complement of Y's. That could be hairy to write a catchall SHACL shape for. If this is just an RDFS application instead, nevermind this point. Either a ex:CheckRangeIsUsingDefinedClass-shape
a sh:NodeShape ;
sh:nodeKind sh:IRI ;
sh:or (
[ a sh:NodeShape ; sh:class rdfs:Class ; ]
[ a sh:NodeShape ; sh:class owl:Class ; ]
)
sh:targetObjectsOf rdfs:domain ;
. I haven't tested that snippet, but I think it would work. And again, this assumes the more simplified case of properties defined in the RDFS style without OWL - OWL would need some further contortion using an (Also, careful, there's a typo'd |
sh:class owl:Class works perfect for my needs! Thanks again! |
You're welcome! By the way, it's sounding like you're getting into "TBox" review with SHACL. You might want to be aware of this Issue. |
ah! thanks fo that! |
@tduval-unifylogic |
Yes thanks for the follow up
…On Wed, May 24, 2023 at 9:44 AM, Ashley Sommer ***@***.***> wrote:
@tduval-unifylogic <https://github.com/tduval-unifylogic>
Is it OK to close this issue thread now?
—
Reply to this email directly, view it on GitHub
<#183 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO3YXTBONPIHTOZXNK4OSFTXHYGEXANCNFSM6AAAAAAXTKN3RU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Another question.
I would like to validate that the domain asserted in the data graph actually exists as a class specified in the ontology. I have successfully created validation for DatatypeProperty ranges:
but now i would like to be able to validate both domain and ranges existence for object properties.
The text was updated successfully, but these errors were encountered: