Revision 1843
Added by Aaron Marcuse-Kubitza about 12 years ago
Makefile | ||
---|---|---|
3 | 3 |
# Paths |
4 | 4 |
bin := ../bin |
5 | 5 |
inputCoreMaps := DwC1-DwC2.specimens.csv DwC2-VegBIEN.specimens.csv\ |
6 |
VegX-VegBIEN.organisms.csv
|
|
6 |
VegX-VegBIEN.stems.csv
|
|
7 | 7 |
|
8 | 8 |
# Via formats |
9 | 9 |
coreMaps := $(wildcard *-VegBIEN.*.csv) |
... | ... | |
103 | 103 |
|
104 | 104 |
rootAttrs := :[@xmlns:tcs="http://www.tdwg.org/schemas/tcs/1.01"] |
105 | 105 |
|
106 |
VegX-VegBIEN.organisms.csv: VegX-VegBIEN.stems.csv |
|
107 |
env \ |
|
108 |
left_in_root='$(rootAttrs)/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]/relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID->/*s/individualOrganismObservation' \ |
|
109 |
left_out_root='$(rootAttrs)/*s/individualOrganismObservation' \ |
|
110 |
right_in_root='/stemobservation/*_id/plantobservation' \ |
|
111 |
right_out_root='/plantobservation' \ |
|
112 |
$(chRoot) |
|
113 |
vegxMaps += VegX-VegBIEN.organisms.csv |
|
114 |
|
|
106 | 115 |
VegX-VegBIEN.plots.csv: VegX-VegBIEN.organisms.csv |
107 | 116 |
env \ |
108 | 117 |
left_in_root='$(rootAttrs)/*s/individualOrganismObservation/*ID->/*s/plotObservation' \ |
109 | 118 |
left_out_root='/*s/plotObservation' \ |
110 |
right_in_root='/taxonoccurrence/*_id/locationevent' \ |
|
119 |
right_in_root='/plantobservation/aggregateoccurrence/*_id/taxonoccurrence/*_id/locationevent' \
|
|
111 | 120 |
right_out_root='/locationevent' \ |
112 | 121 |
$(chRoot) |
113 | 122 |
vegxMaps += VegX-VegBIEN.plots.csv |
114 | 123 |
|
115 |
VegX-VegBIEN.stems.csv: VegX-VegBIEN.organisms.csv |
|
116 |
env \ |
|
117 |
left_in_root='$(rootAttrs)/*s/individualOrganismObservation->/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]' \ |
|
118 |
left_out_root='/*s/individualOrganismObservation[relatedIndividual/relatedItem[itemRelationship=stemParent]/relatedItemID]' \ |
|
119 |
right_in_root='/taxonoccurrence/aggregateoccurrence/*_id/plantobservation/stemobservation' \ |
|
120 |
right_out_root='/stemobservation' \ |
|
121 |
$(chRoot) |
|
122 |
vegxMaps += VegX-VegBIEN.stems.csv |
|
123 |
|
|
124 | 124 |
vegx_maps: _always $(vegxMaps) ; |
125 | 125 |
|
126 | 126 |
all += $(vegxMaps) |
Also available in: Unified diff
mappings: Build VegX-VegBIEN.organisms.csv from VegX-VegBIEN.stems.csv instead of vice versa. This entails switching the roots around so stem points to organism instead of the other way around, which is a complex operation. Re-rooted VegX-VegBIEN.organisms.csv at /plantobservation instead of /taxonoccurrence to avoid traveling up the hierarchy to taxonoccurrence and back down again to plantobservation, etc. as would otherwise have been the case.