Hi Jared,

On 03/08/2022 18:35, Jared Whiklo wrote:
Hi,

We are experiencing an issue where N-Triples produced by Jena cannot be parsed by Jena. The issue seems to be how the Model outputs a literal like

example:123 @cc:useGuidelines "This is some text."@en;

Model.toString isn't supposed to be RDF syntax.

Which version of Jena are you using?
Do you have an an example N-Triples file? Or short code that creates the statement?

    Andy

It stores this triple properly (or seems to in the graph) but when serialized as N-Triples it has both a datatypeUri and a langString and so prints out.

<example:123> <http://web.resource.org/cc/useGuidelines> "This is some text."@en^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString> .

My understanding is that you can _either_ have a language or a datatype but not both. We'd like to retain the language as that seems more important that "langString".

I am unable to see how to alter the LiteralImpl to get a plain literal output instead of a typed one?

Any help is appreciated.

cheers,
jared

Reply via email to