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

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 UTC