Re: Test Case #17: specifying named bnode relationships

Although technically it is perfectly o.k., I wonder whether the SPARQL 
should not be made a bit different just to emphasize the point. At least 
_not_ use the same bnode symbols, ie, something like:

ASK WHERE {
_:x
     <http://xmlns.com/foaf/0.1/name>
        "Manu Sporny" .
  _:x
     <http://xmlns.com/foaf/0.1/knows>
        _:y .
_:y
     <http://xmlns.com/foaf/0.1/name>
        "Ralph Swick" .
}

or even radically reformat it:

ASK WHERE {
[ <http://xmlns.com/foaf/0.1/name> "Manu Sporny" ;
   <http://xmlns.com/foaf/0.1/knows> [
 <http://xmlns.com/foaf/0.1/name> "Ralph Swick".
   ]
].
}

For a not-really-initiated reader the current setup might suggest that 
by simply taking over the same symbols from the original, RDFa source it 
is all right...

Cheers

Ivan


Manu Sporny wrote:
> Purpose:
> 
> This test checks to make sure that the parser supports creating named
> bnode relationships.
> 
> ====================== Test Case 17 =============================
> 
> ---------------------Test Case 17 XHTML--------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN"
> "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:foaf="http://xmlns.com/foaf/0.1/">
>   <head>
>         <title>Test 0017</title>
>   </head>
>   <body>
>         <p>
>            <span about="[_:a]" property="foaf:name">Manu Sporny</span>
>            <span about="[_:a]" rel="foaf:knows"
> resource="[_:b]">knows</span>
>            <span about="[_:b]" property="foaf:name">Ralph Swick</span>.
>         </p>
>   </body>
> </html>
> ----------------------------------------------------------------
> 
> ---------------------Test Case 17 SPARQL -----------------------
> ASK WHERE {
> _:a
>    <http://xmlns.com/foaf/0.1/name>
>       "Manu Sporny" .
> _:a
>    <http://xmlns.com/foaf/0.1/knows>
>       _:b .
> _:b
>    <http://xmlns.com/foaf/0.1/name>
>       "Ralph Swick" .
> }
> ----------------------------------------------------------------
> 
> -- 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 Monday, 12 May 2008 16:18:04 UTC