How to Write a File Data Resource Configuration Document

To write a data resource configuration document to expose a file-based data resource:

  1. Copy the following XML document:
    <?xml version="1.0" encoding="UTF-8"?>
    <dataResourceConfig
      xmlns="http://ogsadai.org.uk/namespaces/2005/03/config">
      <documentation>
        MY-COMMENTS
      </documentation>
      <roleMap name="Name"
        implementation="uk.org.ogsadai.common.rolemap.SimpleFileRoleMapper"
        configuration="ROLE-MAP-FILE"/>
      <dataResource
        implementation="uk.org.ogsadai.dataresource.conx.FileSystemConnectionManager">
        <driver implementation="">
          <uri>DIRECTORY</uri>
        </driver>
      </dataResource>
    </dataResourceConfig>
    
  2. Optionally, replace MY-COMMENTS with some suitable text describing your data resource, or just remove it.
  3. Replace ROLE-MAP-FILE with the relative or absolute location of a role map file consistent with the OGSA-DAI role map document format (which is described later in this guide). Relative pathnames will be resolved against the home directory of the web application of a Web services hosting container, for example CONTAINER/webapps/ogsa.
  4. Replace DIRECTORY with the root of the directory containing the file system to be exposed. For example: