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

Improve validation message of sh:xone #63

Open
tpluscode opened this issue May 7, 2021 · 1 comment
Open

Improve validation message of sh:xone #63

tpluscode opened this issue May 7, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@tpluscode
Copy link
Collaborator

I would propose tweaking the detail validation result message when an XONE constraint is violated

Currently it produces no message at all. Without even knowing which sub shapes are conflicted, it's quite difficult to get a grip on what is wrong.

I have a few ideas

First, could be to enumerate all of the sh:xone and produce a message like

Resource must be exactly one of A, B, C

Where A, B and C would be the rdfs:label or node value if label is not given. This would also apply to a focus node where none of the child shapes are matched

Alternatively, if we can get the info, could be to give the opposite and only mention the shapes which were matched and thus are in conflict

Resource cannot be A and C at the same time

Here B is hypothetically excluded

@martinmaillard
Copy link
Contributor

I like the idea. We should probably do the same for sh:and and sh:or.

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

No branches or pull requests

2 participants