Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

A data service can expose data in RDF format by setting RDF as the output mapping type. This sample demonstrates how data is exposed in RDF format using a data service deployed in WSO2 DSSEI.

About the sample

This sample uses an excel sheet as the datasource. The Products.xls file, stored in the <DSS<EI_HOME>/samples/resources/ folder is used to get the data. This datasource contains details of the products manufactured in an automobile company. Products refer to cars/motorcyles. The data table has the following columns: "ID", "Name", "Classification" and "Price". The sample data service used in this demonstration (ExposeAsRDFSample.dbs) contains a REST resource which lists down all the products that are manufactured in the company.

...

The sample data service named ExposeAsRDFSample should be deployed in the DSS EI instance using the instructions in Samples Setup.

...

The service can be invoked in REST-style via curl (http://curl.haxx.se). The following command can be executed in the command line to retrieve the product info (stored in the <DSS<EI_HOME>/samples/resources/Products.xls file) in RDF format.

...