GeologicEvent_MappingFile.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Geologic Event mapping file
  4. -->
  5. <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
  6. xmlns:ogc="http://www.opengis.net/ogc" xmlns:xs="http://www.w3.org/2001/XMLSchema"
  7. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  8. xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd
  9. http://www.opengis.net/ogc http://schemas.opengis.net/filter/1.1.0/expr.xsd">
  10. <namespaces>
  11. <!--
  12. declare here the namespaces and prefixes used by the parser to
  13. resolve <type> elements.
  14. -->
  15. <Namespace>
  16. <prefix>gsml</prefix>
  17. <uri>http://www.cgi-iugs.org/xml/GeoSciML/2</uri>
  18. </Namespace>
  19. <Namespace>
  20. <prefix>gml</prefix>
  21. <uri>http://www.opengis.net/gml</uri>
  22. </Namespace>
  23. </namespaces>
  24. <sourceDataStores>
  25. <DataStore>
  26. <id>GeologicEvent</id>
  27. <parameters>
  28. <Parameter>
  29. <name>directory</name>
  30. <!-- path can be relative to this file if starts with "file: -->
  31. <value>file:./</value>
  32. </Parameter>
  33. </parameters>
  34. </DataStore>
  35. </sourceDataStores>
  36. <catalog>mappedPolygons.oasis.xml</catalog>
  37. <targetTypes>
  38. <FeatureType>
  39. <!--
  40. State the needed xsd schemas to be loaded in order to make the
  41. schema-to-FeatureModel parse. Paths are relative to this file, or
  42. may be absolute URL's. Imports and includes at the schemas will be
  43. followed as long as they're relative paths.
  44. -->
  45. <schemaUri>commonSchemas_new/GeoSciML/geosciml.xsd</schemaUri>
  46. </FeatureType>
  47. </targetTypes>
  48. <typeMappings>
  49. <FeatureTypeMapping>
  50. <sourceDataStore>GeologicEvent</sourceDataStore>
  51. <sourceType>GeologicEvent</sourceType>
  52. <targetElement>gsml:GeologicEvent</targetElement>
  53. <attributeMappings>
  54. <AttributeMapping>
  55. <targetAttribute>gsml:GeologicEvent</targetAttribute>
  56. </AttributeMapping>
  57. <AttributeMapping>
  58. <!-- This is referred by Geologic Unit as Geologic History -->
  59. <targetAttribute>gml:name</targetAttribute>
  60. <sourceExpression>
  61. <OCQL>GEOLOGIC_UNIT_ID</OCQL>
  62. </sourceExpression>
  63. <ClientProperty>
  64. <name>codeSpace</name>
  65. <value>'urn:cgi:classifierScheme:GSV:GeologicalUnitId'</value>
  66. </ClientProperty>
  67. </AttributeMapping>
  68. <!-- Event age is a single property, therefore no feature chaining is required -->
  69. <AttributeMapping>
  70. <targetAttribute>gsml:eventAge</targetAttribute>
  71. <targetAttributeNode>gsml:CGI_TermRangePropertyType</targetAttributeNode>
  72. </AttributeMapping>
  73. <AttributeMapping>
  74. <targetAttribute>gsml:eventAge/gsml:CGI_TermRange/gsml:lower/gsml:CGI_TermValue/gsml:value</targetAttribute>
  75. <sourceExpression>
  76. <OCQL>ghminage</OCQL>
  77. </sourceExpression>
  78. <ClientProperty>
  79. <name>codeSpace</name>
  80. <value>ghage_cdspace</value>
  81. </ClientProperty>
  82. </AttributeMapping>
  83. <AttributeMapping>
  84. <targetAttribute>gsml:eventAge/gsml:CGI_TermRange/gsml:upper/gsml:CGI_TermValue/gsml:value</targetAttribute>
  85. <sourceExpression>
  86. <OCQL>ghmaxage</OCQL>
  87. </sourceExpression>
  88. <ClientProperty>
  89. <name>codeSpace</name>
  90. <value>ghage_cdspace</value>
  91. </ClientProperty>
  92. </AttributeMapping>
  93. <!-- Feature chaining: event environment is a multi-valued property -->
  94. <AttributeMapping>
  95. <targetAttribute>gsml:eventEnvironment</targetAttribute>
  96. <sourceExpression>
  97. <OCQL>id</OCQL>
  98. <linkElement>gsml:CGI_TermValue</linkElement>
  99. <linkField>FEATURE_LINK[1]</linkField>
  100. </sourceExpression>
  101. <isMultiple>true</isMultiple>
  102. </AttributeMapping>
  103. <!-- Feature chaining: event process is a multi-valued property -->
  104. <AttributeMapping>
  105. <targetAttribute>gsml:eventProcess</targetAttribute>
  106. <sourceExpression>
  107. <OCQL>id</OCQL>
  108. <linkElement>gsml:CGI_TermValue</linkElement>
  109. <linkField>FEATURE_LINK[2]</linkField>
  110. </sourceExpression>
  111. <isMultiple>true</isMultiple>
  112. </AttributeMapping>
  113. </attributeMappings>
  114. </FeatureTypeMapping>
  115. </typeMappings>
  116. </as:AppSchemaDataAccess>