<?xml version='1.0' encoding='UTF-8'?>
<ftss:DocDef xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:ftss='http://xmlns.4suite.org/reserved'>
  <!-- A mapping to cover all of our generated documents -->
  <ftss:BaseNames/>
  <ftss:NsMappings>
    <ftss:NsMapping>
      <ftss:Prefix>f</ftss:Prefix>
      <ftss:Uri>http://xmlns.4suite.org/ext</ftss:Uri>
    </ftss:NsMapping>
  </ftss:NsMappings>

  <ftss:RdfMappings>
    <!-- Module API document -->
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/title'</ftss:Predicate>
      <ftss:Object>f:if(/package|/module,concat("API Document for ",name(/package|/module)," ",/*/@name))</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/description'</ftss:Predicate>
      <ftss:Object>/package/description</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/description'</ftss:Predicate>
      <ftss:Object>/module/description</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/package/classes/class/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/module/classes/class/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/*/classes/class/methods/method[not(starts-with(@name,"__"))]/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/package/classes/class/methods/method[not(starts-with(@name,"__"))]/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/module/classes/class/others/other[not(starts-with(@name,"__"))]/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/package/others/other[not(starts-with(@name,"__"))]/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/module/others/other[not(starts-with(@name,"__"))]/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/package/functions/function/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/module/functions/function/@name</ftss:Object>
    </ftss:RdfMapping>

   <!-- Command line docs -->
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/title'</ftss:Predicate>
      <ftss:Object>f:if(/application,concat("Command Line Application Document for ",/application/@name))</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/description'</ftss:Predicate>
      <ftss:Object>/application[not(verbose-description)]/description</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/description'</ftss:Predicate>
      <ftss:Object>/application/verbose-description</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/application/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/application//subcommands/command/@name</ftss:Object>
    </ftss:RdfMapping>

    <!-- extension docs -->
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/title'</ftss:Predicate>
      <ftss:Object>f:if(/ext-module,concat("Extension Module Document for ",/ext-module/@name))</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/description'</ftss:Predicate>
      <ftss:Object>/ext-module/description</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/ext-module/namespaces/namespace/@prefix</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/ext-module/functions/function/@name</ftss:Object>
    </ftss:RdfMapping>
    <ftss:RdfMapping>
      <ftss:Subject>$uri</ftss:Subject>
      <ftss:Predicate>'http://purl.org/dc/elements/1.1/subject'</ftss:Predicate>
      <ftss:Object>/ext-module/elements/element/@name</ftss:Object>
    </ftss:RdfMapping>

  </ftss:RdfMappings>
</ftss:DocDef>