W3C home > Mailing lists > Public > public-vocabs@w3.org > September 2012

AW: new itemscope or not?

From: Cord Wiljes <cwiljes@cit-ec.uni-bielefeld.de>
Date: Sat, 8 Sep 2012 03:29:58 +0200
To: <public-vocabs@w3.org>
Message-ID: <004a01cd8d61$75b2d210$61187630$@cit-ec.uni-bielefeld.de>
So this one would be forbidden, because it has two itemids:

<div itemscope itemtype ="http://schema.org/Book"
itemid="http://dbpedia.org/resource/Hamlet urn:isbn:0-330-34032-8">
       <span itemprop="name">Hamlet</span>

Schema.org's "url" is a property of "Thing", i.e. everything can have one or
several urls. I understand its semantics as "URL where you can get a
document about this entity." So it is something different from an itemid.
Using the Hamlet example:

<div itemscope itemtype ="http://schema.org/Book"
   <a href="http://en.wikipedia.org/wiki/Hamlet" itemprop="url">Wikipedia
Page about Hamlet</a>
" itemprop="url">The full text of Hamlet</a>


Hamlet, the play:
documents with info on Hamlet:   http://en.wikipedia.org/wiki/Hamlet

-----Ursprüngliche Nachricht-----
Von: Jeni Tennison [mailto:jeni@jenitennison.com] 
Gesendet: Freitag, 7. September 2012 21:16
An: Ed Summers
Cc: Dawson, Laura; Thad Guidry; public-vocabs@w3.org
Betreff: Re: new itemscope or not?

On 7 Sep 2012, at 20:03, Ed Summers wrote:
> It would be interesting to know if the HTML spec allowed multiple 
> identifiers, similar to how other HTML attributes work:

"The itemid attribute, if specified, must have a value that is a valid URL
potentially surrounded by spaces."


So that would be 'no', not according to spec.

I've often wondered whether the schema.org 'url' property is meant to be
synonymous with itemid. I'm not sure what happens in schema.org interpreters
when you specify one/other/both/multiple urls...

Jeni Tennison
Received on Saturday, 8 September 2012 01:30:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:29:25 UTC