Project

General

Profile

« Previous | Next » 

Revision 4726

schemas/vegbien.sql: Split locationdetermination into locationcoords and locationplace, so that coordinate determinations can be made separately from place determinations

View differences:

VegBIEN.csv
3 3
SeriesName,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/2/_join/1",
4 4
Barcode,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_alt/2/_join/3/_if[@name=""if indirect voucher""]/else",
5 5
Elevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
6
Accuracy,/location/locationdetermination/coordsaccuracy/_noCV/value/_alt/1,
7
Lat (-=S),"/location/locationdetermination/latitude/_alt/2/_nullIf:[null=0,type=float]/value/_replace:[""\?$""=]/value",
8
Long (-=W),"/location/locationdetermination/longitude/_alt/2/_nullIf:[null=0,type=float]/value/_replace:[""\?$""=]/value",
9
County,"/location/locationdetermination/namedplace_id/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
10
State,"/location/locationdetermination/namedplace_id/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
11
Country,"/location/locationdetermination/namedplace_id/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
6
Accuracy,/location/locationcoords/coordsaccuracy/_noCV/value/_alt/1,
7
Lat (-=S),"/location/locationcoords/latitude/_alt/2/_nullIf:[null=0,type=float]/value/_replace:[""\?$""=]/value",
8
Long (-=W),"/location/locationcoords/longitude/_alt/2/_nullIf:[null=0,type=float]/value/_replace:[""\?$""=]/value",
12 9
Collect Date,/location/locationevent/taxonoccurrence/aggregateoccurrence/collectiondate/_alt/1/_*/date,
13 10
Barcode,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else",
14 11
SeriesName,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectioncode_dwc/_join/1,Brad: Not sure if mapping correct. DwC element; code for entire collection; often same as InstitutionCode; Aaron: Combining with InstitutionCode to create collection name
......
17 14
Cultivated?,/location/locationevent/taxonoccurrence/iscultivated/_alt/1,
18 15
Full Taxon Name,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonpath/scientificname,
19 16
Barcode,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
17
County,"/location/locationplace/namedplace_id/_forEach:[in:[],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",
18
State,"/location/locationplace/namedplace_id/_forEach:[in:[county,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",
19
Country,"/location/locationplace/namedplace_id/_forEach:[in:[county,stateProvince,],do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",
20 20
Alt E/W,,** No join mapping for Alt E/W ** 
21 21
Alt N/S,,** No join mapping for Alt N/S ** 
22 22
FIPS,,** No join mapping for FIPS ** FIPS county code

Also available in: Unified diff