gsml_GeologicUnit.xml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
  4. <namespaces>
  5. <Namespace>
  6. <prefix>gml</prefix>
  7. <uri>http://www.opengis.net/gml</uri>
  8. </Namespace>
  9. <Namespace>
  10. <prefix>gsml</prefix>
  11. <uri>urn:cgi:xmlns:CGI:GeoSciML:2.0</uri>
  12. </Namespace>
  13. </namespaces>
  14. <sourceDataStores>
  15. <DataStore>
  16. <id>datastore</id>
  17. <parameters>
  18. <Parameter>
  19. <name>directory</name>
  20. <value>file:./</value>
  21. </Parameter>
  22. </parameters>
  23. </DataStore>
  24. </sourceDataStores>
  25. <targetTypes>
  26. <FeatureType>
  27. <schemaUri>http://www.geosciml.org/geosciml/2.0/xsd/geosciml.xsd</schemaUri>
  28. </FeatureType>
  29. </targetTypes>
  30. <typeMappings>
  31. <FeatureTypeMapping>
  32. <sourceDataStore>datastore</sourceDataStore>
  33. <sourceType>gsml_GeologicUnit</sourceType>
  34. <targetElement>gsml:GeologicUnit</targetElement>
  35. <attributeMappings>
  36. <AttributeMapping>
  37. <targetAttribute>
  38. gsml:GeologicUnit
  39. </targetAttribute>
  40. <idExpression>
  41. <OCQL>ID</OCQL>
  42. </idExpression>
  43. </AttributeMapping>
  44. <AttributeMapping>
  45. <targetAttribute>
  46. gml:description
  47. </targetAttribute>
  48. <sourceExpression>
  49. <OCQL>DESCRIPTION</OCQL>
  50. </sourceExpression>
  51. </AttributeMapping>
  52. <AttributeMapping>
  53. <targetAttribute>
  54. gml:name[1]
  55. </targetAttribute>
  56. <sourceExpression>
  57. <OCQL>NAME</OCQL>
  58. </sourceExpression>
  59. <ClientProperty>
  60. <name>codeSpace</name>
  61. <value>'urn:x-test:classifierScheme:TestAuthority:GeologicUnitName'</value>
  62. </ClientProperty>
  63. </AttributeMapping>
  64. <AttributeMapping>
  65. <targetAttribute>
  66. gml:name[2]
  67. </targetAttribute>
  68. <sourceExpression>
  69. <OCQL>CODE</OCQL>
  70. </sourceExpression>
  71. <ClientProperty>
  72. <name>codeSpace</name>
  73. <value>'urn:x-test:classifierScheme:TestAuthority:GeologicUnitCode'</value>
  74. </ClientProperty>
  75. </AttributeMapping>
  76. <AttributeMapping>
  77. <targetAttribute>
  78. gml:name[3]
  79. </targetAttribute>
  80. <sourceExpression>
  81. <OCQL>URN</OCQL>
  82. </sourceExpression>
  83. <ClientProperty>
  84. <name>codeSpace</name>
  85. <value>'urn:x-test:classifierScheme:TestAuthority:GeologicUnitId'</value>
  86. </ClientProperty>
  87. </AttributeMapping>
  88. <AttributeMapping>
  89. <targetAttribute>
  90. gsml:occurrence
  91. </targetAttribute>
  92. <sourceExpression>
  93. <OCQL>URN</OCQL>
  94. <linkElement>gsml:MappedFeature</linkElement>
  95. <linkField>gml:name[2]</linkField>
  96. </sourceExpression>
  97. <isMultiple>true</isMultiple>
  98. </AttributeMapping>
  99. </attributeMappings>
  100. </FeatureTypeMapping>
  101. </typeMappings>
  102. </as:AppSchemaDataAccess>