XML serialization of SPARQL

Bijan was saying that he wants an XML serialization for SPARQL.

While on IRC with Hugo, I doodled:

  CONSTRUCT { ?a foo ?b . ?b bar ?c }
      WHERE { ?b thoip ?c . ?c fump ?d . ?a wonk ?d }

 =>

  <sparql>
    <construct>
      <term><s var="a"/><p uri="foo"/><o var="b"/></term>
      <term><s var="a"/><p uri="foo"/><o var="b"/></term>
    </construct>
    <where>
      <term><s var="b"/><p uri="thiop"/><o var="c"/></term>
      <term><s var="c"/><p uri="fump"/><o var="d"/></term>
      <term><s var="a"/><p uri="wonk"/><o var="d"/></term>
    </where>
  </sparql>

I can see that this would enable one to use a SOAP SPARQL Protocol
binding to sign and/or encrypt. There may be other motivations.
What are they?
-- 
-eric

office: +81.466.49.1170 W3C, Keio Research Institute at SFC,
                        Shonan Fujisawa Campus, Keio University,
                        5322 Endo, Fujisawa, Kanagawa 252-8520
                        JAPAN
        +1.617.258.5741 NE43-344, MIT, Cambridge, MA 02144 USA
cell:   +81.90.6533.3882

(eric@w3.org)
Feel free to forward this message to any list for any purpose other than
email address distribution.

Received on Wednesday, 16 March 2005 08:37:09 UTC