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

Issues with XML schemas in SPARQL Query Results XML Format Recommendation

From: John Walker <john.walker@semaku.com>
Date: Wed, 5 Sep 2018 13:03:12 +0000
To: "public-sparql-dev@w3.org" <public-sparql-dev@w3.org>
Message-ID: <HE1PR0202MB2938B1E0C3631B4C265CECFD9A020@HE1PR0202MB2938.eurprd02.prod.outlook.com>

There are a couple of issues regarding XML Schemas in SPARQL Query Results XML Format Recommendation [1].

Firstly the method used to reference the XML Schema xsi:schemaLocation shown in the recommendation is incorrect.
Pairs of URIs must be used to relate a namespace to the schema location:

<?xml version="1.0"?>
<sparql xmlns="http://www.w3.org/2005/sparql-results#"
        xsi:schemaLocation="http://www.w3.org/2005/sparql-results# http://www.w3.org/2007/SPARQL/result.xsd">



Secondly the namespace defined in the recommendation (http://www.w3.org/2005/sparql-results#) is different from the one used in the various schemas (http://www.w3.org/2007/SPARQL/results#).
As a result, the SPARQL Results Document XML will never validate using the schemas.
The namespaces need to be aligned either by changing the recommendation (probably hard) or updating the schemas (probably easier).

[1] https://www.w3.org/TR/2013/REC-rdf-sparql-XMLres-20130321/#schemas


John Walker
Principal Consultant & co-founder

Semaku B.V. | Torenallee 20 (SFJ 3D) | 5617 BC Eindhoven | T +31 6 42590072 | https://semaku.com/
KvK: 58031405 | BTW: NL852842156B01 | IBAN: NL94 INGB 0008 3219 95
Received on Wednesday, 5 September 2018 13:03:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 September 2018 13:03:46 UTC