schema-mapping.xml 8.61 KB
Newer Older
Rushikesh Padsala's avatar
Rushikesh Padsala committed
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<schemaMapping xmlns="http://www.3dcitydb.org/database/schema/1.0">
    <metadata>
        <name>FWEBuilding</name>
        <version>2.1</version>
        <description>Building thematic class of FWE ADE</description>
        <dbPrefix>FWEB</dbPrefix>
    </metadata>
    <applicationSchemas>
        <schema id="FWEB" isADERoot="true">
11
            <namespace context="citygml-2.0">http://transfer.hft-stuttgart.de/pages/in-source/fwe-ade/FWEBuilding/v2.1/XSD</namespace>
Rushikesh Padsala's avatar
Rushikesh Padsala committed
12
13
14
        </schema>
    </applicationSchemas>
    <featureTypes>
15
        <featureType id="FWEB_BuildingSurveyType" table="FWEB_buildingsurvey" objectClassId="20000" path="BuildingSurvey" schema="FWEB">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
            <extension base="AbstractFeatureType">
                <join table="cityobject" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <attribute column="surveyyear" type="integer" path="surveyYear" schema="FWEB"/>
            <attribute column="surveyyearversion" type="double" path="surveyYearVersion" schema="FWEB"/>
            <attribute column="surveydescription" type="string" path="surveyDescription" schema="FWEB"/>
            <attribute column="occupants" type="integer" maxOccurs="1" path="occupants" schema="FWEB"/>
            <complexAttribute maxOccurs="1" path="buildingFootprintArea" schema="FWEB">
                <attribute column="buildingfootprintarea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="buildingfootprintarea" type="double" path="." schema="FWEB"/>
            </complexAttribute>
            <complexAttribute maxOccurs="1" path="totalFloorArea" schema="FWEB">
                <attribute column="totalfloorarea_uom" type="string" path="@uom" schema="gml"/>
                <attribute column="totalfloorarea" type="double" path="." schema="FWEB"/>
            </complexAttribute>
            <featureProperty target="FWEB_FoodSurveyType" relationType="composition" path="foodSurvey" schema="FWEB">
                <join table="FWEB_foodsurvey" fromColumn="id" toColumn="buildingsurvey_foodsurvey_id" toRole="child"/>
            </featureProperty>
            <featureProperty target="FWEB_WaterSurveyType" relationType="composition" path="waterSurvey" schema="FWEB">
                <join table="FWEB_watersurvey" fromColumn="id" toColumn="buildingsurve_watersurvey_id" toRole="child"/>
            </featureProperty>
            <featureProperty target="FWEB_EnergySurveyType" relationType="composition" path="energySurvey" schema="FWEB">
                <join table="FWEB_energysurvey" fromColumn="id" toColumn="buildingsurv_energysurvey_id" toRole="child"/>
            </featureProperty>
        </featureType>
41
        <featureType id="FWEB_FoodSurveyType" table="FWEB_foodsurvey" objectClassId="20001" path="FoodSurvey" schema="FWEB">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
            <extension base="FWEB_BuildingSurveyType">
                <join table="FWEB_buildingsurvey" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <complexAttribute path="foodCategory" schema="FWEB">
                <attribute column="foodcategory_codespace" type="string" path="@codespace" schema="gml"/>
                <attribute column="foodcategory" type="string" path="." schema="FWEB"/>
            </complexAttribute>
            <attribute column="fooddemand" type="double" maxOccurs="1" path="foodDemand" schema="FWEB"/>
            <attribute column="fooddemandunit" type="string" maxOccurs="1" path="foodDemandUnit" schema="FWEB"/>
            <attribute column="foodproduction" type="double" maxOccurs="1" path="foodProduction" schema="FWEB"/>
            <attribute column="foodproductionunit" type="string" maxOccurs="1" path="foodProductionUnit" schema="FWEB"/>
            <attribute column="foodproductionwaterdemand" type="double" maxOccurs="1" path="foodProductionWaterDemand" schema="FWEB"/>
            <attribute column="foodproductionwaterdemanduni" type="string" maxOccurs="1" path="foodProductionWaterDemandUnit" schema="FWEB"/>
            <attribute column="foodproductionenergydemand" type="double" maxOccurs="1" path="foodProductionEnergyDemand" schema="FWEB"/>
            <attribute column="foodproductionenergydemandun" type="string" maxOccurs="1" path="foodProductionEnergyDemandUnit" schema="FWEB"/>
            <attribute column="foodconsumption" type="double" maxOccurs="1" path="foodConsumption" schema="FWEB"/>
            <attribute column="foodconsumptionunit" type="string" maxOccurs="1" path="foodConsumptionUnit" schema="FWEB"/>
        </featureType>
