home > news > topic maps lab juggling rdfa for googles 'rich snippets'

close subject identifiers for Topic Maps Lab juggling RDFa for Googles 'Rich Snippets'
  • http://www.topicmapslab.de/documents/juggling_rdfa_google_rich_snippet

Topic Maps Lab juggling RDFa for Googles 'Rich Snippets'

Published by {{by}} on {{at}} and updated at {{updated}}.


With Google introducing rich snippets into their search results we had a good reason to enrich our site with RDFa markup thereby semantically anotating our data publicly available.

Google is now starting to not only show short snippets – a sample of a webpage’s content – but also so called Rich Snippets in their search results.

Rich Snippets give users convenient (semantically augmented) summary information about their search results at a glance.

Until now we stored loads of information in our Topic Map for this portal but exporting it in whole to the public would have been no good example of dealing with data privacy :)

So why not make the information which is available publicly anyway a bit easier readable for those machines under us? We did so for topicmapslab.de. And hope that these snippets will be used to improve search results. Here is a small snippet from our view which produces a person’s page. More information about using RDFa markup is available on google or RDFa wiki.

<html xmlns="http://www.w3.org/1999/xhtml"

You would want to choose a appropriate doctype first and define the prefixes used.

<div class="detailShape" typeof="v:Person">
    <%= image_tag(url_for_file_column(person, "thumbnail", "detail"), "property"=>"v:photo")%>
    <h1 property="v:name"><%=h person.full_name -%></h1>
        <br/><span rel="v:address"><%= t(:"address") + ":" -%><br/>
            <%= render_shape :for => person.address, :shape => "card" -%><br/><br/>

In your views just explicitly markup the data you want to highlight.

Yes it is as easy as that! From now on any search engine will be able to use your semantically enriched content for a better search.

Authors of this document are

Subject Matter

Topic Maps Lab Community Portal

is a {{project}}.


A new Topic Maps community portal, which based on Topic Maps technologies.

Visit homepage of Topic Maps Lab ...


Follow us on Twitter


Topic Maps offers an information architecture for semantic portals with
highly networked content and access paths in support of the associative
human mind. It is our technology of choice for knowledge oriented
application systems.

Gerhard Weber
topicWorks Domains
Topic Maps Lab auf der Cebit 2011

Graduate from the Topic Maps Lab