Project

General

Profile

« Previous | Next » 

Revision 4164

union: Exclude empty rows from the output, so that empty mappings from map_0 aren't included when map_1 contains a non-empty mapping for the same term. Note that this causes "No non-empty join mapping" warnings to turn into "No join mapping".

View differences:

inputs/MT/src/specimens/VegBIEN.csv
14 14
genus,"/location/locationevent/taxonoccurrence/taxondetermination[role=identifier]:[isoriginal=true]/*_id/plantconcept/plantname_id/_simplifyPath:[next=""parent_id/plantname"",require=plantname]/path/_forEach:[in:[binomial,authority,subspecies,species,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=genus]/plantname",
15 15
family,"/location/locationevent/taxonoccurrence/taxondetermination[role=identifier]:[isoriginal=true]/*_id/plantconcept/plantname_id/_simplifyPath:[next=""parent_id/plantname"",require=plantname]/path/_forEach:[in:[binomial,authority,subspecies,species,genus,],do=""plantname[rank=_val]/parent_id""]/plantname[rank=family]/plantname",
16 16
locality,/location/locationnarrative/_merge/1,
17
basisOfRecord,,** No non-empty join mapping for basisOfRecord ** 
18
countryCode,,** No non-empty join mapping for countryCode ** 
19
datasetName,,** No non-empty join mapping for datasetName ** 
20
language,,** No non-empty join mapping for language ** 
21
occurrenceRemarks,,** No non-empty join mapping for occurrenceRemarks ** 
22
rights,,** No non-empty join mapping for rights ** 
23
rightsHolder,,** No non-empty join mapping for rightsHolder ** 
24
type,,** No non-empty join mapping for type ** 
17
basisOfRecord,,** No join mapping for basisOfRecord ** 
18
countryCode,,** No join mapping for countryCode ** 
19
datasetName,,** No join mapping for datasetName ** 
20
language,,** No join mapping for language ** 
21
occurrenceRemarks,,** No join mapping for occurrenceRemarks ** 
22
rights,,** No join mapping for rights ** 
23
rightsHolder,,** No join mapping for rightsHolder ** 
24
type,,** No join mapping for type ** 
inputs/XAL/src/specimens/VegBIEN.csv
55 55
MaximumDepth,"/location/locationevent/waterdepth/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
56 56
MinimumDepth,"/location/locationevent/waterdepth/_avg/min/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
57 57
Locality,/location/locationnarrative/_merge/1,
58
BasisOfRecord,,** No non-empty join mapping for BasisOfRecord ** 
59
DateLastModified,,** No non-empty join mapping for DateLastModified ** 
60
JulianDay,,** No non-empty join mapping for JulianDay ** 
61
PreparationType,,** No non-empty join mapping for PreparationType ** 
62
PreviousCatalogNumber,,** No non-empty join mapping for PreviousCatalogNumber ** 
63
RelatedCatalogItem,,** No non-empty join mapping for RelatedCatalogItem ** 
64
RelationshipType,,** No non-empty join mapping for RelationshipType ** 
65
TimeOfDay,,** No non-empty join mapping for TimeOfDay ** 
66
TypeStatus,,** No non-empty join mapping for TypeStatus ** 
58
BasisOfRecord,,** No join mapping for BasisOfRecord ** 
59
DateLastModified,,** No join mapping for DateLastModified ** 
60
JulianDay,,** No join mapping for JulianDay ** 
61
PreparationType,,** No join mapping for PreparationType ** 
62
PreviousCatalogNumber,,** No join mapping for PreviousCatalogNumber ** 
63
RelatedCatalogItem,,** No join mapping for RelatedCatalogItem ** 
64
RelationshipType,,** No join mapping for RelationshipType ** 
65
TimeOfDay,,** No join mapping for TimeOfDay ** 
66
TypeStatus,,** No join mapping for TypeStatus ** 
inputs/NY/src/specimens/VegBIEN.csv
62 62
Substrate,"/location/locationnarrative/_merge/1/_merge/2/_label[label=""substrate""]/value",
63 63
Vegetation,"/location/locationnarrative/_merge/1/_merge/3/_label[label=""vegetation""]/value",
64 64
Habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
65
BasisOfRecord,,** No non-empty join mapping for BasisOfRecord ** 
66
DateLastModified,,** No non-empty join mapping for DateLastModified ** 
67
JulianDay,,** No non-empty join mapping for JulianDay ** 
68
PreparationType,,** No non-empty join mapping for PreparationType ** 
69
PreviousCatalogNumber,,** No non-empty join mapping for PreviousCatalogNumber ** 
70
RelatedCatalogItem,,** No non-empty join mapping for RelatedCatalogItem ** 
71
RelationshipType,,** No non-empty join mapping for RelationshipType ** 
72
TimeOfDay,,** No non-empty join mapping for TimeOfDay ** 
73
TypeStatus,,** No non-empty join mapping for TypeStatus ** 
65
BasisOfRecord,,** No join mapping for BasisOfRecord ** 
66
DateLastModified,,** No join mapping for DateLastModified ** 
67
JulianDay,,** No join mapping for JulianDay ** 
68
PreparationType,,** No join mapping for PreparationType ** 
69
PreviousCatalogNumber,,** No join mapping for PreviousCatalogNumber ** 
70
RelatedCatalogItem,,** No join mapping for RelatedCatalogItem ** 
71
RelationshipType,,** No join mapping for RelationshipType ** 
72
TimeOfDay,,** No join mapping for TimeOfDay ** 
73
TypeStatus,,** No join mapping for TypeStatus ** 
74 74
key,,Not used because UniqueNYInternalRecordNumber is a better pkey
inputs/UNCC/src/specimens/VegBIEN.csv
40 40
locality,/location/locationnarrative/_merge/1,
41 41
habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
42 42
filler,,"Where used, same as family"
43
flower,,"** No non-empty join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
44
fruit,,"** No non-empty join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
45
infrarank,,** No non-empty join mapping for taxonRank/_alt/2 ** 
46
leaves,,"** No non-empty join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
47
root,,"** No non-empty join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
48
sheetno,,** No non-empty join mapping for associatedMedia ** ?
49
usdaRank,,** No non-empty join mapping for taxonRank/_alt/1 ** 
43
flower,,"** No join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
44
fruit,,"** No join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
45
infrarank,,** No join mapping for taxonRank/_alt/2 ** 
46
leaves,,"** No join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
47
root,,"** No join mapping for reproductiveCondition/_map:[A=*,I=*,M=*]/value ** Main values are A, I, and M. What do they mean?"
48
sheetno,,** No join mapping for associatedMedia ** ?
49
usdaRank,,** No join mapping for taxonRank/_alt/1 ** 
inputs/ACAD/src/specimens/VegBIEN.csv
39 39
catalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
40 40
locality,/location/locationnarrative/_merge/1,
41 41
habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
42
basisOfRecord,,** No non-empty join mapping for basisOfRecord ** 
43
bibliographicCitation,,** No non-empty join mapping for bibliographicCitation ** 
44
dynamicProperties,,** No non-empty join mapping for dynamicProperties ** 
45
geodeticDatum,,** No non-empty join mapping for geodeticDatum ** 
46
georeferenceSources,,** No non-empty join mapping for georeferenceSources ** 
47
georeferenceVerificationStatus,,** No non-empty join mapping for georeferenceVerificationStatus ** 
48
identificationRemarks,,** No non-empty join mapping for identificationRemarks ** 
49
language,,** No non-empty join mapping for language ** 
50
locationRemarks,,** No non-empty join mapping for locationRemarks ** 
51
modified,,** No non-empty join mapping for modified ** 
52
municipality,,** No non-empty join mapping for municipality ** 
53
occurrenceRemarks,,** No non-empty join mapping for occurrenceRemarks ** 
54
ownerInstitutionCode,,** No non-empty join mapping for ownerInstitutionCode ** 
55
reproductiveCondition,,** No non-empty join mapping for reproductiveCondition ** 
56
rights,,** No non-empty join mapping for rights ** 
57
rightsHolder,,** No non-empty join mapping for rightsHolder ** 
58
taxonRank,,** No non-empty join mapping for taxonRank ** 
59
type,,** No non-empty join mapping for type ** 
60
verbatimDepth,,** No non-empty join mapping for verbatimDepth ** 
42
basisOfRecord,,** No join mapping for basisOfRecord ** 
43
bibliographicCitation,,** No join mapping for bibliographicCitation ** 
44
dynamicProperties,,** No join mapping for dynamicProperties ** 
45
geodeticDatum,,** No join mapping for geodeticDatum ** 
46
georeferenceSources,,** No join mapping for georeferenceSources ** 
47
georeferenceVerificationStatus,,** No join mapping for georeferenceVerificationStatus ** 
48
identificationRemarks,,** No join mapping for identificationRemarks ** 
49
language,,** No join mapping for language ** 
50
locationRemarks,,** No join mapping for locationRemarks ** 
51
modified,,** No join mapping for modified ** 
52
municipality,,** No join mapping for municipality ** 
53
occurrenceRemarks,,** No join mapping for occurrenceRemarks ** 
54
ownerInstitutionCode,,** No join mapping for ownerInstitutionCode ** 
55
reproductiveCondition,,** No join mapping for reproductiveCondition ** 
56
rights,,** No join mapping for rights ** 
57
rightsHolder,,** No join mapping for rightsHolder ** 
58
taxonRank,,** No join mapping for taxonRank ** 
59
type,,** No join mapping for type ** 
60
verbatimDepth,,** No join mapping for verbatimDepth ** 
inputs/REMIB/src/specimens/VegBIEN.csv
27 27
lat_sec,,** No input mapping for lat_sec ** 
28 28
long_min,,** No input mapping for long_min ** 
29 29
long_sec,,** No input mapping for long_sec ** 
30
preparation,,** No non-empty join mapping for preparation ** 
30
preparation,,** No join mapping for preparation ** 
inputs/U/src/specimens/VegBIEN.csv
39 39
EW,,** No input mapping for EW ** 
40 40
Majorarea,,** No input mapping for Majorarea ** 
41 41
NS,,** No input mapping for NS ** 
42
Phenology,,** No non-empty join mapping for ReproductiveCondition ** 
42
Phenology,,** No join mapping for ReproductiveCondition ** 
43 43
Prefix,,Not used
44 44
Suffix,,Not used
inputs/ARIZ/src/specimens/VegBIEN.csv
67 67
MaximumDepthInMeters,"/location/locationevent/waterdepth/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
68 68
MinimumDepthInMeters,"/location/locationevent/waterdepth/_avg/min/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
69 69
Locality,/location/locationnarrative/_merge/1,
70
AgeClass,,** No non-empty join mapping for lifeStage ** 
71
BasisOfRecord,,** No non-empty join mapping for BasisOfRecord ** 
70
AgeClass,,** No join mapping for lifeStage ** 
71
BasisOfRecord,,** No join mapping for BasisOfRecord ** 
72 72
CatalogNumber,,Map to nothing so it doesn't overwrite CatalogNumberNumeric
73
DateLastModified,,** No non-empty join mapping for DateLastModified ** 
74
GenBankNum,,"** No non-empty join mapping for associatedSequences/_label[label=""GenBank""]/value ** "
75
GeorefMethod,,** No non-empty join mapping for georeferenceProtocol ** 
76
HigherGeography,,** No non-empty join mapping for HigherGeography ** 
73
DateLastModified,,** No join mapping for DateLastModified ** 
74
GenBankNum,,"** No join mapping for associatedSequences/_label[label=""GenBank""]/value ** "
75
GeorefMethod,,** No join mapping for georeferenceProtocol ** 
76
HigherGeography,,** No join mapping for HigherGeography ** 
77 77
HorizontalDatum,,Not used
78
Island,,** No non-empty join mapping for Island ** 
79
IslandGroup,,** No non-empty join mapping for IslandGroup ** 
80
JulianDay,,** No non-empty join mapping for JulianDay ** 
81
LatLongComments,,** No non-empty join mapping for georeferenceRemarks ** 
82
OriginalCoordinateSystem,,** No non-empty join mapping for verbatimSRS ** 
83
OtherCatalogNumbers,,** No non-empty join mapping for RelatedCatalogItem/_alt/1 ** 
84
Preparations,,** No non-empty join mapping for Preparations ** 
85
RelatedCatalogedItems,,** No non-empty join mapping for RelatedCatalogItem/_alt/2 ** Used only when OtherCatalogNumbers is NULL
86
TimeCollected,,** No non-empty join mapping for TimeOfDay ** 
78
Island,,** No join mapping for Island ** 
79
IslandGroup,,** No join mapping for IslandGroup ** 
80
JulianDay,,** No join mapping for JulianDay ** 
81
LatLongComments,,** No join mapping for georeferenceRemarks ** 
82
OriginalCoordinateSystem,,** No join mapping for verbatimSRS ** 
83
OtherCatalogNumbers,,** No join mapping for RelatedCatalogItem/_alt/1 ** 
84
Preparations,,** No join mapping for Preparations ** 
85
RelatedCatalogedItems,,** No join mapping for RelatedCatalogItem/_alt/2 ** Used only when OtherCatalogNumbers is NULL
86
TimeCollected,,** No join mapping for TimeOfDay ** 
87 87
Tissues,,Not used
88
TypeStatus,,** No non-empty join mapping for TypeStatus ** 
89
VerbatimDepth,,** No non-empty join mapping for VerbatimDepth ** 
88
TypeStatus,,** No join mapping for TypeStatus ** 
89
VerbatimDepth,,** No join mapping for VerbatimDepth ** 
inputs/GBIF/src/specimens/VegBIEN.csv
33 33
Collector,/location/locationevent/taxonoccurrence/verbatimcollectorname,
34 34
CatalogNO,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
35 35
Locality,/location/locationnarrative/_merge/1,
36
GBIFFamilyOriginal,,** No non-empty join mapping for originalNameUsage/_alt/2/_name/first ** DwC doesn't fully support taxonomic redeterminations
37
GBIFGenusOriginal,,** No non-empty join mapping for originalNameUsage/_alt/2/_name/middle ** DwC doesn't fully support taxonomic redeterminations
38
LastDateModified,,** No non-empty join mapping for DateLastModified ** 
39
ScientificNameOriginal,,** No non-empty join mapping for originalNameUsage/_alt/1 ** DwC doesn't fully support taxonomic redeterminations
36
GBIFFamilyOriginal,,** No join mapping for originalNameUsage/_alt/2/_name/first ** DwC doesn't fully support taxonomic redeterminations
37
GBIFGenusOriginal,,** No join mapping for originalNameUsage/_alt/2/_name/middle ** DwC doesn't fully support taxonomic redeterminations
38
LastDateModified,,** No join mapping for DateLastModified ** 
39
ScientificNameOriginal,,** No join mapping for originalNameUsage/_alt/1 ** DwC doesn't fully support taxonomic redeterminations
inputs/NCU-NCSC/src/specimens/VegBIEN.csv
23 23
Alt E/W,,** No input mapping for Alt E/W ** 
24 24
Alt N/S,,** No input mapping for Alt N/S ** 
25 25
FIPS,,FIPS county code
26
Format,,** No non-empty join mapping for PreparationType ** 
27
Typology,,** No non-empty join mapping for typeStatus ** 
26
Format,,** No join mapping for PreparationType ** 
27
Typology,,** No join mapping for typeStatus ** 
inputs/SpeciesLink/src/specimens/VegBIEN.csv
138 138
minimumDepthInMeters,"/location/locationevent/waterdepth/_avg/min/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
139 139
Locality,/location/locationnarrative/_merge/1,
140 140
locality,/location/locationnarrative/_merge/1,
141
BasisOfRecord,,** No non-empty join mapping for BasisOfRecord ** 
142
DateLastModified,,** No non-empty join mapping for DateLastModified ** 
143
DayOfYear,,** No non-empty join mapping for JulianDay/_alt/2 ** 
144
JulianDay,,** No non-empty join mapping for JulianDay/_alt/1 ** 
145
PreparationType,,** No non-empty join mapping for PreparationType ** 
146
PreviousCatalogNumber,,** No non-empty join mapping for PreviousCatalogNumber ** 
147
RelatedCatalogItem,,** No non-empty join mapping for RelatedCatalogItem ** 
148
RelationshipType,,** No non-empty join mapping for RelationshipType ** 
149
TimeOfDay,,** No non-empty join mapping for TimeOfDay ** 
150
TypeStatus,,** No non-empty join mapping for TypeStatus ** 
151
basisOfRecord,,** No non-empty join mapping for basisOfRecord ** 
152
day,,** No non-empty join mapping for day ** 
153
dc_terms_modified,,** No non-empty join mapping for dcterms:modified ** 
154
endDayOfYear,,** No non-empty join mapping for endDayOfYear ** 
155
eventTime,,** No non-empty join mapping for eventTime ** 
156
month,,** No non-empty join mapping for month ** 
157
occurrenceRemarks,,** No non-empty join mapping for occurrenceRemarks ** 
158
otherCatalogNumbers,,** No non-empty join mapping for otherCatalogNumbers ** 
159
preparations,,** No non-empty join mapping for preparations ** 
160
startDayOfYear,,** No non-empty join mapping for startDayOfYear ** 
161
typeStatus,,** No non-empty join mapping for typeStatus ** 
162
year,,** No non-empty join mapping for year ** 
141
BasisOfRecord,,** No join mapping for BasisOfRecord ** 
142
DateLastModified,,** No join mapping for DateLastModified ** 
143
DayOfYear,,** No join mapping for JulianDay/_alt/2 ** 
144
JulianDay,,** No join mapping for JulianDay/_alt/1 ** 
145
PreparationType,,** No join mapping for PreparationType ** 
146
PreviousCatalogNumber,,** No join mapping for PreviousCatalogNumber ** 
147
RelatedCatalogItem,,** No join mapping for RelatedCatalogItem ** 
148
RelationshipType,,** No join mapping for RelationshipType ** 
149
TimeOfDay,,** No join mapping for TimeOfDay ** 
150
TypeStatus,,** No join mapping for TypeStatus ** 
151
basisOfRecord,,** No join mapping for basisOfRecord ** 
152
day,,** No join mapping for day ** 
153
dc_terms_modified,,** No join mapping for dcterms:modified ** 
154
endDayOfYear,,** No join mapping for endDayOfYear ** 
155
eventTime,,** No join mapping for eventTime ** 
156
month,,** No join mapping for month ** 
157
occurrenceRemarks,,** No join mapping for occurrenceRemarks ** 
158
otherCatalogNumbers,,** No join mapping for otherCatalogNumbers ** 
159
preparations,,** No join mapping for preparations ** 
160
startDayOfYear,,** No join mapping for startDayOfYear ** 
161
typeStatus,,** No join mapping for typeStatus ** 
162
year,,** No join mapping for year ** 
inputs/MO/src/specimens/VegBIEN.csv
43 43
Collector,/location/locationevent/taxonoccurrence/verbatimcollectorname,
44 44
CatalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
45 45
Locality,/location/locationnarrative/_merge/1,
46
BasisOfRecord,,** No non-empty join mapping for BasisOfRecord ** 
47
DateLastModified,,** No non-empty join mapping for DateLastModified ** 
48
TypeStatus,,** No non-empty join mapping for TypeStatus ** 
46
BasisOfRecord,,** No join mapping for BasisOfRecord ** 
47
DateLastModified,,** No join mapping for DateLastModified ** 
48
TypeStatus,,** No join mapping for TypeStatus ** 
inputs/QMOR/src/specimens/VegBIEN.csv
50 50
catalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
51 51
locality,/location/locationnarrative/_merge/1,
52 52
habitat,"/location/locationnarrative/_merge/3/_label[label=""habitat""]/value","Brad: Free-text description of vegetation community where collected, frequently redundane wrt 'Vegetation'. Bob, Nick: keep as user defined or create special element?"
53
acceptedNameUsage,,** No non-empty join mapping for acceptedNameUsage ** 
54
basisOfRecord,,** No non-empty join mapping for basisOfRecord ** 
55
behavior,,** No non-empty join mapping for behavior ** 
56
bibliographicCitation,,** No non-empty join mapping for bibliographicCitation ** 
57
datasetID,,** No non-empty join mapping for datasetID ** 
58
datasetName,,** No non-empty join mapping for datasetName ** 
59
eventRemarks,,** No non-empty join mapping for eventRemarks ** 
60
eventTime,,** No non-empty join mapping for eventTime ** 
61
geodeticDatum,,** No non-empty join mapping for geodeticDatum ** 
62
georeferenceProtocol,,** No non-empty join mapping for georeferenceProtocol ** 
63
georeferenceRemarks,,** No non-empty join mapping for georeferenceRemarks ** 
64
georeferenceSources,,** No non-empty join mapping for georeferenceSources ** 
65
georeferencedBy,,** No non-empty join mapping for georeferencedBy ** 
66
georeferencedDate,,** No non-empty join mapping for georeferencedDate ** 
67
identificationRemarks,,** No non-empty join mapping for identificationRemarks ** 
68
institutionID,,** No non-empty join mapping for institutionID ** 
69
language,,** No non-empty join mapping for language ** 
70
lifeStage,,** No non-empty join mapping for lifeStage ** 
71
locationRemarks,,** No non-empty join mapping for locationRemarks ** 
72
modified,,** No non-empty join mapping for modified ** 
73
municipality,,** No non-empty join mapping for municipality ** 
74
nomenclaturalCode,,** No non-empty join mapping for nomenclaturalCode ** 
75
occurrenceRemarks,,** No non-empty join mapping for occurrenceRemarks ** 
76
ownerInstitutionCode,,** No non-empty join mapping for ownerInstitutionCode ** 
77
preparations,,** No non-empty join mapping for preparations ** 
78
rights,,** No non-empty join mapping for rights ** 
79
rightsHolder,,** No non-empty join mapping for rightsHolder ** 
80
taxonRank,,** No non-empty join mapping for taxonRank ** 
81
type,,** No non-empty join mapping for type ** 
82
typeStatus,,** No non-empty join mapping for typeStatus ** 
83
verbatimCoordinateSystem,,** No non-empty join mapping for verbatimCoordinateSystem ** 
84
verbatimCoordinates,,** No non-empty join mapping for verbatimCoordinates ** 
85
verbatimEventDate,,** No non-empty join mapping for verbatimEventDate ** 
86
verbatimSRS,,** No non-empty join mapping for verbatimSRS ** 
87
waterBody,,** No non-empty join mapping for waterBody ** 
53
acceptedNameUsage,,** No join mapping for acceptedNameUsage ** 
54
basisOfRecord,,** No join mapping for basisOfRecord ** 
55
behavior,,** No join mapping for behavior ** 
56
bibliographicCitation,,** No join mapping for bibliographicCitation ** 
57
datasetID,,** No join mapping for datasetID ** 
58
datasetName,,** No join mapping for datasetName ** 
59
eventRemarks,,** No join mapping for eventRemarks ** 
60
eventTime,,** No join mapping for eventTime ** 
61
geodeticDatum,,** No join mapping for geodeticDatum ** 
62
georeferenceProtocol,,** No join mapping for georeferenceProtocol ** 
63
georeferenceRemarks,,** No join mapping for georeferenceRemarks ** 
64
georeferenceSources,,** No join mapping for georeferenceSources ** 
65
georeferencedBy,,** No join mapping for georeferencedBy ** 
66
georeferencedDate,,** No join mapping for georeferencedDate ** 
67
identificationRemarks,,** No join mapping for identificationRemarks ** 
68
institutionID,,** No join mapping for institutionID ** 
69
language,,** No join mapping for language ** 
70
lifeStage,,** No join mapping for lifeStage ** 
71
locationRemarks,,** No join mapping for locationRemarks ** 
72
modified,,** No join mapping for modified ** 
73
municipality,,** No join mapping for municipality ** 
74
nomenclaturalCode,,** No join mapping for nomenclaturalCode ** 
75
occurrenceRemarks,,** No join mapping for occurrenceRemarks ** 
76
ownerInstitutionCode,,** No join mapping for ownerInstitutionCode ** 
77
preparations,,** No join mapping for preparations ** 
78
rights,,** No join mapping for rights ** 
79
rightsHolder,,** No join mapping for rightsHolder ** 
80
taxonRank,,** No join mapping for taxonRank ** 
81
type,,** No join mapping for type ** 
82
typeStatus,,** No join mapping for typeStatus ** 
83
verbatimCoordinateSystem,,** No join mapping for verbatimCoordinateSystem ** 
84
verbatimCoordinates,,** No join mapping for verbatimCoordinates ** 
85
verbatimEventDate,,** No join mapping for verbatimEventDate ** 
86
verbatimSRS,,** No join mapping for verbatimSRS ** 
87
waterBody,,** No join mapping for waterBody ** 
bin/union
14 14
import opts
15 15
import util
16 16

  
17
def non_empty(row): return row[0] != '' and row[1] != ''
18

  
17 19
def main():
18 20
    ignore = opts.env_flag('ignore')
