W3C home > Mailing lists > Public > public-sparql-dev@w3.org > July to September 2013

XMLLiteral in SPARQL Results XML format

From: Paul Tyson <phtyson@sbcglobal.net>
Date: Wed, 21 Aug 2013 21:58:12 -0500
To: public-sparql-dev@w3.org
Cc: public-rdf-dawg-comments@w3.org
Message-Id: <1377140292.6002.29.camel@tristan>
The SPARQL Results XML Format spec is silent regarding XMLLiteral
datatypes, but the schemas specify that only "text" is allowed in an
srx:literal element. This means that XMLLiteral values must have XML
markup replaced with character entities, or enclosed in a CDATA section.

This is roadblock to fluent processing of RDF data that includes
XMLLiteral values.

Consider for the next revision to specify that XMLLiteral values be
emitted as XML in a non-srx namespace.

The attached patch to the rnc schema (available at
http://www.w3.org/2005/sparql-results) enforces that srx:literal
elements with datatype rdf:XMLLiteral must have element children from a
non-srx namespace.

(The patch also fixes the res: namespace in the schema, which does not
match the namespace URI given in the spec.)

Regards,
--Paul





Received on Thursday, 22 August 2013 02:58:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:52 UTC