W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2006

Some datatype() and lang() tests

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Tue, 22 Aug 2006 13:23:53 +0100
Message-ID: <44EAF759.7040307@hp.com>
To: RDF Data Access Working Group <public-rdf-dawg@w3.org>

This thread on what datatype() returns died out before consensus was agreed:

as witnessed by

so I added some tests to make the discussion more concrete.


==== Added:

q-datatype-2.rq        Looks for things that have a datatype (not an error)
q-datatype-3.rq	       Looks for things with datatype xsd:string
q-lang-1.rq            Looks for things with a langtag of any kind
q-lang-2.rq            Looks for things with a langtag of ''

I did some clearing up as well:

==== Fixed:

== data-built-1.rq
== result-datatype-1.rq

In the data, there was a literal of  1.0
Changed to 1.0e0
   (1.0 is or is becoming now a decimal in Turtle, not an XSD double)
Changed results to match.

== q-langMatches-3.rq
== q-langMatches-4.rq

lang("xyz", "*") does not match by SPARQL nowadays but these tests had it 
returning true.  rq23/24 says:

The idiom langMatches( lang( ?v ), "*" ) will not match literals without a 
language tag as lang( ?v ) will return an empty string

Received on Tuesday, 22 August 2006 12:24:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:51 UTC