How does one pass an XML argument like the one below to a SPARQL query? See
this trivial example:

 

SELECT ?xmlArgument  WHERE {BIND ("<?xml version="1.0";
encoding="UTF-8"?><oadr:oadrPayload
xmlns:ei="http://docs.oasis-open.org/ns/energyinterop/201110";
xmlns:oadr="http://openadr.org/oadr-2.0b/2012/07";
><oadr:oadrSignedObject><oadr:oadrDistributeEvent
ei:schemaVersion="2.0b"></oadr:oadrDistributeEvent></oadr:oadrSignedObject><
/oadr:oadrPayload>" AS ?xmlArgument)} 

 

 

I have tried:

 

. replacing any embedded " with &quot;   

. doing that, plus replacing all the < and > with &lt; and &gt;

. escaping the " with \

. uuencoding the XML string

 

.all with no luck. I'm doing my testing using the SPARQL query panel in TBC,
and it chokes.

 

Thanks in advance.

 

- Steve

 

Steven R. Ray, Ph.D.

Distinguished Research Fellow

Carnegie Mellon University

NASA Research Park

Building 23 (MS 23-11)

P.O. Box 1
Moffett Field, CA 94305-0001

Email:    [email protected]

Phone: (650) 587-3780

Cell:      (202) 316-6481

Skype: steverayconsulting

cid:[email protected]

 

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to