Escapes literal so it is suitable for insertion in SPARQL queries as string literals.
Manual construction of query strings based user input is best avoided at all cost, use of Statement is recommended instead.
| literal |
a string to escape |
|
the escaped string |