Task #464
Updated by Aaron Marcuse-Kubitza over 12 years ago
h2. Steps to reverse
h3. -@DwC2-VegBIEN.specimens.csv@-
# -@bin/in_place mappings/DwC2-VegBIEN.specimens.csv env left_in_root= left_out_root= right_in_root= right_out_root= left_connect= right_connect='/location/locationevent' bin/ch_root_via@-
# -In the map spreadsheet, remove the following (order matters):-
<pre>
/specimenreplicate/*_id/locationevent
/locationevent/*_id/location
</pre>
h3. @VegX-VegBIEN.stems.csv@ input
# @bin/in_place mappings/VegX-VegBIEN.stems.csv env left_in_root= left_out_root= right_in_root='/stemobservation' right_out_root='/stemobservation' left_connect='/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]->' right_connect='/stemobservation' bin/ch_root_via@
** The new root (inlined with the paths) will be:
@/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]@
# Do the same for all the VegX via maps:
## @VegX.plots.csv@:
<pre>
for map in inputs/*/maps/VegX.plots.csv; do
bin/in_place "$map" env left_in_root= left_out_root= right_in_root='/*s/plotObservation' right_out_root= left_connect= right_connect='/*s/plot->/*s/plotObservation[*UniqueIdentifierID]' bin/ch_root_via
done
</pre>
## @VegX.organisms.csv@:
<pre>
for map in inputs/*/maps/VegX.organisms.csv; do
bin/in_place "$map" env left_in_root= left_out_root= right_in_root='/*s/individualOrganismObservation' right_out_root= left_connect= right_connect='/*s/plot->/*s/plotObservation[*UniqueIdentifierID]->/*s/individualOrganismObservation[*ID]' bin/ch_root_via
done
</pre>
# In the map spreadsheet _and all VegX via maps_, remove the following (order matters):
<pre>
->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]/relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID->/*s/individualOrganismObservation/*ID
->/*s/individualOrganismObservation[*ID]->/*s/plotObservation
->/*s/plotObservation[*UniqueIdentifierID]/*UniqueIdentifierID->/*s/plot
</pre>
# Update @mappings/Makefile@ VegX section
h3. @VegX-VegBIEN.stems.csv@ output
# @bin/in_place mappings/VegX-VegBIEN.stems.csv env left_in_root= left_out_root= right_in_root= right_out_root= left_connect= right_connect='/location/locationevent' bin/ch_root_via@
# In the map spreadsheet, remove the following (order matters):
<pre>
/specimenreplicate/*_id/locationevent
/locationevent/*_id/location
...
</pre>
# Update @mappings/Makefile@ VegX section