This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
RDF Sample
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/
.
RDF is a flexible and extensible way to represent information about web resources. Â This sample demonstrates the usage of an RDF file as a data source for data services in WSO2 EI.
About the sample
The RDF file (Movies.rdf
), stored in the <EI_HOME>/samples/data-services/resources/
 folder contains data about some popular movies. Each movie data has the following sub elements: "title", "director", "year", "genre" and "actor". The sample data service used in this demonstration (RDFSampleService.dbs)
 contains two operations named getAllMovieData and getMoviesByGenre. Â
See Data Services and Resources for a definition of data services and operations.
Building the sample
The sample data service namedÂ
should be deployed using the instructions in Samples Setup.RDFSampleService
Executing the sample
The sample service can be run using the TryIt tool, which is bundled with the WSO2 EI, or a code-generated java client sample as discussed in the Data Services Clients section.Â
Follow the steps below to demonstrate this functionality using the TryIt tool:
- Log in to the management console of your server and click List under Services in the navigator. TheÂ
RDFSampleService
will be listed here. - Click Try this service to open the TryIt tool.
- Select the "getAllMovieData" operation and click Send to execute the request. You will get details on all movies in the response as shown below.
- Select the "getMoviesByGenre" operation to retrieve movie information based on the genre provided in the request.