antoniogarrote / rdfstore-js

JS RDF store with SPARQL support
MIT License
564 stars 109 forks source link

N3 parser (used for turtle) does not accept '.' in qname prefixes. #50

Closed alexdutton closed 11 years ago

alexdutton commented 11 years ago

https://github.com/antoniogarrote/rdfstore-js/blob/master/src/js-communication/src/n3_parser.js#L641 forbids '.' in prefixes, but they are allowed in the W3C's Candidate Recommendation for Turtle: http://www.w3.org/TR/turtle/#grammar-production-PN_PREFIX

Can the regex in the N3 parser be relaxed?

alexdutton commented 11 years ago

Scratch that; it does allow them, and I'm being a fool.