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

It is a feature:-( Re: Markup questions: html/body, datatype="", double predicates

From: Ivan Herman <ivan@w3.org>
Date: Wed, 10 Dec 2008 14:39:33 +0100
Message-ID: <493FC695.3070109@w3.org>
To: Richard Cyganiak <richard@cyganiak.de>
CC: public-rdfa@w3.org, W3C RDFa task force <public-rdf-in-xhtml-tf@w3.org>
Actually, thinking about this a little bit more...

Richard Cyganiak wrote:
> 
> <html rel="foaf:maker" rev="foaf:homepage">
>   <body about="#me">
>     ...
> 
> I expect this to generate these triples:
> 
> <> foaf:maker <#me> .
> <#me> foaf:homepage <> .
> 
> But what I get from the RDFa Distiller:
> 
> <> foaf:maker <#me> .
> <#me> foaf:homepage <> .
> <> foaf:maker <> .
> <> foaf:homepage <> .
> 
> Why is this?
> 

This is not a bug, it is an (ugly!) feature!:-( And this is related to
what I quoted in my previous mail:

[[[
Actually, there might be a slight issue in the spec, though: the spec
explicitly says "if the element is the head or body element then act as
if there is an empty @about present" but it does not say anything about
the html element...
]]]

so, the extra <>-s you get are because the <head> does not include any
@about and therefore an implicit @about="" is added! If you put an
@about in the head, too,

 <html rel="foaf:maker" rev="foaf:homepage">
   <head about="#you">
   <body about="#me">

then you get

<rdfa-test.html#me> foaf:homepage <rdfa-test.html> .
<rdfa-test.html#you> foaf:homepage <rdfa-test.html> .
<rdfa-test.html> foaf:maker <rdfa-test.html#me>, <rdfa-test.html#you> .

I am not saying it is nice but, well, that is the way it seems to be:-(

Ivan

-- 

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 Wednesday, 10 December 2008 13:40:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 10 December 2008 13:40:14 GMT