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] appologies and code for feedback

Radu Silaghi r at r-s.ro
Tue May 15 01:45:36 CEST 2012


Hello everybody,

Apologies for sparkling the debate on NACE code and for not directly using
the forum for mentioning it.

I mentioned it not to be overlooked, because in practice is only used by
Chamber of Commerce for internal statistics.

For e-commerce, I would trade it for speed, from vocabulary point of view,
now that I know how to use it.


Back to my original intent, as I am newbie, please correct my codes for
implementation of Google Product availability labels into Rich Snippets.

At http://www.heppresearch.com/gr4google  and
http://www.heppnetz.de/ontologies/goodrelations/v1#hasInventoryLevel examples
are showing Rich Snippets stock availability status based on stock count.

My system displays Inventory Availability based on stock in different
warehouses ( detailed below )

Want : Google Snippet to display Inventory Availability label from my
system.

( Code is below table )

Thanks for correction,

Radu


eShop stock                Warehouse stock                   Supplier stock
                System Label           Google Snippet

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

positive stock
                                     in stock                  in stock

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

zero stock                   zero stock
 positive stock                  preorder                  preorder

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

zero stock                   positive stock
                              available for order     available for order

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

zero stock                   zero stock                              zero
stock                      out of stock             out of stock

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------


<!--on the Vocabulary page, define the ObjectProperty typeof ...-->


<div class="InventoryAvailability" typeof="owl:ObjectProperty" about="
http://www.site.com/vocabulary/#hasInventoryAvailability" >

  <div rel="rdfs:subPropertyOf"
resource="gr:qualitativeProductOrServiceProperty"></div>

  <div property="rdfs:label" xml:lang="en" content="Inventory Availability"
datatype="xsd:string"></div>

  <div property="rdfs:label" xml:lang="ro" content="Disponibilitate
Inventar" datatype="xsd:string"></div>

  <div rel="rdfs:domain" resource="gr:ProductOrService"></div>

  <div rel="rdfs:label" resource="
http://www.site.com/vocabulary/#hasInventoryAvailability"
datatype="xsd:string"></div>

  <div rel="rdfs:range" resource="
http://www.site.com/vocabulary/#hasInventoryAvailability"></div>

</div>


<!--... and the individuals-->


<div typeof="http://www.site.com/vocabulary/#hasInventoryAvailability"
about="#InStock">

  <div property="rdfs:label" xml:lang="en" content="in stoc"
datatype="xsd:string"></div>

  <div property="rdfs:label" xml:lang="ro" content="In stoc"
datatype="xsd:string"></div>

</div>

<div typeof="http://www.site.com/vocabulary/#hasInventoryAvailability"
about="#AvailableForOrder">

  <div property="rdfs:label" xml:lang="en" content="available for order"
datatype="xsd:string"></div>

  <div property="rdfs:label" xml:lang="ro" content="Disponibil"
datatype="xsd:string"></div>

</div>

<div typeof="http://www.site.com/vocabulary/#hasInventoryAvailability"
about="#OutOfStock">

  <div property="rdfs:label" xml:lang="en" content="out of stoc"
datatype="xsd:string"></div>

  <div property="rdfs:label" xml:lang="ro" content="Lipsa stoc"
datatype="xsd:string"></div>

</div>

<div typeof="http://www.site.com/vocabulary/#hasInventoryAvailability"
about="#Preorder">

  <div property="rdfs:label" xml:lang="en" content="preorder"
datatype="xsd:string"></div>

  <div property="rdfs:label" xml:lang="ro" content="Precomanda"
datatype="xsd:string"></div>

</div>



<!-- Attached to offer -->


<div xmlns:vocab="http://www.site.com/vocabulary/#" class="Offering"
typeof="gr:Offering" about="http://www.site.com/#offer">

    <div rev="gr:offers" resource="http://www.site.com/#company"></div>

    <div property="gr:name" content="Moet Chandon Brut Imperial Magnum 1.5
Lt" xml:lang="ro"></div>

    <div property="gr:description" content="Categorie:blanc An:non-vintage
Cantitate:1.5l" xml:lang="ro"></div>


    <div rel="gr:hasInventoryLevel">

        <div typeof="QualitativeValue">

             <div property="rdfs:label" xml:lang="ro" content="In stoc"
datatype="xsd:string"></div>

        </div>

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

    </div>


</div>



Radu Silaghi
+40743158194
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ebusiness-unibw.org/pipermail/goodrelations/attachments/20120515/502a191a/attachment.html>


More information about the goodrelations mailing list