Closed vemonet closed 7 months ago
narrowing down to a minimal example, I reproduced this bug with the following dataset:
@prefix : <https://example.org/> .
:s :p :o.
:g {
_:b :p2 :o2.
}
which (pretty-)serializes back to
<https://example.org/s>
<https://example.org/p> <https://example.org/o>.
GRAPH <https://example.org/g> {
<https://example.org/p2> <https://example.org/o2>.
}
which is a syntax error (missing subject in the second-to-last line).
Hi, I faced issues while serializing trig RDF containing blank nodes using
with_pretty
I used this code:
Where I parse this trig RDF:
But when I re-serialize it to trig with pretty using sophia I am getting the following:
There are 2 different issues:
pretty
step of the serializer[]
when representing the blank nodes, cf.a biolink:Context.
When serializing without pretty the blank node situation is right: