Unknown macro: {next_previous_links}
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

This sample demonstrates how to expose data in RDF format through a data service.

About the sample

This sample uses an excel sheet as the datasource. The Products.xls file, stored in the <DSS_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/motorocyles. 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.

See Data Services and Resources for details.

Building the sample

The sample data service ExposeAsRDFSample should be deployed using the instructions in Samples Setup.

Running the sample

The service can be invoked in REST-style via curl (http://curl.haxx.se). The following command can be executed in command line to retrieve the product info in RDF format

curl -X GET http://localhost:9763/services/samples/ExposeAsRDFSample/vehicles

 

 

 

 

 

 

  • No labels