W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > June 2006

Tests, general and extendedType-literal-ne in particular

From: Jan Wielemaker <wielemak@science.uva.nl>
Date: Wed, 21 Jun 2006 14:46:03 +0200
To: public-rdf-dawg-comments@w3.org
Message-Id: <200606211446.03817.wielemak@science.uva.nl>


I've already sent some comments on the SPARQL tests regarding syntax.
I'm now using the tests to debug the semantic part of the SWI-Prolog
SPARQL engine.  I fear I'll find a few issues :-)  Some questions:

  * I'm now using the XML test-data.  Part of this is actually Turtle
    data, so I generalised my test framework to use both.  I have the
    impression the test-data is maintained in Turtle.  If this is the case 
    switch and I'd appreciate if the website would state (near the
    downloads) that the Turtle data is the one maintained.

    If the RDF/XML data is provided, it would be great if it was formatted
    a bit better.  I'm now load and save many of the files using the
    SWI-Prolog RDF parser to get something readable.

  * I'm struggling with the extendedType-literal-ne test.  The result
    data says it should return no results.  Query is this

======================= extendedType-literal-ne ========================
# Test FILTER negative match on extended type.
# $Id: extendedType-literal-ne.rq,v 1.1 2005/08/02 03:30:19 eric Exp $

PREFIX loc: 
PREFIX air: <http://www.daml.org/2001/10/html/airport-ont#>
SELECT ?a1 ?a2
 WHERE {?a1 air:name ?name1 ;
            loc:location ?l1 .
        ?l1 loc:rotational ?r .
        FILTER (?r != "-7420507.1"^^loc:ECEF_X) }

Data is this (after reformatting):

<?xml version='1.0' encoding='UTF-8'?>
    <!ENTITY air 'http://www.daml.org/2001/10/html/airport-ont#'>
    <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
    <!ENTITY loc 

<rdf:Description rdf:about="&loc;a"
    air:name="Austin Bergstrom International">
      <loc:rotational rdf:datatype="&loc;latitude">30.300000</loc:rotational>

<rdf:Description rdf:about="&loc;b"
    air:name="Austin Bergstrom International">
      <loc:orthogonal rdf:datatype="&loc;ECEF_Y">-5462738.5</loc:orthogonal>
      <loc:rotational rdf:datatype="&loc;ECEF_X">-7420507.1</loc:rotational>


First of all, the query uses the variable a2 in the projection which is not 
in the query.  

My system now returns the row(loc:a, NULL).  This looks like the correct 
result to
me as I do not see where the logic resides that makes these two coordinates 
same to the SPARQL engine.  What am I missing?


	Cheers --- Jan
Received on Wednesday, 21 June 2006 12:46:16 UTC

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