Warning: This tool or project is no longer maintained and kept available only for archival purposes. Since GoodRelations and schema.org have evolved significantly in the past years, the current status available on this page is unlikely to function as expected. We take no responsibility for any damage caused by the use of this outdated work, to the extent legally possible.

Due to a lack of resources, we are unable to provide support for this project outside of consulting projects or sponsored research. Please contact us if you can contribute resources to update and enhance these resources.

GoodRelations - The Web Vocabulary for E-Commerce

This is the archive of the goodrelations dicussion list

GoodRelations is a standardized vocabulary for product, price, and company data that can (1) be embedded into existing static and dynamic Web pages and that (2) can be processed by other computers. This increases the visibility of your products and services in the latest generation of search engines, recommender systems, and other novel applications.

[goodrelations] Linking from offers or products to the company with microdata

Martin Hepp martin.hepp at ebusiness-unibw.org
Tue Jan 10 12:25:43 CET 2012


Hi,

as you correctly state, microdata does not offer a "rev" pattern for linking from an entity to an outside entity. Since the microdata processing rules for GoodRelations [1] specify that 

"Identity based on itemid: Two items with the same itemid represent the same conceptual entity and must be merged by GoodRelations processors. ..."

So you can put the following code anywhere on the page

<div itemscope itemtype="http://purl.org/goodrelations/v1#BusinessEntity"
     itemid="http://example.com/#company">
     <link itemprop="offers" href="#offer" />
</div>

This will link to the offer (gr:Offering, identified by itemid="#offer":

<div itemscope itemtype="http://purl.org/goodrelations/v1#Offering" itemid="#offer">
  <div itemprop="name">Hepp Personal SCSI Controller Card</div>
  <div itemprop="description">The Hepp Personal SCSI is a 16-bit 
add-on card that allows attaching up to seven SCSI devices to your computer.</div>
  <link itemprop="hasBusinessFunction" 
     href="http://purl.org/goodrelations/v1#Sell" />
  <div itemscope itemprop="hasPriceSpecification" 
       itemtype="http://purl.org/goodrelations/v1#UnitPriceSpecification">Price: 
    <meta itemprop="hasCurrency" content="USD">$
    <span itemprop="hasCurrencyValue">99.99</span>
    <time itemprop="validThrough" datetime="2012-11-30T23:59:59Z"></time> 
  </div>
</div>

Best

Martin Hepp

[1] http://www.heppnetz.de/ontologies/goodrelations/v1.html#microdata_specification
On Dec 31, 2011, at 3:41 PM, Özer Kavak wrote:

> Hi all,
> 
> on 
> http://wiki.goodrelations-vocabulary.org/Quickstart
> 
> <div about="#offering" typeof="gr:Offering">
> 
>   
> <div rev="gr:offers" resource="http://www.hepps-bagels.com/#company"></div>
> 
>   
> <div property="gr:name"
> 
>        
> content="Canon Rebel T2i (EOS 550D) $899" xml:lang="en"></div>
> 
> ...
> 
> code links the offer to the company.
> 
> How can i do it with microdata syntax? 
> i could not imagine usage of itemprop instead of rev
> 
> Thanks 
> özer
> _______________________________________________
> goodrelations mailing list
> goodrelations at ebusiness-unibw.org
> http://ebusiness-unibw.org/cgi-bin/mailman/listinfo/goodrelations





More information about the goodrelations mailing list