19 21
    header_num = util.cast(int, opts.get_env_var('header_num'))
......
46 48
    writer.writerow(maps.merge_headers(*headers, **dict(prefer=header_num)))
47 49
    mappings = set()
48 50
    for row in map_0_reader:
49
        if not all_ and row[0] != '' and row[1] != '':
50
            mappings.add(row[0])
51
            mappings.add(row[1])
52
        writer.writerow(row)
51
        if all_ or non_empty(row):
52
            if not all_:
53
                mappings.add(row[0])
54
                mappings.add(row[1])
55
            writer.writerow(row)
53 56
    
54 57
    if combinable:
55 58
        # Add mappings in map 1 that weren't already defined or mapped to
56 59
        for row in map_1_reader:
57
            if row[0] != '' and row[0] not in mappings: writer.writerow(row)
60
            if non_empty(row) and row[0] not in mappings: writer.writerow(row)
58 61
    
59 62
    stream.close()
60 63

  
mappings/Veg+-VegBIEN.csv
373 373
PlotID,/location/sourceaccessioncode,
374 374
locationID,/location/sourceaccessioncode,
375 375
plotID,/location/sourceaccessioncode,
376
AcceptedNameUsage,
377
AcceptedNameUsageID,
378
AccessRights,
379
AssociatedMedia,
380
AssociatedOccurrences,
381
AssociatedReferences,
382
AssociatedSequences,
383
AssociatedTaxa,
384
BasisOfRecord,
385
Bed,
386
Behavior,
387
BibliographicCitation,
388
CountryCode,
389
DataGeneralizations,
390
DatasetID,
391
DatasetName,
392
DateLastModified,
393
Day,
394
Dcterms:accessRights,
395
Dcterms:bibliographicCitation,
396
Dcterms:language,
397
Dcterms:modified,
398
Dcterms:references,
399
Dcterms:rights,
400
Dcterms:rightsHolder,
401
Dcterms:type,
402
Disposition,
403
DynamicProperties,
404
EarliestAgeOrLowestStage,
405
EarliestEonOrLowestEonothem,
406
EarliestEpochOrLowestSeries,
407
EarliestEraOrLowestErathem,
408
EarliestPeriodOrLowestSystem,
409
EndDayOfYear,
410
EventID,
411
EventRemarks,
412
EventTime,
413
FootprintSRS,
414
FootprintSpatialFit,
415
Formation,
416
GeodeticDatum,
417
GeologicalContextID,
418
GeoreferenceProtocol,
419
GeoreferenceRemarks,
420
GeoreferenceSources,
421
GeoreferenceVerificationStatus,
422
GeoreferencedBy,
423
GeoreferencedDate,
424
Group,
425
HigherClassification,
426
HigherGeography,
427
HigherGeographyID,
428
HighestBiostratigraphicZone,
429
IdentificationID,
430
IdentificationReferences,
431
IdentificationRemarks,
432
IdentificationVerificationStatus,
433
InformationWithheld,
434
InstitutionID,
435
Island,
436
IslandGroup,
437
JulianDay,
438
Language,
439
LatestAgeOrHighestStage,
440
LatestEonOrHighestEonothem,
441
LatestEpochOrHighestSeries,
442
LatestEraOrHighestErathem,
443
LatestPeriodOrHighestSystem,
444
LifeStage,
445
LithostratigraphicTerms,
446
LocationAccordingTo,
447
LocationRemarks,
448
LowestBiostratigraphicZone,
449
MaximumDistanceAboveSurfaceInMeters,
450
MeasurementAccuracy,
451
MeasurementDeterminedBy,
452
MeasurementDeterminedDate,
453
MeasurementID,
454
MeasurementMethod,
455
MeasurementRemarks,
456
MeasurementType,
457
MeasurementUnit,
458
MeasurementValue,
459
Member,
460
MinimumDistanceAboveSurfaceInMeters,
461
Modified,
462
Month,
463
Municipality,
464
NameAccordingTo,
465
NameAccordingToID,
466
NamePublishedIn,
467
NamePublishedInID,
468
NamePublishedInYear,
469
NomenclaturalCode,
470
NomenclaturalStatus,
471
OccurrenceRemarks,
472
OccurrenceStatus,
473
OriginalNameUsage,
474
OriginalNameUsageID,
475
OtherCatalogNumbers,
476
OwnerInstitutionCode,
477
ParentNameUsage,
478
ParentNameUsageID,
479
PlotEventID,
480
PointRadiusSpatialFit,
481
Preparation,
482
PreparationType,
483
Preparations,
484
PreviousCatalogNumber,
485
PreviousIdentifications,
486
References,
487
RelatedCatalogItem,
488
RelatedResourceID,
489
RelationshipAccordingTo,
490
RelationshipEstablishedDate,
491
RelationshipOfResource,
492
RelationshipRemarks,
493
RelationshipType,
494
ReproductiveCondition,
495
ResourceID,
496
ResourceRelationshipID,
497
Rights,
498
RightsHolder,
499
SamplingEffort,
500
ScientificNameID,
501
StartDayOfYear,
502
Subgenus,
503
TaxonConceptID,
504
TaxonID,
505
TaxonRank,
506
TaxonomicStatus,
507
TimeOfDay,
508
Type,
509
TypeStatus,
510
VerbatimCoordinateSystem,
511
VerbatimCoordinates,
512
VerbatimDepth,
513
VerbatimEventDate,
514
VerbatimSRS,
515
VerbatimTaxonRank,
516
VernacularName,
517
WaterBody,
518
Year,
519
acceptedNameUsage,,
520
acceptedNameUsageID,,
521
accessRights,,
522
associatedMedia,,
523
associatedOccurrences,,
524
associatedReferences,,
525
associatedSequences,,
526
associatedTaxa,,
527
basisOfRecord,,Brad: OMIT? See http://rs.tdwg.org/dwc/terms/index.htm#basisOfRecord for definition of this term.
528
bed,,
529
behavior,,
530
bibliographicCitation,,
531
countryCode,,
532
dataGeneralizations,,
533
datasetID,,
534
datasetName,,
535
dateLastModified,,
536
day,,Brad: OMIT
537
dcterms:accessRights,,
538
dcterms:bibliographicCitation,,
539
dcterms:language,,
540
dcterms:modified,,"Brad: Mapping to VegX is incorrect. I think is this merely an internal timestamp indicated when record last modified, not necessarily when determination (taxon name) last modified. Probably we should omit this field, although might be useful for updating changed records from this source."
541
dcterms:references,,
542
dcterms:rights,,
543
dcterms:rightsHolder,,
544
dcterms:type,,
545
disposition,,
546
dynamicProperties,,
547
earliestAgeOrLowestStage,,
548
earliestEonOrLowestEonothem,,
549
earliestEpochOrLowestSeries,,
550
earliestEraOrLowestErathem,,
551
earliestPeriodOrLowestSystem,,
552
endDayOfYear,,
553
eventID,,
554
eventRemarks,,
555
eventTime,,Brad: OMIT
556
footprintSRS,,
557
footprintSpatialFit,,
558
formation,,
559
geodeticDatum,,
560
geologicalContextID,,
561
georeferenceProtocol,,
562
georeferenceRemarks,,
563
georeferenceSources,,
564
georeferenceVerificationStatus,,
565
georeferencedBy,,
566
georeferencedDate,,
567
group,,
568
higherClassification,,
569
higherGeography,,
570
higherGeographyID,,
571
highestBiostratigraphicZone,,
572
identificationID,,
573
identificationReferences,,
574
identificationRemarks,,
575
identificationVerificationStatus,,
576
informationWithheld,,
577
institutionID,,
578
island,,
579
islandGroup,,
580
julianDay,,
581
language,,
582
latestAgeOrHighestStage,,
583
latestEonOrHighestEonothem,,
584
latestEpochOrHighestSeries,,
585
latestEraOrHighestErathem,,
586
latestPeriodOrHighestSystem,,
587
lifeStage,,
588
lithostratigraphicTerms,,
589
locationAccordingTo,,
590
locationRemarks,,
591
lowestBiostratigraphicZone,,
592
maximumDistanceAboveSurfaceInMeters,,
593
measurementAccuracy,,
594
measurementDeterminedBy,,
595
measurementDeterminedDate,,
596
measurementID,,
597
measurementMethod,,
598
measurementRemarks,,
599
measurementType,,
600
measurementUnit,,
601
measurementValue,,
602
member,,
603
minimumDistanceAboveSurfaceInMeters,,
604
modified,,
605
month,,
606
municipality,,
607
nameAccordingTo,,
608
nameAccordingToID,,
609
namePublishedIn,,
610
namePublishedInID,,
611
namePublishedInYear,,
612
nomenclaturalCode,,
613
nomenclaturalStatus,,
614
occurrenceRemarks,,
615
occurrenceStatus,,
616
originalNameUsage,,
617
originalNameUsageID,,
618
otherCatalogNumbers,,
619
ownerInstitutionCode,,
620
parentNameUsage,,
621
parentNameUsageID,,
622
plotEventID,,
623
pointRadiusSpatialFit,,
624
preparation,,
625
preparationType,,
626
preparations,,Brad: OMIT
627
previousCatalogNumber,,According to <http://rs.tdwg.org/dwc/terms/history/index.htm#PreviousCatalogNumber-2003-06-13>
628
previousIdentifications,,Brad: OMIT
629
references,,
630
relatedCatalogItem,,
631
relatedResourceID,,Brad: OMIT
632
relationshipAccordingTo,,
633
relationshipEstablishedDate,,
634
relationshipOfResource,,Brad: OMIT
635
relationshipRemarks,,
636
relationshipType,,
637
reproductiveCondition,,
638
resourceID,,
639
resourceRelationshipID,,
640
rights,,
641
rightsHolder,,
642
samplingEffort,,
643
scientificNameID,,
644
startDayOfYear,,
645
subgenus,,
646
taxonConceptID,,
647
taxonID,,
648
taxonRank,,
649
taxonomicStatus,,
650
timeOfDay,,
651
type,,
652
typeStatus,,Brad: OMIT (?). Indicates whether this specimen served as type for taxon name. Probably not relevant for BIEN
653
verbatimCoordinateSystem,,
654
verbatimCoordinates,,
655
verbatimDepth,,
656
verbatimEventDate,,
657
verbatimSRS,,
658
verbatimTaxonRank,,
659
vernacularName,,
660
waterBody,,
661
year,,
mappings/Veg+.cs-VegBIEN.csv
186 186
slopeGradient,/location/slopegradient,
187 187
locationID,/location/sourceaccessioncode,
188 188
plotID,/location/sourceaccessioncode,
189
acceptedNameUsage,,
190
acceptedNameUsageID,,
191
accessRights,,
192
associatedMedia,,
193
associatedOccurrences,,
194
associatedReferences,,
195
associatedSequences,,
196
associatedTaxa,,
197
basisOfRecord,,Brad: OMIT? See http://rs.tdwg.org/dwc/terms/index.htm#basisOfRecord for definition of this term.
198
bed,,
199
behavior,,
200
bibliographicCitation,,
201
countryCode,,
202
dataGeneralizations,,
203
datasetID,,
204
datasetName,,
205
dateLastModified,,
206
day,,Brad: OMIT
207
dcterms:accessRights,,
208
dcterms:bibliographicCitation,,
209
dcterms:language,,
210
dcterms:modified,,"Brad: Mapping to VegX is incorrect. I think is this merely an internal timestamp indicated when record last modified, not necessarily when determination (taxon name) last modified. Probably we should omit this field, although might be useful for updating changed records from this source."
211
dcterms:references,,
212
dcterms:rights,,
213
dcterms:rightsHolder,,
214
dcterms:type,,
215
disposition,,
216
dynamicProperties,,
217
earliestAgeOrLowestStage,,
218
earliestEonOrLowestEonothem,,
219
earliestEpochOrLowestSeries,,
220
earliestEraOrLowestErathem,,
221
earliestPeriodOrLowestSystem,,
222
endDayOfYear,,
223
eventID,,
224
eventRemarks,,
225
eventTime,,Brad: OMIT
226
footprintSRS,,
227
footprintSpatialFit,,
228
formation,,
229
geodeticDatum,,
230
geologicalContextID,,
231
georeferenceProtocol,,
232
georeferenceRemarks,,
233
georeferenceSources,,
234
georeferenceVerificationStatus,,
235
georeferencedBy,,
236
georeferencedDate,,
237
group,,
238
higherClassification,,
239
higherGeography,,
240
higherGeographyID,,
241
highestBiostratigraphicZone,,
242
identificationID,,
243
identificationReferences,,
244
identificationRemarks,,
245
identificationVerificationStatus,,
246
informationWithheld,,
247
institutionID,,
248
island,,
249
islandGroup,,
250
julianDay,,
251
language,,
252
latestAgeOrHighestStage,,
253
latestEonOrHighestEonothem,,
254
latestEpochOrHighestSeries,,
255
latestEraOrHighestErathem,,
256
latestPeriodOrHighestSystem,,
257
lifeStage,,
258
lithostratigraphicTerms,,
259
locationAccordingTo,,
260
locationRemarks,,
261
lowestBiostratigraphicZone,,
262
maximumDistanceAboveSurfaceInMeters,,
263
measurementAccuracy,,
264
measurementDeterminedBy,,
265
measurementDeterminedDate,,
266
measurementID,,
267
measurementMethod,,
268
measurementRemarks,,
269
measurementType,,
270
measurementUnit,,
271
measurementValue,,
272
member,,
273
minimumDistanceAboveSurfaceInMeters,,
274
modified,,
275
month,,
276
municipality,,
277
nameAccordingTo,,
278
nameAccordingToID,,
279
namePublishedIn,,
280
namePublishedInID,,
281
namePublishedInYear,,
282
nomenclaturalCode,,
283
nomenclaturalStatus,,
284
occurrenceRemarks,,
285
occurrenceStatus,,
286
originalNameUsage,,
287
originalNameUsageID,,
288
otherCatalogNumbers,,
289
ownerInstitutionCode,,
290
parentNameUsage,,
291
parentNameUsageID,,
292
plotEventID,,
293
pointRadiusSpatialFit,,
294
preparation,,
295
preparationType,,
296
preparations,,Brad: OMIT
297
previousCatalogNumber,,According to <http://rs.tdwg.org/dwc/terms/history/index.htm#PreviousCatalogNumber-2003-06-13>
298
previousIdentifications,,Brad: OMIT
299
references,,
300
relatedCatalogItem,,
301
relatedResourceID,,Brad: OMIT
302
relationshipAccordingTo,,
303
relationshipEstablishedDate,,
304
relationshipOfResource,,Brad: OMIT
305
relationshipRemarks,,
306
relationshipType,,
307
reproductiveCondition,,
308
resourceID,,
309
resourceRelationshipID,,
310
rights,,
311
rightsHolder,,
312
samplingEffort,,
313
scientificNameID,,
314
startDayOfYear,,
315
subgenus,,
316
taxonConceptID,,
317
taxonID,,
318
taxonRank,,
319
taxonomicStatus,,
320
timeOfDay,,
321
type,,
322
typeStatus,,Brad: OMIT (?). Indicates whether this specimen served as type for taxon name. Probably not relevant for BIEN
323
verbatimCoordinateSystem,,
324
verbatimCoordinates,,
325
verbatimDepth,,
326
verbatimEventDate,,
327
verbatimSRS,,
328
verbatimTaxonRank,,
329
vernacularName,,
330
waterBody,,
331
year,,

Also available in: Unified diff