Project

General

Profile

« Previous | Next » 

Revision 6409

mappings/VegCore-VegBIEN.csv: source table mappings: Set shortname to env var $source when it's not explicitly specified, because shortname is a required field of source

View differences:

VegBIEN.csv
1 1
UNCC,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
accession,"/_if[@name=""if specimen""]/cond/_exists","Globally unique, although occasionally duplicated. [1]
3

  
4
[1] Using the following query:
5
-----
6
SELECT herbarium, accession, count(*)
7
FROM ""UNCC"".""Specimen""
8
GROUP BY herbarium, accession
9
HAVING count(*) > 1
10
-----"
11
herbarium,"/_if[@name=""if specimen""]/else/source/shortname/_first/1",
2 12
accession,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/1","Globally unique, although occasionally duplicated. [1]
3 13

  
4 14
[1] Using the following query:
......
135 145
county,/location/locationplace/*_id/place/matched_place_id/place:[source_id/source/shortname=geoscrub]/county/_first/2,
136 146
state,/location/locationplace/*_id/place/matched_place_id/place:[source_id/source/shortname=geoscrub]/stateprovince/_first/2,
137 147
state,/location/locationplace/*_id/place/stateprovince,
138
accession,"/source/shortname/_if[@name=""if specimen""]/cond/_exists","Globally unique, although occasionally duplicated. [1]
139

  
140
[1] Using the following query:
141
-----
142
SELECT herbarium, accession, count(*)
143
FROM ""UNCC"".""Specimen""
144
GROUP BY herbarium, accession
145
HAVING count(*) > 1
146
-----"
147
herbarium,"/source/shortname/_if[@name=""if specimen""]/else",
148 148
filler,,"** No join mapping for *filler ** Where used, same as family"
149 149
flower,,"** No join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
150 150
fruit,,"** No join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"

Also available in: Unified diff