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
REMIB,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
accession_number,"/_if[@name=""if specimen""]/cond/_exists","Not globally unique, only (usually) unique within the institution providing the data (""acronym""). Note that there are nevertheless 11,869 rows where an accession_number appears multiple times within the same institution. [1]
3

  
4
[1] Using the following query:
5
-----
6
SELECT acronym, accession_number, count(*)
7
FROM ""REMIB"".""Specimen""
8
GROUP BY acronym, accession_number
9
HAVING count(*) > 1
10
-----"
11
acronym,"/_if[@name=""if specimen""]/else/source/shortname/_first/1",
2 12
accession_number,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_if[@name=""if catalogNumber""]/cond/_exists","Not globally unique, only (usually) unique within the institution providing the data (""acronym""). Note that there are nevertheless 11,869 rows where an accession_number appears multiple times within the same institution. [1]
3 13

  
4 14
[1] Using the following query:
......
86 96
county,/location/locationplace/*_id/place/matched_place_id/place:[source_id/source/shortname=geoscrub]/county/_first/2,
87 97
state,/location/locationplace/*_id/place/matched_place_id/place:[source_id/source/shortname=geoscrub]/stateprovince/_first/2,
88 98
state,/location/locationplace/*_id/place/stateprovince,
89
accession_number,"/source/shortname/_if[@name=""if specimen""]/cond/_exists","Not globally unique, only (usually) unique within the institution providing the data (""acronym""). Note that there are nevertheless 11,869 rows where an accession_number appears multiple times within the same institution. [1]
90

  
91
[1] Using the following query:
92
-----
93
SELECT acronym, accession_number, count(*)
94
FROM ""REMIB"".""Specimen""
95
GROUP BY acronym, accession_number
96
HAVING count(*) > 1
97
-----"
98
acronym,"/source/shortname/_if[@name=""if specimen""]/else",
99 99
lat_min,,** No join mapping for *lat_min ** 
100 100
lat_sec,,** No join mapping for *lat_sec ** 
101 101
long_min,,** No join mapping for *long_min ** 

Also available in: Unified diff