\u in SPARQL Update vs. ExecuteTransaction

19 views
Skip to first unread message

Markus Essl

unread,
Oct 22, 2013, 3:22:42 AM10/22/13
to brightsta...@googlegroups.com
Hello!

What is the correct encoding of "special" characters in Execute Transaction? I have this SPARQL Update query, which works in Polaris and in the nuget library:

INSERT DATA {
    <urn:a> <urn:is> "c:\\users\r\nbla"
}

But when I use ExecuteTransaction (or the transaction feature in Polaris), and I enter following to the "Triples to Add" field, I get a "Transaction failed" message

    <urn:a> <urn:is> "c:\\users\r\nbla"

The problem is with \u apparently. If I enter "c:users", it works.

So can someone give me details on how to correctly escape this?

Thank you very much,
Markus

Khalil Ahmed

unread,
Oct 22, 2013, 5:33:50 AM10/22/13
to brightsta...@googlegroups.com

The encoding is as for ntriples. \u is interpreted as the start of a Unicode escape string. However I think \\ should escape the \ so this could well be a bug. I'll check it out when I'm back off vacation.

Cheers

Kal

--
You received this message because you are subscribed to the Google Groups "BrightstarDB Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brightstardb-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages