GeologicUnit_MappingFile.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Geologic Unit 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. <Namespace>
  24. <prefix>xlink</prefix>
  25. <uri>http://www.w3.org/1999/xlink</uri>
  26. </Namespace>
  27. <Namespace>
  28. <prefix>sa</prefix>
  29. <uri>http://www.opengis.net/sampling/1.0</uri>
  30. </Namespace>
  31. <Namespace>
  32. <prefix>om</prefix>
  33. <uri>http://www.opengis.net/om/1.0</uri>
  34. </Namespace>
  35. <Namespace>
  36. <prefix>cv</prefix>
  37. <uri>http://www.opengis.net/cv/0.2.1</uri>
  38. </Namespace>
  39. <Namespace>
  40. <prefix>swe</prefix>
  41. <uri>http://www.opengis.net/swe/1.0.1</uri>
  42. </Namespace>
  43. <Namespace>
  44. <prefix>sml</prefix>
  45. <uri>http://www.opengis.net/sensorML/1.0.1</uri>
  46. </Namespace>
  47. </namespaces>
  48. <includedTypes>
  49. <Include>CGITermValue_MappingFile.xml</Include>
  50. <Include>CompositionPart_MappingFile.xml</Include>
  51. </includedTypes>
  52. <sourceDataStores>
  53. <DataStore>
  54. <id>GeologicUnit</id>
  55. <parameters>
  56. <Parameter>
  57. <name>directory</name>
  58. <!-- path can be relative to this file if starts with "file: -->
  59. <value>file:./</value>
  60. </Parameter>
  61. </parameters>
  62. </DataStore>
  63. </sourceDataStores>
  64. <catalog>mappedPolygons.oasis.xml</catalog>
  65. <targetTypes>
  66. <FeatureType>
  67. <!--
  68. State the needed xsd schemas to be loaded in order to make the
  69. schema-to-FeatureModel parse. Paths are relative to this file, or
  70. may be absolute URL's. Imports and includes at the schemas will be
  71. followed as long as they're relative paths.
  72. -->
  73. <schemaUri>commonSchemas_new/GeoSciML/geologicUnit.xsd</schemaUri>
  74. </FeatureType>
  75. </targetTypes>
  76. <typeMappings>
  77. <FeatureTypeMapping>
  78. <sourceDataStore>GeologicUnit</sourceDataStore>
  79. <sourceType>GeologicUnit</sourceType>
  80. <targetElement>gsml:GeologicUnit</targetElement>
  81. <attributeMappings>
  82. <AttributeMapping>
  83. <targetAttribute>gsml:GeologicUnit</targetAttribute>
  84. </AttributeMapping>
  85. <AttributeMapping>
  86. <targetAttribute>gml:description</targetAttribute>
  87. <sourceExpression>
  88. <OCQL>TEXTDESCRIPTION</OCQL>
  89. </sourceExpression>
  90. </AttributeMapping>
  91. <AttributeMapping>
  92. <targetAttribute>gml:name[1]</targetAttribute>
  93. <sourceExpression>
  94. <OCQL>ABBREVIATION</OCQL>
  95. </sourceExpression>
  96. <ClientProperty>
  97. <name>codeSpace</name>
  98. <value>'urn:cgi:classifierScheme:GSV:GeologicalUnitCode'</value>
  99. </ClientProperty>
  100. </AttributeMapping>
  101. <AttributeMapping>
  102. <targetAttribute>gml:name[2]</targetAttribute>
  103. <sourceExpression>
  104. <OCQL>NAME</OCQL>
  105. </sourceExpression>
  106. <ClientProperty>
  107. <name>codeSpace</name>
  108. <value>'urn:cgi:classifierScheme:GSV:GeologicalUnitName'</value>
  109. </ClientProperty>
  110. </AttributeMapping>
  111. <AttributeMapping>
  112. <targetAttribute>gml:name[3]</targetAttribute>
  113. <sourceExpression>
  114. <OCQL>id</OCQL>
  115. </sourceExpression>
  116. <ClientProperty>
  117. <name>codeSpace</name>
  118. <value>'urn:cgi:classifierScheme:GSV:MappedFeatureReference'</value>
  119. </ClientProperty>
  120. </AttributeMapping>
  121. <!-- Feature chaining for non feature type using FEATURE_LINK -->
  122. <AttributeMapping>
  123. <targetAttribute>gsml:composition</targetAttribute>
  124. <sourceExpression>
  125. <OCQL>id</OCQL>
  126. <linkElement>gsml:CompositionPart</linkElement>
  127. <linkField>FEATURE_LINK</linkField>
  128. </sourceExpression>
  129. <isMultiple>true</isMultiple>
  130. </AttributeMapping>
  131. <!-- Feature chaining of geologic event type -->
  132. <AttributeMapping>
  133. <targetAttribute>gsml:geologicHistory</targetAttribute>
  134. <sourceExpression>
  135. <OCQL>id</OCQL>
  136. <linkElement>gsml:GeologicEvent</linkElement>
  137. <linkField>gml:name</linkField>
  138. </sourceExpression>
  139. <isMultiple>true</isMultiple>
  140. </AttributeMapping>
  141. </attributeMappings>
  142. </FeatureTypeMapping>
  143. </typeMappings>
  144. </as:AppSchemaDataAccess>