JorgeDeJesus

Untitled

Nov 6th, 2015
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 13.29 KB | None | 0 0
  1. <!--
  2. java.lang.RuntimeException: Error applying mapping with targetAttribute soil:soComposition/soil:SO_Component/soil:soOrganicCarbon
  3. Error applying mapping with targetAttribute soil:soComposition/soil:SO_Component/soil:soOrganicCarbon
  4. Error applying mapping with targetAttribute om:result/soil:SO_MeasureRange
  5. soil:SO_MeasureRange is not a valid location path for type http://www.w3.org/2001/XMLSchema:anyType. soil:SO_MeasureRange ns: http://www.opengis.net/soil-data-ie/0.1, anyType properties:
  6.  
  7. -->
  8. <?xml version="1.0" encoding="UTF-8"?>
  9. <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
  10. <namespaces>
  11.         <Namespace><prefix>gml</prefix><uri>http://www.opengis.net/gml/3.2</uri></Namespace>
  12.         <Namespace><prefix>om</prefix><uri>http://www.opengis.net/om/2.0</uri></Namespace>
  13.         <Namespace><prefix>sam</prefix><uri>http://www.opengis.net/sampling/2.0</uri></Namespace>
  14.         <Namespace><prefix>sams</prefix><uri>http://www.opengis.net/samplingSpatial/2.0</uri></Namespace>
  15.         <Namespace><prefix>xlink</prefix><uri>http://www.w3.org/1999/xlink</uri></Namespace>
  16.         <Namespace><prefix>xsi</prefix><uri>http://www.w3.org/2001/XMLSchema-instance</uri></Namespace>
  17.         <Namespace><prefix>soil</prefix><uri>http://www.opengis.net/soil-data-ie/0.1</uri></Namespace>
  18. </namespaces>
  19. <sourceDataStores>
  20. <DataStore>
  21. <id>datastore</id>
  22.   <parameters>
  23.     <Parameter><name>dbtype</name><value>postgisng</value></Parameter>
  24.    <!-- REMOVED -->
  25.     <Parameter><name>Expose primary keys</name><value>true</value></Parameter>
  26.   </parameters>
  27. </DataStore>
  28. </sourceDataStores>
  29. <targetTypes>
  30.     <FeatureType>
  31.        <schemaUri>http://schemas.opengis.net/samplingSpatial/2.0/spatialSamplingFeature.xsd</schemaUri>
  32.        <schemaUri>http://schemas.opengis.net/om/2.0/observation.xsd</schemaUri>
  33.        <schemaUri>http://schemas.opengis.net/sampling/2.0/samplingFeature.xsd</schemaUri>
  34.        <schemaUri>http://lab.scinfo.org.nz/static/schema/soil-data-ie/0.1/soil-data-ie.xsd</schemaUri>
  35.     </FeatureType>
  36. </targetTypes>
  37. <typeMappings>
  38.    <FeatureTypeMapping>
  39.     <sourceDataStore>datastore</sourceDataStore>
  40.      <sourceType>profile_layer2</sourceType>
  41.     <targetElement>soil:SO_Horizon</targetElement>
  42.     <attributeMappings>
  43.      
  44.        <AttributeMapping>
  45.         <targetAttribute>soil:SO_Horizon</targetAttribute>
  46.          <idExpression><OCQL>strConCat('soil.so_horizon.' ,profile_layer_id)</OCQL></idExpression>
  47.       </AttributeMapping>
  48.        <AttributeMapping>
  49.              <targetAttribute>gml:identifier</targetAttribute>
  50.              <sourceExpression>
  51.              <OCQL>strConCat('http://lab.scinfo.org.nz/soil-data-ie/id/isric/soil/so_soilprofile/',profile_layer_id)</OCQL>
  52.              </sourceExpression>
  53.              <ClientProperty>
  54.              <name>codeSpace</name>
  55.              <value>'http://www.landcareresearch.co.nz'</value>
  56.              </ClientProperty>
  57.            </AttributeMapping>
  58.  
  59. <!--    <soil:soDepth><soil:SO_MeasureRange><soil:soMinimumValue uom="cm">53</soil:soMinimumValue><soil:soMaximumValue uom="cm">74</soil:soMaximumValue></soil:SO_MeasureRange></soil:soDepth>-->
  60.         <AttributeMapping>
  61.          <targetAttribute>soil:soDepth/soil:SO_MeasureRange/soil:soMinimumValue</targetAttribute>
  62.          <sourceExpression><OCQL>upper_depth</OCQL></sourceExpression>
  63.         <ClientProperty><name>uom</name><value>'cm'</value></ClientProperty>
  64.         </AttributeMapping>
  65.         <AttributeMapping>
  66.         <!-- <soil:soMaximumValue uom="cm">74</soil:soMaximumValue> -->
  67.                  <targetAttribute>soil:soDepth/soil:SO_MeasureRange/soil:soMaximumValue</targetAttribute>
  68.                  <sourceExpression><OCQL>lower_depth</OCQL></sourceExpression>
  69.                 <ClientProperty><name>uom</name><value>'cm'</value></ClientProperty>
  70.         </AttributeMapping>
  71.        
  72.         <AttributeMapping>
  73.         <encodeIfEmpty>true</encodeIfEmpty>
  74.         <!--<soil:soParticleSizeFraction xlink:title="whole soil" xlink:href="http://lab.scinfo.org.nz/soil-data-ie/def/voc/particle-size-fraction/whole-soil"/> -->
  75.        <targetAttribute>soil:soComposition/soil:SO_Component/soil:soParticleSizeFraction</targetAttribute>
  76.             <ClientProperty><name>xlink:href</name><value>'http://lab.scinfo.org.nz/soil-data-ie/def/voc/particle-size-fraction/fine-earth'</value></ClientProperty>
  77.             <ClientProperty><name>xlink:title</name><value>'fine earth'</value></ClientProperty>
  78.     </AttributeMapping>
  79.  
  80.           <AttributeMapping>
  81.             <encodeIfEmpty>true</encodeIfEmpty>  
  82.            <targetAttribute>soil:soComposition/soil:SO_Component/soil:soTexture</targetAttribute>
  83.             <ClientProperty><name>xlink:href</name><value>'http://lab.scinfo.org.nz/soil-data-ie/def/voc/texture'</value></ClientProperty>
  84.             <ClientProperty><name>xlink:title</name><value>'unknown'</value></ClientProperty>
  85.         </AttributeMapping>
  86.  
  87.  
  88.         <AttributeMapping>
  89.             <encodeIfEmpty>true</encodeIfEmpty>
  90.            <targetAttribute>soil:soComposition/soil:SO_Component/soil:soParticleSizeDistribution</targetAttribute>
  91.             <sourceExpression>
  92.         <OCQL>profile_layer_id</OCQL>
  93.         <linkElement>_soil_so_particlesizevalue</linkElement>
  94.         <linkField>FEATURE_LINK</linkField>
  95.         </sourceExpression>
  96.         </AttributeMapping>
  97.  
  98.         <AttributeMapping>
  99.             <encodeIfEmpty>true</encodeIfEmpty>
  100.            <targetAttribute>soil:soComposition/soil:SO_Component/soil:soEffectiveCationExchangeCapacity</targetAttribute>
  101.            <ClientProperty><name>xlink:title</name><value>'missing'</value></ClientProperty>
  102.            <ClientProperty><name>xlink:href</name><value>'xlink:href="http://www.opengis.net/def/nil/OGC/0/missing'</value></ClientProperty>
  103.         </AttributeMapping>
  104.  
  105.        <!--soil:soElectricalConductivity -->
  106.           <AttributeMapping>
  107.             <encodeIfEmpty>true</encodeIfEmpty>
  108.            <targetAttribute>soil:soComposition/soil:SO_Component/soil:soElectricalConductivity</targetAttribute>
  109.            <ClientProperty><name>xlink:title</name><value>'missing'</value></ClientProperty>
  110.            <ClientProperty><name>xlink:href</name><value>'xlink:href="http://www.opengis.net/def/nil/OGC/0/missing'</value></ClientProperty>
  111.         </AttributeMapping>
  112.  
  113. <!-- <soil:soOrganicCarbon> -->
  114.          
  115.         <AttributeMapping>
  116.     <encodeIfEmpty>true</encodeIfEmpty>
  117.  
  118.           <targetAttribute>soil:soComposition/soil:SO_Component/soil:soOrganicCarbon</targetAttribute>
  119.              <sourceExpression>
  120.                 <OCQL>profile_layer_id</OCQL>
  121.                 <linkElement>_soil_so_organiccarbon</linkElement>
  122.                 <linkField>FEATURE_LINK</linkField>
  123.             </sourceExpression>
  124.     </AttributeMapping>
  125.        
  126.     </attributeMappings>
  127.    </FeatureTypeMapping>
  128.  
  129.  
  130.  
  131.  
  132. <FeatureTypeMapping>
  133.     <encodeIfEmpty>true</encodeIfEmpty>
  134.     <mappingName>_soil_so_organiccarbon</mappingName>
  135.         <sourceDataStore>datastore</sourceDataStore>
  136.         <sourceType>carbon</sourceType>
  137.  
  138.         <targetElement>om:OM_Observation</targetElement>
  139.     <encodeIfEmpty>true</encodeIfEmpty>
  140.          <attributeMappings>
  141.          <AttributeMapping>
  142.              <targetAttribute>om:OM_Observation</targetAttribute>
  143.             <idExpression><OCQL>strConCat('om.om_observation.organiccarbon.fe.' ,profile_layer_id)</OCQL></idExpression>
  144.          </AttributeMapping>
  145.  
  146.               <AttributeMapping>
  147.              <encodeIfEmpty>true</encodeIfEmpty>
  148.             <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
  149.             <targetAttribute>om:phenomenonTime</targetAttribute>
  150.                       <ClientProperty><name>xlink:title</name><value>'unknown'</value></ClientProperty>
  151.             <ClientProperty><name>xlink:href</name><value>'http://www.opengis.net/def/nil/OGC/0/unknown'</value></ClientProperty>
  152.                    
  153.            </AttributeMapping>
  154.  
  155.            <AttributeMapping>
  156.                          <encodeIfEmpty>true</encodeIfEmpty>
  157.                         <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
  158.                         <targetAttribute>om:resultTime</targetAttribute>
  159.                           <ClientProperty><name>xlink:title</name><value>'unknown'</value></ClientProperty>
  160.                         <ClientProperty><name>xlink:href</name><value>'http://www.opengis.net/def/nil/OGC/0/unknown'</value></ClientProperty>
  161.                </AttributeMapping>
  162.  
  163.                <AttributeMapping>
  164.                          <encodeIfEmpty>true</encodeIfEmpty>
  165.                         <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
  166.                         <targetAttribute>om:procedure</targetAttribute>
  167.                           <ClientProperty><name>xlink:title</name><value>'template'</value></ClientProperty>
  168.                         <ClientProperty><name>xlink:href</name><value>'http://www.opengis.net/def/nil/OGC/0/template'</value></ClientProperty>
  169.                </AttributeMapping>
  170.  
  171.     <!--<om:observedProperty xlink:title="organic carbon" xlink:href="http://lab.scinfo.org.nz/soil-data-ie/def/property/soOrganicCarbon"/>-->
  172.  
  173.                 <AttributeMapping>
  174.                          <encodeIfEmpty>true</encodeIfEmpty>
  175.                         <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
  176.                         <targetAttribute>om:observedProperty</targetAttribute>
  177.                           <ClientProperty><name>xlink:title</name><value>'organic carbon'</value></ClientProperty>
  178.                         <ClientProperty><name>xlink:href</name><value>'http://lab.scinfo.org.nz/soil-data-ie/def/property/soOrganicCarbon'</value></ClientProperty>
  179.                </AttributeMapping>
  180.                 <!--<om:featureOfInterest xlink:href="#soil.so_horizon.8516"/>  -->
  181.  
  182.                <AttributeMapping>
  183.                          <encodeIfEmpty>true</encodeIfEmpty>
  184.                         <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
  185.                         <targetAttribute>om:featureOfInterest</targetAttribute>
  186.                         <ClientProperty><name>xlink:href</name><value>strConCat('"#soil.so_horizon.',profile_layer_id)</value></ClientProperty>
  187.                </AttributeMapping>
  188.  
  189.         <AttributeMapping>
  190.                          <encodeIfEmpty>true</encodeIfEmpty>
  191.                         <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
  192.                         <targetAttribute>om:result/soil:SO_MeasureRange/soil:soMinimumValue</targetAttribute>
  193.              <ClientProperty><name>xlink:href</name><value>'foo'</value></ClientProperty>
  194.  
  195.  
  196.                </AttributeMapping>
  197.  
  198.    
  199.    
  200.  
  201.  
  202.         <AttributeMapping>
  203.              <targetAttribute>FEATURE_LINK</targetAttribute>
  204.              <sourceExpression>
  205.                 <OCQL>profile_layer_id</OCQL>
  206.               </sourceExpression>
  207.         </AttributeMapping>
  208.  
  209.    </attributeMappings>
  210.  
  211. </FeatureTypeMapping>
  212.  
  213.  
  214.  
  215. <FeatureTypeMapping>
  216.  <mappingName>_soil_so_particlesizevalue</mappingName>
  217.  <sourceDataStore>datastore</sourceDataStore>
  218.  <sourceType>clay</sourceType>
  219.  
  220.  
  221.  <targetElement>soil:SO_ParticleSizeValue</targetElement>
  222.   <attributeMappings>
  223.         <AttributeMapping>
  224.     <encodeIfEmpty>true</encodeIfEmpty>
  225.         <targetAttribute>soil:soLabel</targetAttribute>
  226.          <ClientProperty><name>xlink:title</name><value>'clay'</value></ClientProperty>      
  227.         <ClientProperty><name>xlink:href</name><value>'http://lab.scinfo.org.nz/soil-data-ie/def/voc/particle-size/clay'</value></ClientProperty>
  228.     </AttributeMapping>
  229.  
  230.  
  231.     <AttributeMapping>
  232.       <encodeIfEmpty>true</encodeIfEmpty>
  233.           <targetAttribute>soil:soParticleSize/soil:SO_MeasureRange/soil:soMinimumValue</targetAttribute>
  234.        <ClientProperty><name>uom</name><value>'mm'</value></ClientProperty>
  235.         <sourceExpression><OCQL>'0'</OCQL></sourceExpression>
  236.            </AttributeMapping>
  237.         <AttributeMapping>
  238.           <encodeIfEmpty>true</encodeIfEmpty>
  239.           <targetAttribute>soil:soParticleSize/soil:SO_MeasureRange/soil:soMaximumValue</targetAttribute>
  240.            <ClientProperty><name>uom</name><value>'mm'</value></ClientProperty>
  241.             <sourceExpression><OCQL>'0.002'</OCQL></sourceExpression>
  242.           </AttributeMapping>
  243.  
  244.        <AttributeMapping>
  245.           <encodeIfEmpty>true</encodeIfEmpty>
  246.           <targetAttribute>soil:soProportion/soil:SO_MeasureRange/soil:soMinimumValue</targetAttribute>      
  247.       <ClientProperty><name>uom</name><value>'percent'</value></ClientProperty>
  248.            <sourceExpression><OCQL>source_value</OCQL></sourceExpression>
  249.        </AttributeMapping>
  250.  
  251.        <AttributeMapping>
  252.           <encodeIfEmpty>true</encodeIfEmpty>
  253.           <targetAttribute>soil:soProportion/soil:SO_MeasureRange/soil:soMaximumValue</targetAttribute>
  254.           <ClientProperty><name>uom</name><value>'percent'</value></ClientProperty>
  255.            <sourceExpression><OCQL>source_value</OCQL></sourceExpression>
  256.        </AttributeMapping>
  257.  
  258.    
  259.         <AttributeMapping>
  260.         <targetAttribute>FEATURE_LINK</targetAttribute>
  261.         <sourceExpression>
  262.         <OCQL>profile_layer_id</OCQL>
  263.         </sourceExpression>
  264.         </AttributeMapping>
  265.  
  266.        
  267. </attributeMappings>
  268.  
  269. </FeatureTypeMapping>
  270.  
  271. </typeMappings>
  272. </as:AppSchemaDataAccess>
Advertisement
Add Comment
Please, Sign In to add comment