OGSA-DAI provides a simple command-line client for running requests involving the RDF activities. This uses the RDF activity SPARQL EPR query. The client consists of a single workflow which queries a SPARQL endpoint. It is assumed that a RDF resource has already been deployed onto OGSA-DAI.
The client takes the following arguments:
-u SERVICES_BASE_URL- services base URL - this specifies the location of the OGSA-DAI server. This will typically be of form: where
HOSTis the host on which the OGSA-DAI is running and
PORTis the port on which the container accepts connections.
-e DRER-ID- a data request execution resource (DRER) ID. This is the ID of the DRER that will execute the request. Usually this can be omitted (the default in this case is
-d DATA-RESOURCE-ID- a data resource ID. The ID of the data resource that the client will interact with.
-q QUERY- the SPARQL query to run.
Run the following,
QUERY and, if required
$ java uk.org.ogsadai.client.toolkit.example.RDFEPRClient \ -u SERVICES-BASE-URL [-e DRER-ID] -d DATA-RESOURCE-ID \ -q QUERY