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

Support for the {n,m} form for property paths #55

Open
jerdebsp opened this issue May 27, 2024 · 3 comments
Open

Support for the {n,m} form for property paths #55

jerdebsp opened this issue May 27, 2024 · 3 comments

Comments

@jerdebsp
Copy link
Contributor

In SPARQL you can have a complex property path with the {n,m} form e.g ?otherClass (sh:property/sh:class){2,3} ?nodeShape . or the {n} form ?otherClass (sh:property/sh:class){2} ?nodeShape ..

Is it possible to add this to the SHACL property path for property shapes?

Thanks,
Jer

@HolgerKnublauch
Copy link
Contributor

Yes I think this was requested by others too, and would potentially make sense for SHACL 1.2 for symmetry reasons with SPARQL alone.

@TallTed
Copy link
Member

TallTed commented Jun 11, 2024

Note that the {n,m} property path notation is not in SPARQL 1.0 nor SPARQL 1.1. It was in a draft of SPARQL 1.1, and has been raised as potentially a part of a future SPARQL version. It has also been raised specifically regarding the SPARQL 1.2 specification now in development.

@VladimirAlexiev
Copy link
Contributor

@jerdebsp Can you list some realistic use cases that use such a feature?

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

No branches or pull requests

4 participants