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

Annotations after shape label directly #96

Open
labra opened this issue Sep 5, 2019 · 4 comments
Open

Annotations after shape label directly #96

labra opened this issue Sep 5, 2019 · 4 comments
Assignees

Comments

@labra
Copy link
Contributor

labra commented Sep 5, 2019

The following shape parses:

<Shape> IRI // <label> "My shape" 
{
  <p> .
}

while the following doesn't:

<Shape> // <label> "My shape" 
{
  <p> .
}

Could we adapt the grammar to allow the last shape?

@ericprud
Copy link
Contributor

That works and is a good idea. 2.2?

@ericprud
Copy link
Contributor

ericprud commented Nov 25, 2019

Another possibility that reduces the incentive to allow

<Shape> // <label> "My shape"  { ... }

would be allowing leading annotations, e.g.

-- <label> "My shape"
<Shape> {
  -- <label> "My property"
  <p1> .
}

This would be nice 'cause it would cover triple expressions as well.

@andrawaag
Copy link
Contributor

It becomes a feature request

@ericprud
Copy link
Contributor

@labra , @hsolbrig , opinions? (I'm leaning towards the leading annotations solution.)

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

3 participants