Closed sharpaper closed 2 years ago
Is this still an issue?
@sharpaper So this is not a bug. if you do the following modification in your input stream to the node.parse() it fixes the issue.
from rdflib import Graph
data = """
PREFIX : <http://example.org/>
:0A\.D\. :key\. :value .
"""
from rdflib import Graph data=""" PREFIX : <http://example.org/> :0A\.D\. :key . :value . """ g = ConjunctiveGraph() g.parse(data=data, format="turtle")
In the data file missing the "." after the key because :0A.D\ . is the a triple which has only subject not a predicate and object so that every triples ends with the "." (dot) ,similarly :key is also a triple which has no predicate and object so we need to put "." after the :key .
Not actually an issue, closing.
This is valid Turtle syntax
but RDFLib is failing to parse it. It does not parse the second dot in
:0A\.D\.
How to reproduce:
And the error message:
Is this a bug or am I doing something wrong?