- 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>
Hi,
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#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2005/sparql-results# http://www.w3.org/2007/SPARQL/result.xsd">
...
</sparql>
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
Regards,
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