linkeddata / rdflib.js

Linked Data API for JavaScript
http://linkeddata.github.io/rdflib.js/doc/
Other
561 stars 142 forks source link

Support `PREFIX` directives in turtle parsers. #626

Open damooo opened 8 months ago

damooo commented 8 months ago

Currently turtle parsers seems doesn't take PREFIX case-insensitive sparql-like directives, which are supported by turtle syntax since 2014. It would be highly valuble for their support to handle turtle from wild.

TallTed commented 8 months ago

Important for implementation —

From the Turtle 1.1 spec

The Turtle language originally permitted only the syntax including the '@' character for writing prefix and base directives. The case-insensitive 'PREFIX' and 'BASE' forms were added to align Turtle's syntax with that of SPARQL.