Data Resource Configuration

Data resource configuration involves specifying information about a data resource including its location, its metadata and its driver classes. Configuration is done using a data resource configuration document.

Data resource configuration documents are written by OGSA-DAI service deployers.

A data resource configuration document includes information on the following:

For the remainder of this page we give an overview of the general format of data resource configuration documents. In the following pages we give examples of how they are used to expose different types of data resource.

Example

<?xml version="1.0" encoding="UTF-8"?>
<dataResourceConfig
  xmlns="http://ogsadai.org.uk/namespaces/2005/03/config">
  <documentation>
    This is an example data resource configuration document for a
    MySQL relational data resource.
  </documentation>
  <!-- Metadata about the data resource -->
  <metaData>
    <!-- This element and its contents are optional. -->
    <productInfo>
      <productName>MySQL</productName>
      <productVersion>4</productVersion>
      <vendorName>MySQL</vendorName>
    </productInfo>
    <relationalMetaData>
      <databaseSchema callback="uk.org.ogsadai.dataresource.SimpleJDBCMetaDataExtractor"/>
    </relationalMetaData>
    <!-- Custom metadata -->
    <keywordlist>
      <keyword> frogs <keyword>
      <keyword> genome <keyword>
    </keywordlist>
  </metaData>
  <!-- Data resource authorisation information - Role Map -->
  <roleMap name="Name"
    implementation="uk.org.ogsadai.common.rolemap.SimpleFileRoleMapper"
    configuration="SomeDataResource/DatabaseRoles.xml"/>
  <!-- Manager of the connection to the DBMS -->
  <dataResource
    implementation="uk.org.ogsadai.dataresource.conx.SimpleJDBCConnectionManager">
    <driver implementation="org.gjt.mm.mysql.Driver">
      <uri>jdbc:mysql://localhost:3306/ogsadai</uri>
    </driver>
  </dataResource>
</dataResourceConfig>

Specification

Element dataResourceConfig:

XML Schema

OGSA-DAI/schema/ogsadai/xsd/data_resource_config.xsd