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] Google / prices in Euro - Bug & Work-around

Martin Hepp martin.hepp at ebusiness-unibw.org
Tue Jun 21 09:07:27 CEST 2011


Dear all:

There is a small bug in Google's Rich Snippet testing tool:

If the currency is "EUR", then the price may be rendered incorrectly - in some cases, the digits following the delimiter (99.xx - the fractional part) are treated as if they were part of the main digits (i.e. the integer part).

Example: 

foo:price a gr:UnitPriceSpecification ;
	gr:hasCurrency "EUR"^^xsd:string ;
	gr:hasCurrencyValue "99.00"^^xsd:float .

can, in some cases, show up as

EUR 9900.00

Google is working on the issue and we assume at this point that this is just a bug in the validator, not in the actual Google rendering component.

Other currencies are not affected, as far as we know.

As a work-around, we recommend that you remove the fractional part from currency values if it is ".00".

So for those values, please use

foo:price a gr:UnitPriceSpecification ;
	gr:hasCurrency "EUR"^^xsd:string ;
	gr:hasCurrencyValue "99.00"^^xsd:float .

or in RDFa

<div rel="gr:hasPriceSpecification">
<div typeof="gr:UnitPriceSpecification">
<div property="gr:hasCurrency" content="EUR" datatype="xsd:string"></div>
<div property="gr:hasCurrencyValue" content="99" datatype="xsd:float"></div>
</div>

instead of 

<div rel="gr:hasPriceSpecification">
<div typeof="gr:UnitPriceSpecification">
<div property="gr:hasCurrency" content="EUR" datatype="xsd:string"></div>
<div property="gr:hasCurrencyValue" content="99.00" datatype="xsd:float"></div>
</div>

This is just a precautionary measure. At this moment, we have not seen this bug in actual Google search results, just in the testing tool.


Best wishes

Martin Hepp





More information about the goodrelations mailing list