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] isVariantOf example?

Ben Empson ben at arrayx.co.uk
Wed Feb 23 16:46:58 CET 2011


Hi there, I need to markup a page with a product and several variants. I
found this: http://www.ebusiness-unibw.org/wiki/GoodRelationsVariants and
this this post:
http://ebusiness-unibw.org/pipermail/goodrelations/2010-November/000276.html
which seem to be telling me that I need to be implementing the isVariantOf
object property but I really can't understand how I should be doing that!

 

If I have a product like this:

 

<div xmlns="http://www.w3.org/1999/xhtml"

  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"

  xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"

  xmlns:xsd="http://www.w3.org/2001/XMLSchema#"

  xmlns:gr="http://purl.org/goodrelations/v1#"

  xmlns:foaf="http://xmlns.com/foaf/0.1/">

 

  <div typeof="gr:Offering" about="#offering">

    <div rev="gr:offers" resource="#company"></div>

    <div property="gr:name" content="The Times" xml:lang="en"></div>

    <div property="gr:description" content="The timetesdasd asd asdasdweoiru
qwore" xml:lang="en"></div>

    <div rel="foaf:depiction" resource="http://1.2.com/1.jpg"></div>

    <div rel="gr:hasBusinessFunction"
resource="http://purl.org/goodrelations/v1#Sell"></div>

    <div rel="gr:hasPriceSpecification">

      <div typeof="gr:UnitPriceSpecification">

        <div property="gr:hasCurrency" content="GBP"
datatype="xsd:string"></div>

        <div property="gr:hasCurrencyValue" content="30.00"
datatype="xsd:float"></div>

        <div property="gr:hasUnitOfMeasurement" content="C62"
datatype="xsd:string"></div>

      </div>

    </div>

    <div rel="gr:acceptedPaymentMethods"
resource="http://purl.org/goodrelations/v1#MasterCard"></div>

    <div rel="gr:acceptedPaymentMethods"
resource="http://purl.org/goodrelations/v1#VISA"></div>

    <div rel="foaf:page" resource="http://1.2.com"></div>

  </div>

</div>

 

And then I have a variants table as such:

 

<table class="data">

                <tr>

                                <th>Payment method and duration</th>

                                <th>Country of Delivery</th>

                                <td>Edition</td>

                                <th>Delivery method</th>

                                <th>Price</th>                 

                                <th> </th>

                </tr>

                <tr>

                                <td>Quarterly Direct Debit</td>

                                <td>United Kingdom</td>

                                <td>UK Edition</td>

                                <td>UK First Class Post</td>

                                <td>£0.00</td>

                                <td><a class="arrow-blue" href="#"
title="Add to Shopping Cart">Add to basket</a></td>

                </tr>

                <tr class="last">

                                <td>Credit card, 12 months subscription</td>

                                <td>United Kingdom</td>

                                <td>UK Edition</td>

                                <td>UK First Class Post</td>

                                <td>£0.00</td>

                                <td><a class="arrow-blue" href="#"
title="Add to Shopping Cart">Add to basket</a></td>

                </tr>

</table>

 

How can I markup the variants table correctly relating each row to the main
product? As you can see, the variant variables are Payment Method &
Duration, Country of Delivery, Edition and Delivery Method.

 

Any help appreciated :)

 

Regards, Ben

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1204 / Virus Database: 1435/3461 - Release Date: 02/22/11

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ebusiness-unibw.org/pipermail/goodrelations/attachments/20110223/145954fc/attachment.html>


More information about the goodrelations mailing list