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.

Rich Snippet Generator for

GoodRelations
E-Business and Web Science Research Group

GoodRelations is a powerful yet simple technique for putting rich data snippets about your business into your Web pages. This makes the unique features of your products and services more accessible for the latest generation of search engines (e.g. Google or Yahoo SearchMonkey), novel mobile applications, and browser plug-ins. Plus, it brings positive effects on existing search engines.

With this tool, you can create such snippets using the W3C RDFa format for simple copy-and-paste. Just insert them into your Web pages and update the XHTML/HTML page header markup, as explained below.

It will pay out. It's simple. And BestBuy is already doing it with remarkable results.

en  de  tr el

Step 1: Create rich snippet for your company

*Web page describing your company shop and offers will point to this URL, e.g. http://www.example.com/
*Legal name of your company
Country
City
Zip code
Street and number
Phone number proposed scheme: +49-0123-456789
URL of a logo or image e.g. http://www.example.com/image.(jpg|png|gif|svg)

Allow anonymous logging of submitted information for research purposes?

Step 2: Create rich snippet for your shop or store

This step is necessary only if you maintain a shop or store location.

*Name of store or location
Country
City
Zip code
Street and number
Phone number proposed scheme: +49-0123-456789
URL of a logo or image e.g. http://www.example.com/image.(jpg|png|gif|svg)
Geo position Latitude ()   Longitude ()  
Opening hours for Monday through Friday proposed scheme: 08:30
Closing hours for Monday through Friday proposed scheme: 16:00
Opening hours for Saturday proposed scheme: 08:30
Closing hours for Saturday proposed scheme: 12:00
Opening hours for Sunday proposed scheme: 08:30
Closing hours for Sunday proposed scheme: 12:00

Allow anonymous logging of submitted information for research purposes?

If you would like to provide a more granular description of your opening hours, then you should consider customizing the gr:OpeningHoursSpecification code section according to your needs. See the GoodRelations Quickstart Guide for details.

If you have multiple shops, but just one page, simply create and copy the snippet multiple times and replace all ocurrences of the three elements (#store, #mon_fri, and #sat) inside the same snippet by (#store1, #mon_fri1, #sat1), (#store2, #mon_fri2, #sat2), etc.

Step 3: Create rich snippet for an individual product or service

GoodRelations is most effective if you publish individual data on your products and services. This is of particular relevance for dynamic Web shops with many items.

*Name of the product
Product category
Description of the product
Language of the description
select language code from ISO 639-1, e.g. "en" or "de"
  
URL of the product detail page e.g. http://www.example.com/product/
URL of a product image e.g. http://www.example.com/image.(jpg|png|gif|svg)
EAN-13, 13-digit UPC, or 13-digit ISBN code for the product
Currency and price for product
select 3-letter ISO 4217 currency code, e.g. "EUR" or "USD", and price for product
  
Validity start of product offering date format 29.09.2016T00:00:00Z
Validity end of product offering date format 29.09.2017T23:59:00Z
Business function
see predefined business function individuals in GoodRelations
Payment methods
see predefined payment method individuals in GoodRelations
Delivery methods
see predefined delivery methods individuals in GoodRelations
Eligible regions
select A, CH and D
select EU member states
deselect all
Business partners
see predefined business partner individuals in GoodRelations
Anonymous product (e.g. multiple article items for sale)
do not cross if offering a certain, maybe used article

Allow anonymous logging of submitted information for research purposes?

If you have multiple products within the same web page, simply create and copy the snippet multiple times and replace all ocurrences of the element #offer inside the same snippet by #offer1, #offer2, etc.

Step 4: Updating the XHTML/HTML page header

Once you will have inserted the snippets into the respective pages, you should indicate their existence to crawlers. That is also pretty easy:

You can use GoodRelations in RDFa in XHTML, HTML5, and HTML4 templates, despite the different state of the standardization of respective DOCTYPEs.

1. XHTML

a) Set DOCTYPE to XHTML+RDFa 1.0:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

b) Set html version attribute to XHTML+RDFa1.0:

<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.0" xml:lang="en">

c) Check that the <head> element includes the proper content type and encoding for XHTML:

<head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
    <title>Your page title blabla...</title>
</head>

2. HTML5

a) Set DOCTYPE to html:

<!DOCTYPE html>

b) Set html version attribute to HTML+RDFa1.1

<html version="HTML+RDFa 1.1" lang="en">

3. Other HTML markup

Either use HTML5 recipe or simply set the html version attribute to HTML+RDFa1.1 or XHTML+RDFa1.0. Most clients will extract RDF from this type. Either

<html xmlns="http://www.w3.org/1999/xhtml" version="XHTML+RDFa 1.0">

or

<html version="HTML+RDFa 1.1">

With our dedicated notification service we can provide you assistance in publishing your embedded GoodRelations content. There you just have to fill in your page's Web address, afterwards we can automatically take care of the registration of your pages on the Web of Linked Data. This online tool is available here.

Additional resources

GoodRelations Quickstart Guide - explains the templates used in this tool

GoodRelations CookBook - more complex patterns for specific scenarios

GoodRelations Project Page - information about the underlying GoodRelations vocabulary

GoodRelations Notify - notification service for submission of GoodRelations contents to semantic search engines

Source Code

The source code of this tool is available under a LPGL license from http://code.google.com/p/grsnippetgen/.

Acknowledgements

Thanks to Özer Kavak and Giorgos Alexiou who contributed translations to this project. The work on GRSnippetGen has been supported by the German Federal Ministry of Research (BMBF) by a grant under the KMU Innovativ program as part of the Intelligent Match project (FKZ 01IS10022B).

Developer: Alex Stolz

Disclaimer: This service is provided by the E-Business and Web Science Research Group at Universität der Bundeswehr München as it is with no explicit or implicit guarantees.