- From: Mark Birbeck <mark.birbeck@webbackplane.com>
- Date: Wed, 10 Dec 2008 13:00:52 -0500
- To: "Richard Cyganiak" <richard@cyganiak.de>
- Cc: public-rdfa@w3.org, "W3C RDFa task force" <public-rdf-in-xhtml-tf@w3.org>
- Message-ID: <ed77aa9f0812101000q45bca47bv79d7513bade7c114@mail.gmail.com>
Hi Richard, It's all a matter of taste, but I think this part lends itself quite nicely to appearing in a link element in the head: rel="foaf:primaryTopic foaf:maker" This approach is used in the RDFa/FOAF description here: < http://internet-apps.blogspot.com/2008/02/first-steps-in-rdfa-creating-foaf.html > Regards, Mark On Wed, Dec 10, 2008 at 12:42 PM, Richard Cyganiak <richard@cyganiak.de>wrote: > > Ivan, > > On 10 Dec 2008, at 13:39, Ivan Herman 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!:-( >> > > Hm, weird. > > So I presume the lesson is that RDFa authors should keep their hands off > the <html> element or weird things might happen. > > I found a way of saying what I wanted in a simple way: > > <body rel="foaf:primaryTopic foaf:maker" rev="foaf:homepage" > resource="#me"> > > It has the same effect and seems just a little bit less natural to me. > > Richard > > > > 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 >> > > -- Mark Birbeck, webBackplane mark.birbeck@webBackplane.com http://webBackplane.com/mark-birbeck webBackplane is a trading name of Backplane Ltd. (company number 05972288, registered office: 2nd Floor, 69/85 Tabernacle Street, London, EC2A 4RR)
Received on Wednesday, 10 December 2008 18:01:33 UTC