Chapter 73. Example SPARQL EPR query client

73.1. How to run a query over a RDF data resource. The resource points to a SPARQL endpoint.

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:

73.1. How to run a query over a RDF data resource. The resource points to a SPARQL endpoint.

Run the following, replacing SERVICES-BASE-URL, DATA-RESOURCE-ID, QUERY and, if required DRER-ID.

$ java uk.org.ogsadai.client.toolkit.example.RDFEPRClient \
  -u SERVICES-BASE-URL [-e DRER-ID] -d DATA-RESOURCE-ID  \ 
  -q QUERY

For example: