Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Can the id be anthing other than an IRI #158

Open
jeswr opened this issue Mar 9, 2023 · 3 comments
Open

Can the id be anthing other than an IRI #158

jeswr opened this issue Mar 9, 2023 · 3 comments
Labels

Comments

@jeswr
Copy link
Member

jeswr commented Mar 9, 2023

For instance can I write [ id "abc" :p :o ].

Either way it would be good to have some positive or negative syntax tests for this.

@william-vw
Copy link
Collaborator

See the grammar:
https://w3c.github.io/N3/spec/#grammar-production-iriPropertyList

You can always try out the latest grammar here:
https://n3-editor.herokuapp.com/n3/editor/s/XQpxtP1C

@william-vw william-vw reopened this Apr 1, 2023
@jeswr
Copy link
Member Author

jeswr commented Apr 3, 2023

You can always try out the latest grammar here:
https://n3-editor.herokuapp.com/n3/editor/s/XQpxtP1C

What parser are you using internally for this?

@william-vw
Copy link
Collaborator

A JavaScript ANTLR parser generated from n3.g4 (which is itself based on the EBNF grammar). See here for more.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants