Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- java.lang.RuntimeException: Error applying mapping with targetAttribute soil:soComposition/soil:SO_Component/soil:soOrganicCarbon
- Error applying mapping with targetAttribute soil:soComposition/soil:SO_Component/soil:soOrganicCarbon
- Error applying mapping with targetAttribute om:result/soil:SO_MeasureRange
- 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:
- -->
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <namespaces>
- <Namespace><prefix>gml</prefix><uri>http://www.opengis.net/gml/3.2</uri></Namespace>
- <Namespace><prefix>om</prefix><uri>http://www.opengis.net/om/2.0</uri></Namespace>
- <Namespace><prefix>sam</prefix><uri>http://www.opengis.net/sampling/2.0</uri></Namespace>
- <Namespace><prefix>sams</prefix><uri>http://www.opengis.net/samplingSpatial/2.0</uri></Namespace>
- <Namespace><prefix>xlink</prefix><uri>http://www.w3.org/1999/xlink</uri></Namespace>
- <Namespace><prefix>xsi</prefix><uri>http://www.w3.org/2001/XMLSchema-instance</uri></Namespace>
- <Namespace><prefix>soil</prefix><uri>http://www.opengis.net/soil-data-ie/0.1</uri></Namespace>
- </namespaces>
- <sourceDataStores>
- <DataStore>
- <id>datastore</id>
- <parameters>
- <Parameter><name>dbtype</name><value>postgisng</value></Parameter>
- <!-- REMOVED -->
- <Parameter><name>Expose primary keys</name><value>true</value></Parameter>
- </parameters>
- </DataStore>
- </sourceDataStores>
- <targetTypes>
- <FeatureType>
- <schemaUri>http://schemas.opengis.net/samplingSpatial/2.0/spatialSamplingFeature.xsd</schemaUri>
- <schemaUri>http://schemas.opengis.net/om/2.0/observation.xsd</schemaUri>
- <schemaUri>http://schemas.opengis.net/sampling/2.0/samplingFeature.xsd</schemaUri>
- <schemaUri>http://lab.scinfo.org.nz/static/schema/soil-data-ie/0.1/soil-data-ie.xsd</schemaUri>
- </FeatureType>
- </targetTypes>
- <typeMappings>
- <FeatureTypeMapping>
- <sourceDataStore>datastore</sourceDataStore>
- <sourceType>profile_layer2</sourceType>
- <targetElement>soil:SO_Horizon</targetElement>
- <attributeMappings>
- <AttributeMapping>
- <targetAttribute>soil:SO_Horizon</targetAttribute>
- <idExpression><OCQL>strConCat('soil.so_horizon.' ,profile_layer_id)</OCQL></idExpression>
- </AttributeMapping>
- <AttributeMapping>
- <targetAttribute>gml:identifier</targetAttribute>
- <sourceExpression>
- <OCQL>strConCat('http://lab.scinfo.org.nz/soil-data-ie/id/isric/soil/so_soilprofile/',profile_layer_id)</OCQL>
- </sourceExpression>
- <ClientProperty>
- <name>codeSpace</name>
- <value>'http://www.landcareresearch.co.nz'</value>
- </ClientProperty>
- </AttributeMapping>
- <!-- <soil:soDepth><soil:SO_MeasureRange><soil:soMinimumValue uom="cm">53</soil:soMinimumValue><soil:soMaximumValue uom="cm">74</soil:soMaximumValue></soil:SO_MeasureRange></soil:soDepth>-->
- <AttributeMapping>
- <targetAttribute>soil:soDepth/soil:SO_MeasureRange/soil:soMinimumValue</targetAttribute>
- <sourceExpression><OCQL>upper_depth</OCQL></sourceExpression>
- <ClientProperty><name>uom</name><value>'cm'</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <!-- <soil:soMaximumValue uom="cm">74</soil:soMaximumValue> -->
- <targetAttribute>soil:soDepth/soil:SO_MeasureRange/soil:soMaximumValue</targetAttribute>
- <sourceExpression><OCQL>lower_depth</OCQL></sourceExpression>
- <ClientProperty><name>uom</name><value>'cm'</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <!--<soil:soParticleSizeFraction xlink:title="whole soil" xlink:href="http://lab.scinfo.org.nz/soil-data-ie/def/voc/particle-size-fraction/whole-soil"/> -->
- <targetAttribute>soil:soComposition/soil:SO_Component/soil:soParticleSizeFraction</targetAttribute>
- <ClientProperty><name>xlink:href</name><value>'http://lab.scinfo.org.nz/soil-data-ie/def/voc/particle-size-fraction/fine-earth'</value></ClientProperty>
- <ClientProperty><name>xlink:title</name><value>'fine earth'</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soComposition/soil:SO_Component/soil:soTexture</targetAttribute>
- <ClientProperty><name>xlink:href</name><value>'http://lab.scinfo.org.nz/soil-data-ie/def/voc/texture'</value></ClientProperty>
- <ClientProperty><name>xlink:title</name><value>'unknown'</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soComposition/soil:SO_Component/soil:soParticleSizeDistribution</targetAttribute>
- <sourceExpression>
- <OCQL>profile_layer_id</OCQL>
- <linkElement>_soil_so_particlesizevalue</linkElement>
- <linkField>FEATURE_LINK</linkField>
- </sourceExpression>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soComposition/soil:SO_Component/soil:soEffectiveCationExchangeCapacity</targetAttribute>
- <ClientProperty><name>xlink:title</name><value>'missing'</value></ClientProperty>
- <ClientProperty><name>xlink:href</name><value>'xlink:href="http://www.opengis.net/def/nil/OGC/0/missing'</value></ClientProperty>
- </AttributeMapping>
- <!--soil:soElectricalConductivity -->
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soComposition/soil:SO_Component/soil:soElectricalConductivity</targetAttribute>
- <ClientProperty><name>xlink:title</name><value>'missing'</value></ClientProperty>
- <ClientProperty><name>xlink:href</name><value>'xlink:href="http://www.opengis.net/def/nil/OGC/0/missing'</value></ClientProperty>
- </AttributeMapping>
- <!-- <soil:soOrganicCarbon> -->
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soComposition/soil:SO_Component/soil:soOrganicCarbon</targetAttribute>
- <sourceExpression>
- <OCQL>profile_layer_id</OCQL>
- <linkElement>_soil_so_organiccarbon</linkElement>
- <linkField>FEATURE_LINK</linkField>
- </sourceExpression>
- </AttributeMapping>
- </attributeMappings>
- </FeatureTypeMapping>
- <FeatureTypeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <mappingName>_soil_so_organiccarbon</mappingName>
- <sourceDataStore>datastore</sourceDataStore>
- <sourceType>carbon</sourceType>
- <targetElement>om:OM_Observation</targetElement>
- <encodeIfEmpty>true</encodeIfEmpty>
- <attributeMappings>
- <AttributeMapping>
- <targetAttribute>om:OM_Observation</targetAttribute>
- <idExpression><OCQL>strConCat('om.om_observation.organiccarbon.fe.' ,profile_layer_id)</OCQL></idExpression>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
- <targetAttribute>om:phenomenonTime</targetAttribute>
- <ClientProperty><name>xlink:title</name><value>'unknown'</value></ClientProperty>
- <ClientProperty><name>xlink:href</name><value>'http://www.opengis.net/def/nil/OGC/0/unknown'</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
- <targetAttribute>om:resultTime</targetAttribute>
- <ClientProperty><name>xlink:title</name><value>'unknown'</value></ClientProperty>
- <ClientProperty><name>xlink:href</name><value>'http://www.opengis.net/def/nil/OGC/0/unknown'</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
- <targetAttribute>om:procedure</targetAttribute>
- <ClientProperty><name>xlink:title</name><value>'template'</value></ClientProperty>
- <ClientProperty><name>xlink:href</name><value>'http://www.opengis.net/def/nil/OGC/0/template'</value></ClientProperty>
- </AttributeMapping>
- <!--<om:observedProperty xlink:title="organic carbon" xlink:href="http://lab.scinfo.org.nz/soil-data-ie/def/property/soOrganicCarbon"/>-->
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
- <targetAttribute>om:observedProperty</targetAttribute>
- <ClientProperty><name>xlink:title</name><value>'organic carbon'</value></ClientProperty>
- <ClientProperty><name>xlink:href</name><value>'http://lab.scinfo.org.nz/soil-data-ie/def/property/soOrganicCarbon'</value></ClientProperty>
- </AttributeMapping>
- <!--<om:featureOfInterest xlink:href="#soil.so_horizon.8516"/> -->
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
- <targetAttribute>om:featureOfInterest</targetAttribute>
- <ClientProperty><name>xlink:href</name><value>strConCat('"#soil.so_horizon.',profile_layer_id)</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <!--xlink:title="unknown"" xlink:href="http://www.opengis.net/def/nil/OGC/0/unknown" -->
- <targetAttribute>om:result/soil:SO_MeasureRange/soil:soMinimumValue</targetAttribute>
- <ClientProperty><name>xlink:href</name><value>'foo'</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <targetAttribute>FEATURE_LINK</targetAttribute>
- <sourceExpression>
- <OCQL>profile_layer_id</OCQL>
- </sourceExpression>
- </AttributeMapping>
- </attributeMappings>
- </FeatureTypeMapping>
- <FeatureTypeMapping>
- <mappingName>_soil_so_particlesizevalue</mappingName>
- <sourceDataStore>datastore</sourceDataStore>
- <sourceType>clay</sourceType>
- <targetElement>soil:SO_ParticleSizeValue</targetElement>
- <attributeMappings>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soLabel</targetAttribute>
- <ClientProperty><name>xlink:title</name><value>'clay'</value></ClientProperty>
- <ClientProperty><name>xlink:href</name><value>'http://lab.scinfo.org.nz/soil-data-ie/def/voc/particle-size/clay'</value></ClientProperty>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soParticleSize/soil:SO_MeasureRange/soil:soMinimumValue</targetAttribute>
- <ClientProperty><name>uom</name><value>'mm'</value></ClientProperty>
- <sourceExpression><OCQL>'0'</OCQL></sourceExpression>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soParticleSize/soil:SO_MeasureRange/soil:soMaximumValue</targetAttribute>
- <ClientProperty><name>uom</name><value>'mm'</value></ClientProperty>
- <sourceExpression><OCQL>'0.002'</OCQL></sourceExpression>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soProportion/soil:SO_MeasureRange/soil:soMinimumValue</targetAttribute>
- <ClientProperty><name>uom</name><value>'percent'</value></ClientProperty>
- <sourceExpression><OCQL>source_value</OCQL></sourceExpression>
- </AttributeMapping>
- <AttributeMapping>
- <encodeIfEmpty>true</encodeIfEmpty>
- <targetAttribute>soil:soProportion/soil:SO_MeasureRange/soil:soMaximumValue</targetAttribute>
- <ClientProperty><name>uom</name><value>'percent'</value></ClientProperty>
- <sourceExpression><OCQL>source_value</OCQL></sourceExpression>
- </AttributeMapping>
- <AttributeMapping>
- <targetAttribute>FEATURE_LINK</targetAttribute>
- <sourceExpression>
- <OCQL>profile_layer_id</OCQL>
- </sourceExpression>
- </AttributeMapping>
- </attributeMappings>
- </FeatureTypeMapping>
- </typeMappings>
- </as:AppSchemaDataAccess>
Advertisement
Add Comment
Please, Sign In to add comment