Skip to content
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

fix: range of sh:path should be blank node not RDF Collection #343

Merged
merged 1 commit into from
Mar 26, 2025

Conversation

recalcitrantsupplant
Copy link
Collaborator

Shacl path should have a bnode as it's range not an RDF Collection. This is a basic error/typo that has been present for some time and somehow not caused issues until now (potentially due to default RDF ordering in RDFLib). Using an RDF Collection meant that one of either the union of property paths OR the shacl:union property itself were processed, potentially RDFLib typically ordered these internally in such a way that the list and not sh:union was processed. Olis seems to have disrupted this. In any case, use of an RDF Collection is wrong.

The following two changes have been made:

  1. Fix the processing of sh:union statements, these were the only thing specified off of RDF Collections from sh:path
  2. Fix the relevant profiles to use blank nodes instead of RDF Collections ( "(" -> "[" )

…on. This is a basic error/typo that has been present for some time and somehow not caused issues until now. Using an RDF Collection meant that one of either the union of property paths OR the shacl:union property itself were processed, potentially RDFLib typically ordered these internally in such a way that the list and not sh:union was processed. Olis seems to have disrupted this. In any case, use of an RDF Collection is wrong.
Copy link
Collaborator

@lalewis1 lalewis1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no issues, thanks, looks fine

@recalcitrantsupplant recalcitrantsupplant merged commit 827038c into main Mar 26, 2025
2 checks passed
@recalcitrantsupplant recalcitrantsupplant deleted the david/shacl-path-collection-to-bnode branch March 26, 2025 00:11
Copy link

🎉 This PR is included in version 4.6.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants