Re: Escaped control characters in strings with Fuseki

2021-06-02 Thread Andy Seaborne




On 02/06/2021 14:28, Mikael Pesonen wrote:


Hi,

when posting turtle data with newlines, for example

lsr:82b9a3b5-6cba-4bd3-95c3-d309e8362c5e
         dcterms:title
                 """2380
Bellow Control Valve"""@en .

it's returned for construct query in escaped form

lsr:82b9a3b5-6cba-4bd3-95c3-d309e8362c5e
    dcterms:title
     "2380\r\nBellow Control Valve"@en

Is it possible to get strings back in unescaped form? 


Not change the output - because this form preserves "\r\n" vs "\n" 
newline style - i.e. it is safer.


Parse the result. The escapes will be processed.

If not, is there a 
list of escaped characters available?


See the Turtle spec.

Andy



Escaped control characters in strings with Fuseki

2021-06-02 Thread Mikael Pesonen



Hi,

when posting turtle data with newlines, for example

lsr:82b9a3b5-6cba-4bd3-95c3-d309e8362c5e
        dcterms:title
                """2380
Bellow Control Valve"""@en .

it's returned for construct query in escaped form

lsr:82b9a3b5-6cba-4bd3-95c3-d309e8362c5e
   dcterms:title
    "2380\r\nBellow Control Valve"@en

Is it possible to get strings back in unescaped form? If not, is there a 
list of escaped characters available?