On 11/10/13 14:37, Bardo Nelgen wrote:
Hi Andy,
thanks for the quick reply – though I'm not yet sure I completely
understand what you're saying:
I thought that xsd:dateTime was one of the datatypes to be used for
sparql queries!?
It is but your sample data does not have xsd:dateTime values in it.
The namespace for xsd is <http://www.w3.org/2001/XMLSchema#> so the URI
for xsd:dateTime is <http://www.w3.org/2001/XMLSchema#dateTime>.
Whereas your data is using the namespace
<urn:ietf:params:xml:schema:dateTime:>
So as far as any RDF processor is concerned that's a different datatype.
Andy showed how you could work around this by coercing your
incorrectly-typed values to strings then coercing those to correct
xsd:dateTime values.
Alternatively you might fix the datatype URIs in your data.
Kindly asking for further explanation… – PLEASE!
So here, again, the complete samples:
PREFIX html: <http://www.w3.org/1999/xhtml>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <urn:ietf:params:xml:schema:>
That should be:
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
Dave