This documentation is for WSO2 Enterprise Integrator version 6.1.1 . View documentation for the latest release in the 6.x.x family and the latest release in the 7.x.x family.

All docs This doc
Skip to end of metadata
Go to start of metadata

Note that WSO2 EI is shipped with the following changes to what is mentioned in this documentation:

  • <PRODUCT_HOME>/repository/samples/ directory that includes all Data Integration samples is changed to <EI_HOME>/samples/data-services/.
  • <PRODUCT_HOME>/repository/samples/resources/ directory that includes all artifacts related to the Data Integration samples is changed to <EI_HOME>/samples/data-services/resources/.

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 EI.

About the sample

This sample uses an excel sheet as the datasource. The Products.xls file, stored in the <EI_HOME>/samples/data-services/resources/ folder is used to get the data. This datasource contains details of the products manufactured by 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.

See Data Services and Resources for details.

Building the sample

The sample named RDFExposeAsRDFSample is shipped with WSO2 EI, by default. This .dbs file is stored in the <EI_HOME>/samples/data-services/dbs/rdf/ directory. Follow the steps given below.

  1. Follow the instructions in Uploading a Created Data to deploy the sample file  (RDFExposeAsRDFSample.dbs) in the ESB of WSO2 EI.
  2. Click Services → List on the navigator. The sample should be listed on the services' dashboard.

Running the sample

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 <EI_HOME>/samples/data-services/resources/Products.xls file) in RDF format.

curl -X GET http://localhost:9763/services/RDFExposeAsRDFSample/vehicles

  • No labels