rdfjs / N3.js

Lightning fast, spec-compatible, streaming RDF for JavaScript
http://rdf.js.org/N3.js/
Other
676 stars 127 forks source link

`-star` and `*` extensions hide the format #324

Open jeswr opened 1 year ago

jeswr commented 1 year ago

In this line https://github.com/rdfjs/N3.js/blob/520054a9fb45ef48b5b58851449942493c57dace/src/N3Parser.js#L20-L21 with a input format option of text/n3-star the format constant becomes star and for text/n3* the format constant becomes the empty string.

This means that we cannot currently rdf-star mode for parsing and specify the content type. In particular this means that there is no way of parsing "n3-star" without manually overriding _supportsRDFStar or _isN3 after construction.