rdflib.js
rdflib.js copied to clipboard
Parsing error on prefix:N.N syntax
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
Yes this is is a known issue https://github.com/linkeddata/rdflib.js/issues/601
If anyone wants to look at the issue that would be wonderfull