W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > January to March 2005

Casting a literal to a typed literal?

From: Thompson, Bryan B. <BRYAN.B.THOMPSON@saic.com>
Date: Tue, 15 Mar 2005 11:51:42 -0500
Message-Id: <D24D16A6707B0A4B9EF084299CE99B3912CB46DE@mcl-its-exs02.mail.saic.com>
To: "'public-rdf-dawg@w3.org'" <public-rdf-dawg@w3.org>

Hello,

With respect to the example in Section 11.1, can someone point me to
the aspect of the grammar that handles casting to a typed literal?
If these are meant as function calls, then the last line should use

   &xsd:dateTime(?date)

and not

    xsd:dateTime(?date)

The full example is:

PREFIX a:      <http://www.w3.org/2000/10/annotation-ns#>
PREFIX dc:     <http://purl.org/dc/elements/1.1/>
PREFIX xsd:    <http://www.w3.org/2001/XMLSchema#>

SELECT ?annot
WHERE ( ?annot  a:annotates  <http://www.w3.org/TR/rdf-sparql-query/> )
      ( ?annot  dc:created   ?date )
  AND xsd:dateTime(?date) < xsd:dateTime("2005-01-01T00:00Z")

Thanks,

-bryan
Received on Tuesday, 15 March 2005 16:51:55 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:22 GMT