-
Notifications
You must be signed in to change notification settings - Fork 1
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
SHACL SKOS validation #197
Comments
Yes that's the idea. For our main examples all sports were listed as MediaTopics. And before you ask, yes Aussie rules football, rugby league and rugby union are all listed 🙂 If there are any spots not listed that you would like to see, please let us know. |
My question is more technical... Does meet the conformance (SHACL) requirement in that the "values must come from the IPTC skos vocab" when the following string matches the pattern: |
I see what you mean. If we include the mediatopics in the ontology files, do you know of a simple way to validate it on a value level using SHACL? We follow a similar regex-based match for all of our CV terms, but it would be great if there was a smarter / less error-prone way to do it. |
I have created and tested the below SHACL rule. We first define a NodeShape for valid MediaTopic concepts (in this case, they all have the Then the
|
Great! We'll use that. Thanks very much for your help! |
@pauljkelly note that @riannella helped us out here and the fix works very well. Questions based on this:
|
In the SHACL file:
https://github.com/iptc/sport-schema/blob/main/ontologies/iptc-sport-shacl.ttl
It includes:
Does this really enforce that the value of
sport:sport
must be a SKOS concept from the mediatopic vocab?The text was updated successfully, but these errors were encountered: