- From: Ivan Herman <ivan@w3.org>
- Date: Tue, 27 May 2008 09:32:01 +0200
- To: Manu Sporny <msporny@digitalbazaar.com>
- Cc: RDFa mailing list <public-rdf-in-xhtml-tf@w3.org>
- Message-ID: <483BB8F1.5030601@w3.org>
Wow. I completely missed that point, too! You are absolutely right...
Ivan
Manu Sporny wrote:
> 16 of the approved test cases are not correct due to the SPARQL not
> testing for proper Bnode existence. We should also change the SPARQL
> when querying Bnodes in the test cases to self-document itself more
> clearly as well.
>
> These are the test cases that are currently incorrect:
>
> 0033
> 0046
> 0047
> 0048
> 0050
> 0052
> 0053
> 0058
> 0064
> 0065
> 0081
> 0082
> 0083
> 0084
> 0088
> 0091
>
> For example, TC 33 currently has the following SPARQL:
>
> ---------------------------------------------------------------------------
> ASK WHERE {
> <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0033.xhtml>
> <http://purl.org/dc/elements/1.1/creator> _:bn0 .
> _:bn0 <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
> }
> ---------------------------------------------------------------------------
>
> The problem is that even if a bnode is not created, and a named node is
> created instead - the test still passes. I strongly suggest that we move
> over to the SPARQL syntax that is used in the SPARQL Syntax Document for
> querying (for best practice reasons). Here's what the above test should
> be changed to:
>
> ---------------------------------------------------------------------------
> ASK WHERE {
> <http://www.w3.org/2006/07/SWD/RDFa/testsuite/xhtml1-testcases/0033.xhtml>
> <http://purl.org/dc/elements/1.1/creator> ?a .
> ?a <http://xmlns.com/foaf/0.1/name> "Ben Adida" .
> FILTER ISBLANK(?a)
> }
> ---------------------------------------------------------------------------
>
> and here's TC 58 for a more complex example:
>
> ---------------------------------------------------------------------------
> ASK WHERE {
> <http://www.example.org/#ben>
> <http://xmlns.com/foaf/0.1/knows>
> ?a .
> <http://www.example.org/#ben>
> <http://xmlns.com/foaf/0.1/knows>
> ?b .
> ?a
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> <http://xmlns.com/foaf/0.1/Person> .
> ?a
> <http://xmlns.com/foaf/0.1/name>
> "Mark Birbeck" .
> ?b
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
> <http://xmlns.com/foaf/0.1/Person> .
>
> ?b
> <http://xmlns.com/foaf/0.1/name>
> "Ivan Herman" .
> FILTER ISBLANK(?a)
> FILTER ISBLANK(?b)
> }
> ---------------------------------------------------------------------------
>
> -- manu
>
--
Ivan Herman, W3C Semantic Web Activity Lead
Home: http://www.w3.org/People/Ivan/
PGP Key: http://www.ivan-herman.net/pgpkey.html
FOAF: http://www.ivan-herman.net/foaf.rdf
Received on Tuesday, 27 May 2008 07:32:33 UTC