This tutorial will guide you on how to expose an RDF datasource as a data service using the Create New Data Service wizard. To demonstrate this feature, we will use a sample RDF file that is shipped with WSO2 EI by default. Given below are the details of this datasource:
...
Download the product installer from here, and run the installer.
Insert excerpt Installing the Product Installing the Product nopanel true Start the ESB profile:
Panel borderColor #542989 bgColor #ffffff borderWidth 1 Localtabgroup Localtab active true title On MacOS/Linux/CentOS Open a terminal and execute the following command:
Code Block wso2ei-6.46.0-integrator
Localtab title On Windows Go to Start Menu -> Programs -> WSO2 -> Enterprise Integrator 6.46.0 Integrator. This will open a terminal and start the ESB profile. - Log in to the product's management console.
- Click Data Service → Create, to start creating a data service.
Enter the following name for the data service.
Data Service Name RDFDataService - Click Next to enter the datasource connection details.
...
Now, let's create REST resources to invoke the query created above. Alternatively, you can create SOAP operations to invoke the queries. See the previous section for instructions.
Click Add New Resource and enter the following information.
Resource Path Movies/{genre} Resource Method GET Query ID GetMoviesbyGenre - Save the resource.
...