CompositionPart_MappingFile.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Composition Part 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. <sourceDataStores>
  49. <DataStore>
  50. <id>CompositionPart</id>
  51. <parameters>
  52. <Parameter>
  53. <name>directory</name>
  54. <!-- path can be relative to this file if starts with "file: -->
  55. <value>file:./</value>
  56. </Parameter>
  57. </parameters>
  58. </DataStore>
  59. </sourceDataStores>
  60. <catalog>mappedPolygons.oasis.xml</catalog>
  61. <targetTypes>
  62. <FeatureType>
  63. <!--
  64. State the needed xsd schemas to be loaded in order to make the
  65. schema-to-FeatureModel parse. Paths are relative to this file, or
  66. may be absolute URL's. Imports and includes at the schemas will be
  67. followed as long as they're relative paths.
  68. -->
  69. <schemaUri>commonSchemas_new/GeoSciML/geosciml.xsd</schemaUri>
  70. </FeatureType>
  71. </targetTypes>
  72. <typeMappings>
  73. <FeatureTypeMapping>
  74. <sourceDataStore>CompositionPart</sourceDataStore>
  75. <sourceType>CompositionPart</sourceType>
  76. <targetElement>gsml:CompositionPart</targetElement>
  77. <attributeMappings>
  78. <AttributeMapping>
  79. <targetAttribute>gsml:CompositionPart</targetAttribute>
  80. </AttributeMapping>
  81. <AttributeMapping>
  82. <targetAttribute>gsml:role</targetAttribute>
  83. <sourceExpression>
  84. <OCQL>COMPONENT_ROLE</OCQL>
  85. </sourceExpression>
  86. <ClientProperty>
  87. <name>codeSpace</name>
  88. <value>'urn:cgi:classifierScheme:GSV:CompositionpartRole'</value>
  89. </ClientProperty>
  90. </AttributeMapping>
  91. <AttributeMapping>
  92. <targetAttribute>gsml:proportion</targetAttribute>
  93. <targetAttributeNode>gsml:CGI_TermValuePropertyType</targetAttributeNode>
  94. </AttributeMapping>
  95. <AttributeMapping>
  96. <targetAttribute>gsml:proportion/gsml:CGI_TermValue/gsml:value</targetAttribute>
  97. <sourceExpression>
  98. <OCQL>PROPORTION</OCQL>
  99. </sourceExpression>
  100. <ClientProperty>
  101. <name>codeSpace</name>
  102. <value>'urn:cgi:classifierScheme:GSV:Proportion'</value>
  103. </ClientProperty>
  104. </AttributeMapping>
  105. <AttributeMapping>
  106. <targetAttribute>FEATURE_LINK</targetAttribute>
  107. <sourceExpression>
  108. <OCQL>GEOLOGIC_UNIT_ID</OCQL>
  109. </sourceExpression>
  110. </AttributeMapping>
  111. </attributeMappings>
  112. </FeatureTypeMapping>
  113. </typeMappings>
  114. </as:AppSchemaDataAccess>