-
Notifications
You must be signed in to change notification settings - Fork 30
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
syntax-rule-prefixes-duplicates should be more lenient #239
Comments
I don't see how this can be implemented. We cannot just add the word "different" and be done with it. If there are two namespaces for the same prefix, which one should the engine use? |
I've noticed It's also a potential friction point if, complementing @VladimirAlexiev 's example, there are TWO useful shape sets. Suppose there is a shapes graph A that wants to import shapes graphs B and C. But, both declare a prefix Offhandedly, I suspect the situation has an equally dissatisfactory feel if A sets a prefix Fundamentally, I think the transitive nature of As an example, which I'll put forward to point out a glaring issue: As another example, which I think is a bit more plausible but will probably be quick to foil once spelled out in demonstration data:
I get the feeling some worked-out demonstration graphs will make this line of thought crumble as well. Before sketching those demonstrations, we should consider if this tension between I see it as a concern that a convenience element for SPARQL queries can induce an incompatibility hindering interoperability and reuse. |
Thankfully, each SPARQL query in SHACL can point to a different subject using sh:prefixes, and that subject does not have to be the owl:Ontology with owl:imports. Therefore I don't really see a problem even if the owl:imports closure contains the same prefix twice. I think this issue should be closed. |
I think there is a concern here. I will try to add a test in a PR to see if our points align. Apologies if I don't get to the test today. |
hi @HolgerKnublauch !
It should return an error
Me neither. That's exactly what I'm asking: to clarify the wording by adding the word "different". |
Ah Ok I see. There could indeed be multiple declarations of the same prefix/namespace combination. Will create a PR. |
https://w3c.github.io/data-shapes/shacl/#syntax-rule-prefixes-duplicates
I think this should be changed to "multiple different namespaces".
Rationale: this will facilitate more flexible management of imports. Scenario:
x:
import B
x:
: that would not be unusual, if A and B talk of related domains!x:
and remove it from Aimport B
was not so useful after all, you need to put the prefix back inTo summarize: the rule requires each prefix to be declared exactly once in any collection of related shapes that may want to include one another.
That makes module refactoring harder than it needs to be.
In other languages:
The text was updated successfully, but these errors were encountered: