W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > February 2008

(Un)equality of literals

From: Arjohn Kampman <arjohn.kampman@aduna-software.com>
Date: Fri, 15 Feb 2008 10:35:52 +0100
Message-ID: <47B55CF8.3020902@aduna-software.com>
To: 'RDF Data Access Working Group' <public-rdf-dawg-comments@w3.org>

Hi all,

Although the working group probably has seized to exist now that
SPARQL has reached the Recommendation status, I hope someone can answer
the following question:

When comparing two literals with supported but unequal datatypes, should
these literals be considered to be unequal?

The following cases are clear to me:

* "2001-01-01"^^xsd:date = "2002-02-02"^^xsd:date --> false
   assuming that xsd:date comparisons are supported.

* "2001-01-01"^^xsd:date = "2001-01-02"^^ex:myDate --> type error
   since ex:myDate is an unknown/unsupported datatype.

But what would be the result of this comparison?:
"2001-01-01"^^xsd:date = "2001-01-01T00:00:00+00:00"^^xsd:dateTime

Should this:
a) return false since both datatypes are known and the values are
    considered to be uncomparable/unequal, or
b) produce a type error since the datatypes are incompatible?

Hope someone can clear this up for me.


Arjohn Kampman

Arjohn Kampman, Senior Software Engineer
Aduna - Guided Exploration
Received on Friday, 15 February 2008 09:36:13 UTC

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