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

fails decoding a turtle rdf with just namespace and no id #11

Closed
tzapu opened this issue Nov 20, 2017 · 3 comments · Fixed by #13
Closed

fails decoding a turtle rdf with just namespace and no id #11

tzapu opened this issue Nov 20, 2017 · 3 comments · Fixed by #13

Comments

@tzapu
Copy link
Contributor

tzapu commented Nov 20, 2017

in this particular case

@prefix ns7:    <https://domain.com/> .
ns1:Account\_0x41e55600548    ns4:seeAlso    ns7: .
ns7:    ns4:label    "blog" .

the decoder fail with unexpected character \t on ns7: line
the snippet passes validation in a turtle validator

@tzapu
Copy link
Contributor Author

tzapu commented Nov 20, 2017

as this indicates
https://dvcs.w3.org/hg/rdf/raw-file/default/rdf-turtle/index.html#grammar-production-PN_LOCAL
it is optional, so it is a valid case

exact error syntax error: unexpected character: '\t'

@boutros
Copy link
Member

boutros commented Nov 23, 2017

I admit my comprension of EBNF grammar is rather limited, so I'll try to validate a string with an EBNF parser.. maybe this one: https://godoc.org/golang.org/x/exp/ebnf

@tzapu
Copy link
Contributor Author

tzapu commented Nov 24, 2017

ah, did i mention this should be sorted as well in the pull request i made?

at least i think so, seems to work fine for us

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

Successfully merging a pull request may close this issue.

2 participants