linkeddata / rdflib.js

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

Parsing error on prefix:N.N syntax #647

Open paulwilton opened 1 month ago

paulwilton commented 1 month ago

I noticed this turtle/N3 syntax fails to parse

@prefix myprefix: <http://www.example.com/ontologies/test/> .
<http://example.com/data/> myprefix:version myprefix:1.18 .

with error: "Bad syntax: EOF found in middle of path syntax" this syntax is used in many open source / public domain ontologies for describing ontology / definition versions

if the value of the statement is fully qualified <http://example.com/data/> myprefix:version <http://www.example.com/ontologies/test/1.18> . it parses ok, it is the prefix / qname style syntax that throws the parsing error

bourgeoa commented 1 month ago

Yes this is is a known issue https://github.com/linkeddata/rdflib.js/issues/601

bourgeoa commented 1 month ago

If anyone wants to look at the issue that would be wonderfull