I think the output is equivalent to the input - two different ways to
encode the same string.

On Sat, 31 Aug 2024 at 09.20, Chavdar Ivanov <ch.iva...@outlook.de> wrote:

> Hello all,
>
> I noticed something around the support for multiline literals
>
> It seems it is possible to have this for RDFXML writers, but for the
> Turtle I am getting single line
>
> I looked in the spec RDF 1.1 Turtle (w3.org)<https://www.w3.org/TR/turtle/>
> under 2.5.1 we have this example
>
>
> show:218 show:blurb '''This is a multi-line                        #
> literal with embedded new lines and quotes
> literal with many quotes (""""")
> and up to two sequential apostrophes ('').''' .
>
> I did a test
>
> Input
> l3igm:test
>         a           sh:PropertyGroup ;
>         rdfs:label  "test" ;
>         sh:order    0 ;
> l3igm:blurb '''This is a multi-line
> literal with many quotes (""""")
> and up to two sequential apostrophes ('').''' .
>
>
> When this is read and then serialized back to ttl I get this
>
> l3igm:test  rdf:type  sh:PropertyGroup;
>         rdfs:label   "test";
>         sh:order     0;
>         l3igm:blurb  "This is a multi-line
>  \r\nliteral with many quotes (\"\"\"\"\")\r\nand up to two sequential
> apostrophes ('')." .
>
>
> I am using this way of writer
>
>
> RDFWriter.create()
>         .base("https://test.eu/test";)
>         .set(RIOT.symTurtleOmitBase, false)
>         .set(RIOT.symTurtleIndentStyle, "wide")
>         .set(RIOT.symTurtleDirectiveStyle, "rdf10")
>         .lang(Lang.TURTLE)
>         .source(model)
>         .output(out);
>
> Is there something I am doing wrong or this is a bug to be fixed? If a
> bug, where the fix should be?
>
> Best regards
> Chavdar
>
>

Reply via email to