On Monday, August 12, 2013 04:19:24 PM Iain Ritchie wrote:

> Regarding the parse error with the quotations:
> 
> 
> - Replacement with single ' worked fine.
> 
> - Replacement with \" allows the insert to occur but the \ is then
> contained in the literal that is inserted:

Are you sure -- it's not just the display code putting the \ back in
to make a legal literal?

> INSERT DATA { <http://someURI> <http://someURI/hasText> "How to deal with a
> quotation \" in the middle of a string"}
> 
> 
> - Replacement with """ results in a parse error again.

No, he meant using the fat quotes """ ......... """ where a single embedded
quote is just data.

> INSERT DATA { <http://someURI> <http://someURI/hasText> "How to deal with a
> quotation """ in the middle of a string"}

INSERT DATA { <http://someURI> <http://someURI/hasText> """How to deal with a 
quotation " in the middle of a string"""}

Chris

-- 
RIP Diana Wynne Jones, 1934 - 2011.

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)

Reply via email to