Good to know that.

Good thing it isn't final then!

    Andy

On 04/04/17 10:18, Rob Vesse wrote:
You can also force RDF 1.0 Mode as follows:

JenaRuntime.isRDF11 = false;

We use this at my employer where other components in our ecosystem are not yet 
RDF 1.1 aware

Rob

On 03/04/2017 22:43, "Andy Seaborne" <[email protected]> wrote:



    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






Reply via email to