W3C home > Mailing lists > Public > public-vocabs@w3.org > November 2011

Distinction between object and object reference

From: Adrian Giurca <giurca@tu-cottbus.de>
Date: Fri, 04 Nov 2011 10:44:53 +0100
Message-ID: <4EB3B415.20706@tu-cottbus.de>
To: "public-vocabs@w3.org" <public-vocabs@w3.org>
Hi all,
I'm trying to understand schema.org distinction between objects (object 
descriptions)  and references (object references).

For example, a restaurant page may *contain *reviews (object 
descriptions) but may also *refer *to other web pages describing reviews.

Some questions arise:
1. Can we consider the URL property of Thing as being the way to 
reference things?
2. Is property "name" of thing a kind of "local name" (in 
opposition/complementary with microdata itemid attribute encoding an 
html id attribute value depending of the used vocabulary)?
3. Using itemref to refer local items embedded elsewhere in the page 
(but not as children of the current itemscope) seems valid.

See the markup below:

  <div itemscope itemtype="http://schema.org/Restaurant">


   <a href="http://www.examplerestaurant.com"

      itemprop="url"><span itemprop="name">My Restaurant</span></a>



This restaurant may have embedded reviews (OBJECT DESCRIPTIONS).

   <div itemscope itemprop="reviews" itemtype="http://schema.org/Review">

   <h3 itemprop="name">Mary's Review</h3>

    ... here comes effective the review...


There might be reviews outside of this scope (itemscope) but inside the SAME page another review (USING itemref:

   <h3 itemref="AlansReview-LOCAL-Id" itemscope itemprop="reviews" itemtype="http://schema.org/Review">
      <a href="#AlansReview-LOCAL-Id">See also Alan's Review</a>

But one may found a review on a blog (i.e. object references):

   <h3 itemscope itemprop="reviews" itemtype="http://schema.org/Review">
      <a itemprop="url" href="http://www.john.com/blog/First_visit_at_My_Restaurant/">John's Review</a>

Out of itemscope reviews...

  <div id="AlansReview-LOCAL-Id" itemscope  itemtype="http://schema.org/Review">
   <h3 itemprop="name">Alan's Review</span></h3>
    ... here it comes

Does anyone know if there is any agreement to these issues?

Thank you in advance,
-Adrian Giurca

/<http://de.linkedin.com/in/adriangiurca> /
Received on Friday, 4 November 2011 09:48:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:48:43 UTC