On 03/04/17 21:22, Nikolaos Beredimas wrote:
From:
https://jena.apache.org/documentation/migrate_jena2_jena3.html#rdf11-plain-literals
"Output is in the datatype-less form (an abbreviated syntax) even in
N-triples."
- Is there a way to change the default behavior and print the ^^xsd:string
part.
Mostly interested when serializing to turtle.
Because of wanting to feed into an RDF 1.0 system?
(It probably does not matter as the reverse happens on reading things
back in. Jena itself does not keep with and without datatype literals.
All literals have a datatype now.)
There isn't a way except to fork the necessary bits and pieces.
It is hardwired into NodeFormatterTTL/NodeFormatterNT
and TurtleShell hardwires the choice of NodeFormatterTTL.
A "Plan B" is to post process the out by feeding the RDF 1.1 output
through perl (etc) and adding ^^xsd:string (and the prefix).
Andy