OGSA-DQP factory configuration documents specify information required by a DQP coordinator. This includes the locations of evaluators, OGSA-DAI servers and data resources as well as other coordinator configuration information.
The DQP factory configuration document specifies:
The DQP factory configuration document is an XML document. It has the XML schema: DQPConfiguration.xsd.
The XML schema allows the following information to be provided. Each
of these are provided as child elements of the
<DQPConfiguration> element:
<DQPEvaluatorList>
element. These are standard OGSA-DAI server URLs:
http://HOST:PORT/dai/services
e.g.
http://myhost:8080/dai/services
http://HOST:PORT/wsrf/services/dai
e.g.
http://myhost:8080/wsrf/services/dai
<DataResourceList> element.
<DQPMachineList> element.
<UserDefinedFunctionList> element.
A simple example DQP factory configuration document is as follows:
<DQPConfiguration xmlns="http://uk.org.ogsadai/dqp/configuration">
<DQPEvaluatorList>
<EvaluatorURI>http://rpc122.cs.man.ac.uk:8081/dqp-evaluator/services/QueryEvaluationService</EvaluatorURI>
</DQPEvaluatorList>
<DataResourceList>
<ImportedDataSource>
<URI>http://rpc122.cs.man.ac.uk:8080/wsrf/services/dai</URI>
<ResourceID>goterms</ResourceID>
</ImportedDataSource>
<ImportedDataSource>
<URI>http://rimside.ncl.ac.uk:8080/wsrf/services/dai</URI>
<ResourceID>gims</ResourceID>
</ImportedDataSource>
</DataResourceList>
</DQPConfiguration>
This example specifies one evaluator and two OGSA-DAI relational data resources exposed by two different OGSA-DAI servers.
A more complex example DQP factory configuration document is as follows:
<DQPConfiguration xmlns="http://uk.org.ogsadai/dqp/configuration">
<DQPEvaluatorList>
<EvaluatorURI>http://rpc122.cs.man.ac.uk:8081/dqp-evaluator/services/QueryEvaluationService</EvaluatorURI>
<EvaluatorURI>http://rimside.ncl.ac.uk:8081/dqp-evaluator/services/QueryEvaluationService</EvaluatorURI>
</DQPEvaluatorList>
<DataResourceList>
<ImportedDataSource>
<URI>http://rpc122.cs.man.ac.uk:8080/wsrf/services/dai</URI>
<ResourceID>goterms</ResourceID>
</ImportedDataSource>
<ImportedDataSource>
<URI>http://rimside.ncl.ac.uk:8080/wsrf/services/dai</URI>
<ResourceID>gims</ResourceID>
</ImportedDataSource>
<ImportedService name="Entropy" wsdlURL="http://pc01.ast.ac.uk:8080/services/EntropyAnalyserService?wsdl"/>
</DataResourceList>
</DQPConfiguration>
This example specifies two evaluators, two OGSA-DAI relational data resources exposed by two different OGSA-DAI servers and an analysis service.
When writing a DQP factory configuration document take care to ensure that:
A coordinator can be configured to use DQP factory configuration documents when the DQP coordinator is deployed. This allows the coordinator to have access to a default configuration if the client does not provide one. This is termed factory configuration.
Alternatively, the DQP coordinator can be configured with an empty DQP factory configuration document in which case the client has to provide one. This is termed client configuration.
Or, a mix of both approaches can be used.
Consider the following DQP factory configuration file which an OGSA-DQP deployer may have used to provide the default configuration for their coordinator:
<DQPConfiguration xmlns="http://uk.org.ogsadai/dqp/configuration">
<DQPEvaluatorList>
<EvaluatorURI>http://rpc122.cs.man.ac.uk:8081/dqp-evaluator/services/QueryEvaluationService</EvaluatorURI>
<EvaluatorURI>http://rimside.ncl.ac.uk:8081/dqp-evaluator/services/QueryEvaluationService</EvaluatorURI>
</DQPEvaluatorList>
<DataResourceList>
<ImportedDataSource>
<URI>http://rpc122.cs.man.ac.uk:8080/wsrf/services/dai</URI>
<ResourceID>goterms</ResourceID>
</ImportedDataSource>
<ImportedDataSource>
<URI>http://rimside.ncl.ac.uk:8080/wsrf/services/dai</URI>
<ResourceID>gims</ResourceID>
</ImportedDataSource>
<ImportedService name="Entropy" wsdlURL="http://pc01.ast.ac.uk:8080/services/EntropyAnalyserService?wsdl"/>
</DataResourceList>
</DQPConfiguration>
The client can add another evaluator by submitting the document:
<DQPConfiguration xmlns="http://uk.org.ogsadai/dqp/configuration">
<DQPEvaluatorList>
<EvaluatorURI>http://rpc122.cs.man.ac.uk:8081/dqp-evaluator/services/QueryEvaluationService</EvaluatorURI>
<EvaluatorURI>http://rimside.ncl.ac.uk:8081/dqp-evaluator/services/QueryEvaluationService</EvaluatorURI>
<EvaluatorURI>http://rpc111.cs.man.ac.uk:8081/dqp-evaluator/services/QueryEvaluationService</EvaluatorURI>
</DQPEvaluatorList>
</DQPConfiguration>
Note that the client has to provide all three - there is no "smart" combination of the evaluator information in the default configuration and that provided by the client, as we now explain...
If the client provides a document that specifies a list of evaluators then this is used instead of those in the coordinator's default configuration document.
If the client provides a document that specifies a list of OGSA-DAI services and data resources then this is used instead of those in the coordinator's default configuration document.
A client can provide a document that specifies both evaluators and OGSA-DAI services and data resources, or just evaluators, or just OGSA-DAI services and data resources.
However, it must be ensured that
If these conditions are not met then the creation of a new DQP resource by the DQP factory will fail.
| Previous: Deploy the OGSA-DQP coordinator | Next: Configure the OGSA-DQP coordinator |