CGITermValue_MappingFile.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- CGI TermValue mapping file -->
  3. <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
  4. xmlns:ogc="http://www.opengis.net/ogc" xmlns:xs="http://www.w3.org/2001/XMLSchema"
  5. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6. xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd
  7. http://www.opengis.net/ogc http://schemas.opengis.net/filter/1.1.0/expr.xsd">
  8. <namespaces>
  9. <!--
  10. declare here the namespaces and prefixes used by the parser to
  11. resolve <type> elements.
  12. -->
  13. <Namespace>
  14. <prefix>gsml</prefix>
  15. <uri>http://www.cgi-iugs.org/xml/GeoSciML/2</uri>
  16. </Namespace>
  17. <Namespace>
  18. <prefix>gml</prefix>
  19. <uri>http://www.opengis.net/gml</uri>
  20. </Namespace>
  21. </namespaces>
  22. <sourceDataStores>
  23. <DataStore>
  24. <id>CGITermValue</id>
  25. <parameters>
  26. <Parameter>
  27. <name>directory</name>
  28. <!-- path can be relative to this file if starts with "file: -->
  29. <value>file:./</value>
  30. </Parameter>
  31. </parameters>
  32. </DataStore>
  33. </sourceDataStores>
  34. <catalog>mappedPolygons.oasis.xml</catalog>
  35. <targetTypes>
  36. <FeatureType>
  37. <!--
  38. State the needed xsd schemas to be loaded in order to make the
  39. schema-to-FeatureModel parse. Paths are relative to this file, or
  40. may be absolute URL's. Imports and includes at the schemas will be
  41. followed as long as they're relative paths.
  42. -->
  43. <schemaUri>commonSchemas_new/GeoSciML/CGI_Value.xsd</schemaUri>
  44. </FeatureType>
  45. </targetTypes>
  46. <typeMappings>
  47. <FeatureTypeMapping>
  48. <sourceDataStore>CGITermValue</sourceDataStore>
  49. <sourceType>CGITermValue</sourceType>
  50. <targetElement>gsml:CGI_TermValue</targetElement>
  51. <AttributeMapping>
  52. <targetAttribute>gsml:value</targetAttribute>
  53. <sourceExpression>
  54. <OCQL>VALUE</OCQL>
  55. </sourceExpression>
  56. </AttributeMapping>
  57. <AttributeMapping>
  58. <!-- FEATURE_LINK[1] is referred by geologic event as environment -->
  59. <targetAttribute>FEATURE_LINK[1]</targetAttribute>
  60. <sourceExpression>
  61. <OCQL>ENVIRONMENT_OWNER</OCQL>
  62. </sourceExpression>
  63. </AttributeMapping>
  64. <AttributeMapping>
  65. <!-- FEATURE_LINK[2] is referred by geologic event as process -->
  66. <targetAttribute>FEATURE_LINK[2]</targetAttribute>
  67. <sourceExpression>
  68. <OCQL>PROCESS_OWNER</OCQL>
  69. </sourceExpression>
  70. </AttributeMapping>
  71. </FeatureTypeMapping>
  72. </typeMappings>
  73. </as:AppSchemaDataAccess>