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

Implicit ANDs between shape expressions #20

Open
labra opened this issue Jan 6, 2017 · 0 comments
Open

Implicit ANDs between shape expressions #20

labra opened this issue Jan 6, 2017 · 0 comments

Comments

@labra
Copy link
Contributor

labra commented Jan 6, 2017

Currently, ShExC allows to simplify shape expressions when the first one is a node constraint omitting the keyword AND.

So the following two shapes are equivalent:

<S1> IRI AND { :q xsd:string }
<S2> IRI { :q xsd:string }

However, if the left part of the AND is another shape, then it is not possible to omit the AND:

<S1> { :p xsd:string } AND { :q xsd:string }
<S2> { :p xsd:string } { :q xsd:string }  # Syntax error

Although I think we can leave as is for version 2.0, we should consider if it is better to be extend the simplification and to enable implicit ANDs between shape expressions in general.

However, I am not sure if allowing it would increase readability, so I open this issue to open a discussion about it for future versions.

@labra labra added this to the 2.1 milestone Jan 6, 2017
@ericprud ericprud modified the milestones: 2.1, 2.next Nov 23, 2018
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

2 participants