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.
This step is necessary only if you maintain a shop or store location.
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.
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.
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.
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.
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>
a) Set DOCTYPE to html:
<!DOCTYPE html>
b) Set html version attribute to HTML+RDFa1.1
<html version="HTML+RDFa 1.1" lang="en">
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.
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
The source code of this tool is available under a LPGL license from http://code.google.com/p/grsnippetgen/.
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.