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 multiple property SHACL shapes #488

Merged
merged 2 commits into from
May 22, 2023

Conversation

cap10morgan
Copy link
Contributor

While looking into implementing the sh:and logical constraint, I wanted to ensure that multiple properties in a single shape was already working. I noticed that we didn't have any tests for that yet so wanted to start there. It wasn't yet working with a combination of cardinality (e.g. sh:minCount) and value range (e.g. sh:minExclusive) constraints.

This adds a test for that and fixes it in a minimally-invasive way (for now).

Part of #321

@cap10morgan cap10morgan requested a review from a team May 22, 2023 19:42
Copy link
Contributor

@mpoffald mpoffald left a comment

Choose a reason for hiding this comment

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

Looks good! I was just starting to pull out my string constraint validation into its own function(s) too, pretty much exactly like this. So this will be convenient to build off of 😄

@cap10morgan cap10morgan merged commit b10ce23 into main May 22, 2023
@cap10morgan cap10morgan deleted the feature/shacl-logical-constraints branch May 22, 2023 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants