An Illustrated Guide To E-Commerce Markup Using GoodRelations

In How Search & Social Engines Are Using Semantic Search, I started this series with an overview. This article will give you a walk through on generating local and organization markup for a store. We will look at an alternative vocabulary, namely GoodRelations, and take a deeper dive into the specifics of generating semantic markup […]

Chat with SearchBot

In How Search & Social Engines Are Using Semantic Search, I started this series with an overview. This article will give you a walk through on generating local and organization markup for a store.

We will look at an alternative vocabulary, namely GoodRelations, and take a deeper dive into the specifics of generating semantic markup for the e-commerce domain using GoodRelations.

To clarify, GoodRelations is a vocabulary for e-commerce. Microdata and RDFa are syntaxes. Schema.org for product is an alternate vocabulary for e-commerce.

The diagram below from Linked Open Commerce gives an excellent graphical depiction of how all entities are interlinked and related with the Web of commerce. It also gives an indication of what other novel applications can arise that can leverage proliferation of structured markup that adheres to standards. In this case, showing specifically those that pertain to e-commerce.

Linked Open Commerce1

First off, we can take a look at the GoodRelations toolset. There are many. Even converters from RDFa to microdata. The easiest way may be to use a plugin if you use a tool like WordPress, but we will do a manual walk-through of the entire process, as it is more illustrative of precisely what is occurring.

What can it do for you, anyway? How does it make your website or business findable? An example is listed below.

Serp Goodrelations Markup1

How do you generate markup for this using GoodRelations? For our first step, take a look at the figure below. As you can see, there are many tools available, even crawlers and code that will consume GoodRelations on page markup. 

Tool Page Goodrelations

 

For the scope of this walk-through, we are going to select the GoodRelations Rich Snippet Generator. Part 1, depicted below, will generate a snippet for your organization. I went ahead and filled in the information for a store.

Goodrelations Snippet Generator 4

 

After entering the information above (it is not a real store), I got the result displayed below. You can see all of the generated RDFa once you fill in all the details for your store and select Generate Code Snippet.

It also tests the validity of your inputs, e.g., what opening times and closing times are valid, and will generate a specific error with suggestions for correct input formats. Pretty cool, right?

When it is happy with your input you get a green checkmark along with the validated semantic markup! (The markup is illustrated in the grayish box below”. It begins and ends with a <div>.

Results Step 1 Generate Markup 5

 

I now have the markup needed to add to my page for organization information. In our next step, we are going to get all the structured markup for the store, including opening hours!

Make sure to select “Copy address information from company” and then also select “Determine geo position from address,” in that order.

Resulting Display 61

 

A lot of code gleaned from above will be populated, and you do not have to worry about deriving your longitude and latitude. It will be filled in for you!

After filling in the rest, we are now ready to select the Generate Code Snippet. Upon doing so, the necessary markup is generated as shown in the figure below.

Resulting Markup Check Valid Formats 7

Assuming you keep following the steps shown on the Rich Snippet Generator page, you can add product information and offers as well.

You now have the correct format to place on all your product pages, as well as the correct formats for local and business. You can continue to follow the next steps (two more) on the GoodRelations Rich Snippet Generator page until you have all the markup you need to edit your webpage.

 Goodrelations Protege 8

 

Let us look at a store that is an actual user of GoodRelations. An example would be Peek and Cloppenberg. Below is a snapshot of one of its product pages:

Produce Page Peek Clopplenburg 9

 

I took the URL for the product, and then ran it through the Sindice Web Data Inspector tool. It extracted all the RDF or “triples” as you can see!

Indice Inspector Tool 10

 

The graph view can make it a lot easier to see the inheritance hierachy. You can even use it for debugging to ensure your divs are correctly nested.

Sindice Inspector Tool Graph View 11

 

Google Structured Data Testing Tool 12

As you can see, if you want your site to be “Findable” in the Web of commerce, it is wise to add semantic markup.

GoodRelations is great for e-commerce. Schema.org is used by all three major engines and is less complex in some ways, but less rich in others. You may have to walk through it once. But there are many tools provided to get you on your way.

Depiction Tools Available W3c 13

 

Just a caveat here. Some training may be required. But if you want to be findable in the Web of commerce, make sure you add semantic markup to your site and follow other best practice guidelines (like clean, verified and validated data feeds).

And one more thing! When making your decision, “rdfa vs microdata” the below chart is definitely something to keep in mind! For more background, also read this GoodRelations Primer.

Good Relations Primer 13

 

Make sure your markup matches your data feeds and that you also do not “stuff” your pages with RDFa information or microdata that is visible to bots only and not to humans. (The latter is considered cloaking). But you do want to be findable in the Web of commerce. So, delve into it. But make sure you tread smartly.

A few final stats on the usage of markup in the current online landscape:

Rdfa Exploded 2012 14

 

Below is more data on the above chart:

Current State Metadata 15

In closing, using GoodRelations and related markup is something all retailers should investigate using to ensure their online store is findable in the global graph of commerce!


Opinions expressed in this article are those of the guest author and not necessarily Search Engine Land. Staff authors are listed here.


About the author

Barbara Starr
Contributor
Barbara Starr of SemanticFuse is a semantic strategist and software engineer, providing semantic SEO and other related consulting services. Starr is a technology expert and software designer specifically in the semantic search and semantic Web arenas. She worked as Principal Investigator for SAIC on the ARDA ACQUAINT program, which was the genesis for Watson at IBM. She also worked on the DARPA HPKB program, which was one of the precursors to the Semantic Web. She is the founder of the Semantic Web Meetup in San Diego, CA, as well as several other meetup groups. She is a governing board member of the Semantic Computing Consortium and is industry chair for IEEE International Conference on Semantic Computing.

Get the must-read newsletter for search marketers.