- From: Bob Ferris <zazi@smiy.org>
- Date: Tue, 18 Oct 2011 12:11:15 +0200
- To: public-vocabs@w3.org
Hi Ralph, alternatively by utilising RDFa [1] you could probably achieve the intended kind of modelling, see the following example: <div xmlns:ex="http://example.org/" xmlns:so="http://schema.org/"> <div about="[ex:author1]" typeof="[so:Person]"> <h1 property="[so:name]">Isaac Asimov</h1> </div> <!-- person --> <div about="[ex:book1]" typeof="[so:Book]"> <div rel="[so:author]" resource="[ex:author1]"></div> <div property="[so:name]">The Dark Ages</div> </div> <!-- book --> <div about="[ex:book2]" typeof="[so:Book]"> <div rel="[so:author]" resource="[ex:author1]"></div> <div property="[so:name]">The Best of Isaac Asimov</div> </div> <!-- book --> </div> <!-- namespace div (optional) --> (I added resource identifier for the person and the two books) If you put this snippet into a webpage, you could check the extracted result, e.g., via check.rdfa.info, see [2]. Unfortunately, this doesn't seem to be Rich Snippet friendly, see [3]. Maybe, I did another mistake for not being Rich Snippet conform ;) Cheers, Bo [1] http://www.w3.org/TR/rdfa-syntax/ [2] http://check.rdfa.info/check?url=http%3A%2F%2Fzazi.smiy.org%2Fexamples%2Fschemaorg_-_resource_utilisation_example.html&version=1.0 [3] http://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Fzazi.smiy.org%2Fexamples%2Fschemaorg_-_resource_utilisation_example.html&view= On 10/17/2011 11:07 PM, LeVan,Ralph wrote: > Yeah, that's what I thought too and I tried that with no success before > bothering the list again. Here's what I did: > > <div itemscope itemtype="http://schema.org/Person"> > <h1 itemprop="name" id="authorname">Isaac Asimov</h1> > <div itemscope itemtype=" http://schema.org/Book"> > <div itemprop="author" itemref="authorname"></div> > <div itemprop="name">The Dark Ages</div> > </div> <!-- book --> > <div itemscope itemtype=" http://schema.org/Book"> > <div itemprop="author" itemref="authorname"></div> > <div itemprop="name">The Best of Isaac Asimov</div> > </div> <!-- book --> > </div> <!-- person --> > > The snippets tool reports an empty author for the book. > > Here's a pointer to one of my smaller pages: > http://rdap02pxdu.dev.oclc.org:6251/identities/lccn-n50-53438 > and a pointer to the tool with my page loaded: > http://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Frda > p02pxdu.dev.oclc.org%3A6251%2Fidentities%2Flccn-n50-53438&view= > > (Here's Asimov's page for the SF fans on the list: > http://rdap02pxdu.dev.oclc.org:6251/identities/lccn-n80-126289) > > Thanks! > > Ralph
Received on Tuesday, 18 October 2011 10:12:02 UTC