GoodRelations Recipe 7

From Wiki of the E-Business and Web Science Research Group
Jump to: navigation, search
gr_banner_small.png
GoodRelations is a standardized vocabulary for product, price, and company data that can be embedded into existing static and dynamic Web pages.

Project Main Page
Vocabulary
Documentation
Developer's Wiki
GoodRelations Cookbook

GoodRelations Recipe # 7:

A Round-tripping Example of Deriving GoodRelations Data from A Merchant's XML Catalog File

Martin Hepp, mhepp@computer.org


Overview

Input Data and Issues

XML data file with no DTD

Some fields empty

Encoding unclear

Considerations

Base URI and ID Scheme

Validityof Offerings and Prices

GoodRelations Patterns

Merchant

Manufacturers

Products incl. foaf:page to merchant

Offering, Warranty and Price Specification incl. foaf:page to merchant


Python Conversion Tool

Output

RDF/XML

Data Delivery Methods and Publication

Ping the Semantic Web

Indexing Services etc.

RDF2DataRSS


Full process:

a) XML

b) Python

c) DataRSS / Publication


Once you have generated GoodRelations-compliant data for your offerings, you should publish the data on the Web. That is fairly simple:

1. Save the file under the filename e.g.
 
semanticweb.rdf

in the root directory of your Web server so that it becomes available as

http://www.miller.com/semanticweb.rdf

2. Add a link element pointing to this file to the header of your main Web page (or other pages, too):

<html4strict> <html lang="en"> <head>

 <title>Miller Inc. Homepage</title>
 <link rel="meta" type="application/rdf+xml" title="RDF/XML data for Miller Inc."
 href="http://www.miller.com/semanticweb.rdf" />

</head> ... </html4strict>

3. Notify Semantic Web search engines and crawlers of your data

To do so, simply paste the URI

http://www.miller.com/semanticweb.rdf

into the respective fields of the following submission pages:

a) http://pingthesemanticweb.com/
b) http://sindice.com/main/submit
c) http://swoogle.umbc.edu/index.php?option=com_swoogle_service&service=submit

We are working on additional services for making your data known, including submission to Yahoo SearchMonkey and SWSE.


4. Extended Server Configuration

You can improve Web access to your Semantic Web data by fine-tuning your server configuration. At least, you should configure your Web server so that a http request to

   http://www.miller.com/semanticweb

returns either always

  http://www.miller.com/semanticweb.rdf

or does content-negotiation, i.e., it decides depending on the requested media type and serves

  http://www.miller.com/semanticweb.rdf for rdf/xml

and

  http://www.miller.com/semanticweb.htm or another html-document for html/xhtml or other media types.


You can improve Web access to your Semantic Web data by fine-tuning your server configuration. We will provide more information on the GoodRelations Wiki (http://www.ebusiness-unibw.org/wiki/GoodRelations).

In the meantime, we recommend the following document:

Cool URIs for the Semantic Web, W3C Interest Group Note 03 December 2008
http://www.w3.org/TR/cooluris/

References

minidom

GoodRelations

vCard