60
        <featureType id="FWEB_WaterSurveyType" table="FWEB_watersurvey" objectClassId="20002" path="WaterSurvey" schema="FWEB">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
            <extension base="FWEB_BuildingSurveyType">
                <join table="FWEB_buildingsurvey" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <attribute column="domesticwaterdemand" type="double" maxOccurs="1" path="domesticWaterDemand" schema="FWEB"/>
            <attribute column="domesticwaterdemandunit" type="string" maxOccurs="1" path="domesticWaterDemandUnit" schema="FWEB"/>
            <attribute column="domestichotwaterdemand" type="double" maxOccurs="1" path="domesticHotWaterDemand" schema="FWEB"/>
            <attribute column="domestichotwaterdemandunit" type="string" maxOccurs="1" path="domesticHotWaterDemandUnit" schema="FWEB"/>
            <attribute column="domestichotwaterenergydemand" type="double" maxOccurs="1" path="domesticHotWaterEnergyDemand" schema="FWEB"/>
            <attribute column="domestichotwaterenergydema_1" type="string" maxOccurs="1" path="domesticHotWaterEnergyDemandUnit" schema="FWEB"/>
            <attribute column="domesticwaterwaste" type="double" maxOccurs="1" path="domesticWaterWaste" schema="FWEB"/>
            <attribute column="domesticwaterwasteunit" type="string" maxOccurs="1" path="domesticWaterWasteUnit" schema="FWEB"/>
            <attribute column="domesticsolidwaste" type="double" maxOccurs="1" path="domesticSolidWaste" schema="FWEB"/>
            <attribute column="domesticsolidwasteunit" type="string" maxOccurs="1" path="domesticSolidWasteUnit" schema="FWEB"/>
            <attribute column="totaldomesticwaste" type="double" maxOccurs="1" path="totalDomesticWaste" schema="FWEB"/>
            <attribute column="totaldomesticwasteunit" type="string" maxOccurs="1" path="totalDomesticWasteUnit" schema="FWEB"/>
        </featureType>
77
        <featureType id="FWEB_EnergySurveyType" table="FWEB_energysurvey" objectClassId="20003" path="EnergySurvey" schema="FWEB">
Rushikesh Padsala's avatar
Rushikesh Padsala committed
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
            <extension base="FWEB_BuildingSurveyType">
                <join table="FWEB_buildingsurvey" fromColumn="id" toColumn="id" toRole="parent"/>
            </extension>
            <attribute column="spaceheatingdemand" type="double" maxOccurs="1" path="spaceHeatingDemand" schema="FWEB"/>
            <attribute column="spaceheatingdemandunit" type="string" maxOccurs="1" path="spaceHeatingDemandUnit" schema="FWEB"/>
            <attribute column="spacecoolingdemand" type="double" maxOccurs="1" path="spaceCoolingDemand" schema="FWEB"/>
            <attribute column="spacecoolingdemandunit" type="string" maxOccurs="1" path="spaceCoolingDemandUnit" schema="FWEB"/>
            <attribute column="residentialelectricitydemand" type="double" maxOccurs="1" path="residentialElectricityDemand" schema="FWEB"/>
            <attribute column="residentialelectricitydema_1" type="string" maxOccurs="1" path="residentialElectricityDemandUnit" schema="FWEB"/>
            <attribute column="electricitypotentialfrompv" type="double" maxOccurs="1" path="electricityPotentialFromPV" schema="FWEB"/>
            <attribute column="electricitypotentialfrompvun" type="string" maxOccurs="1" path="electricityPotentialfromPVUnit" schema="FWEB"/>
        </featureType>
    </featureTypes>
    <propertyInjections>
        <propertyInjection table="FWEB_building" defaultBase="AbstractBuildingType">
            <join table="FWEB_building" fromColumn="ID" toColumn="ID" toRole="child"/>
            <attribute column="fweareaname" type="string" maxOccurs="1" path="fweAreaName" schema="FWEB"/>
            <attribute column="fwesystemname" type="string" maxOccurs="1" path="fweSystemName" schema="FWEB"/>
            <featureProperty target="FWEB_BuildingSurveyType" relationType="composition" path="consistsOfFWEsurvey" schema="FWEB">
                <join table="FWEB_buildingsurvey" fromColumn="id" toColumn="building_consistsoffwesur_id" toRole="child">
                    <condition column="objectclass_id" value="${target.objectclass_id}" type="integer"/>
                </join>
            </featureProperty>
        </propertyInjection>
    </propertyInjections>
</schemaMapping>