Commit 5544c7c9 authored by rwm's avatar rwm

Data prepared for value mapping

parent a950d496
......@@ -18,9 +18,9 @@
<deathdate format="d.M.u" na="" column="verstorben"/>
<gender column="geschlecht">
<map>
<map if-value="W" set-value="F"/>
<map if-value="M" set-value="M"/>
<otherwise set-value=""/>
<if value="W" set-value="F"/>
<if value="M" set-value="M"/>
<otherwise set-value="" log-warning="Unexpected gender value"/>
</map>
</gender>
<ignore xsi:type="string" column="ignoriert1"/>
......@@ -97,6 +97,16 @@
<value column="value" na="@"/>
<unit column="unit" na="@"/>
</mdat>
<eav-map>
<map concept="f_eav_x">
<if value="1" set-value="" set-concept="f_eav_x_1"/>
<!-- action inplace is default -->
<if value="0" set-value="" set-concept="f_eav_x_0" action="inplace" />
<!-- action drop will not produce any fact -->
<otherwise log-warning="Unexpected value" action="drop" />
<!-- action generate will produce a new concept with the given values -->
</map>
</eav-map>
</eav-table>
</datasource>
......@@ -14,6 +14,7 @@ p1 v2 L1 u1 f_eav_f 2013-08-18 @ decimal 20.6 @
p1 v2 L1 u1 f_eav_i 2013-08-18 @ decimal 0.36 @
p1 v2 L1 u1 f_eav_l 2013-08-18 @ decimal 1.3 @
p1 v2 L1 u1 f_eav_v 2013-08-18 @ decimal 3.8 @
p1 v2 L1 u1 f_eav_x 2013-08-18 @ integer 0 @
p2 v3 L1 u1 f_eav_b 2013-08-24 @ decimal 4.7 @
p2 v3 L1 u1 f_eav_c 2013-08-24 @ decimal 6.9 @
p2 v3 L1 u1 f_eav_d 2013-08-24 @ decimal 56.1 @
......@@ -30,3 +31,4 @@ p3 v4 L1 u1 f_eav_i 2013-08-30 @ decimal 0.32 @
p3 v4 L1 u1 f_eav_l 2013-08-30 @ decimal 1.1 @
p3 v4 L1 u1 f_eav_v 2013-08-30 @ decimal 0.5 @
p3 v4 L1 u1 f_eav_a 2013-08-30 @ decimal 12.0 @
p3 v4 L1 u1 f_eav_x 2013-08-30 @ integer 1 @
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment