W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > May 2008

2 RDFa SPARQL Test Harness Issues

From: Manu Sporny <msporny@digitalbazaar.com>
Date: Sat, 17 May 2008 14:53:29 -0400
Message-ID: <482F29A9.4090702@digitalbazaar.com>
To: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>, Andy Seaborne <andy.seaborne@hp.com>, Benjamin Nowack <bnowack@semsol.com>
CC: Dave Beckett <dave@dajobe.org>

Hi all,

This is a summary of all the current RDFa Test Harness issues that we
have including a couple I found this morning. I'm cc'ing Andy and Benji
in the hope that they have some insight into these issues. All test
cases can be viewed via Crazy Ivan (RDFa Test Harness):


UTF-8 issues with ARC and SPARQL.org - TCs 60, and 108

We currently have two test cases that use UTF-8 characters (TC#60 and
TC#108). The SPARQL.org and ARC SPARQL engines both die processing
queries containing multi-byte UTF-8 characters:

Here's what SPARQL.org does:

We had not seen this issue until now due to a cut-paste issue in the
Test Harness, which made both the XHTML and SPARQL queries look for "??
??" (four question marks separated by a space in the middle). The TCs
were updated to use the proper UTF-8 characters, which broke the SPARQL
engines. Andy, Benji - any chance that this could be fixed in the near

False Positives in Test Harness with TCs 52, 53, and 58

We currently have a couple of bnode tests showing a PASS when they
should be FAIL. All test cases have what we thought was the proper way
to check for a bnode's existence. This bug exists in librdfa and had not
been caught until Dave Beckett pointed out an issue with these Test
Cases and librdfa. I had erroneously replied stating that those test
cases pass in the Test Harness (which they do, and they have always
done). However, they should not be passing. Take TC #52, librdfa and
SPARQL.org as an example. Here's the XHTML:

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
    <title>Test 0052</title>
    <p typeof="foaf:Person" resource="http://www.example.org/#me">
      John Doe

librdfa produces the following RDF/XML, which is incorrect - the node
should not contain an @rdf:about...

<?xml version="1.0" encoding="utf-8"?>
 <foaf:Person rdf:about="http://www.example.org/#me">

but SPARQL.org, surprisingly says that there is a solution to the query.

      <http://xmlns.com/foaf/0.1/Person> .

This leads me to believe that the SPARQL above doesn't do what we think
it does, but I haven't been able to find any documentation detailing how
bnode identification happens in SPARQL queries.

The question that we're attempting to ask above is "is there a bnode
that has an rdf:type of foaf:Person?", not "is there any node that has
an rdf:type of foaf:Person?".

-- manu

Manu Sporny
President/CEO - Digital Bazaar, Inc.
blog: DB Launches Medical Record Sales Service with Shepherd Medical
Received on Saturday, 17 May 2008 18:58:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:28 UTC