N3.js icon indicating copy to clipboard operation
N3.js copied to clipboard

Pass new N3 tests

Open RubenVerborgh opened this issue 5 years ago • 4 comments

Main topics include:

  • [x] formulas inside lists (https://github.com/rdfjs/N3.js/pull/194)
  • [x] literals as subjects (https://github.com/rdfjs/N3.js/pull/193)
  • [ ] N3 path syntax

RubenVerborgh avatar Jan 19 '20 16:01 RubenVerborgh

Do you happen to have a grammar specification (e.g., EBNF)? ..

william-vw avatar Jan 19 '20 18:01 william-vw

Not really, I started from https://www.w3.org/TR/turtle/#sec-grammar and combined https://www.w3.org/DesignIssues/Notation3 and https://www.w3.org/TeamSubmission/n3/ into it.

RubenVerborgh avatar Jan 19 '20 22:01 RubenVerborgh

@RubenVerborgh Didn't you use a compiler-compiler to generate the parser? ..

william-vw avatar Jan 20 '20 19:01 william-vw

Didn't you use a compiler-compiler to generate the parser?

I did for a SPARQL parser, but not for this library, given 1) performance and 2) the fact that it supports streaming parsing (for which it is hard to find parser generators). We want to parse files that are larger than main memory.

That said, this might create interesting requirements for Notation3, such that the meaning of a document cannot be changed by a forAll or so at the end of the document (I have no idea what the spec says now, if anything).

RubenVerborgh avatar Jan 20 '20 20:01 RubenVerborgh