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

Parsing error on prefix:N.N syntax

Open paulwilton opened this issue 1 year ago • 2 comments

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

paulwilton avatar May 07 '24 16:05 paulwilton

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

bourgeoa avatar May 11 '24 17:05 bourgeoa

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

bourgeoa avatar May 11 '24 17:05 bourgeoa