Project

General

Profile

« Previous | Next » 

Revision 4753

schemas/vegbien.sql: Added units suffix to all core VegBIEN fields that have units. It is the responsibility of the mappings to ensure that all units are properly translated.

View differences:

VegBIEN.csv
4 4
PlotID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
5 5
SiteCode,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
6 6
PlotID,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode","Brad: This is artificial internal database ID; a unique identifier within SALVIAS DB to each plot, within the table plotMetadata."
7
plot_area_ha,/location/area,"Brad: Area in hectares. Is there any way to store units?; Aaron: VegX plot area annotation says ""Total area of the plot in square meters."" so units are fixed"
8
Elev,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",Brad: Mean elevation in meters. This is a constrained decimal value; is there no place for this in VegX other than verbatimElevation? Check with Nick.
9
elev_max_m,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
10
elev_min_m,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
11
elev_min_m,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
12
elev_max_m,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/1/_replace:[""\bca\.?""=]/value",
13
elev_min_m,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/2/_rangeEnd/value/_replace:[""\bca\.?""=]/value",
14
LatDec,"/location/locationcoords/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
15
LongDec,"/location/locationcoords/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
7
plot_area_ha,/location/area_m2,"Brad: Area in hectares. Is there any way to store units?; Aaron: VegX plot area annotation says ""Total area of the plot in square meters."" so units are fixed"
8
Elev,"/location/elevation_m/_alt/1/_replace:[""\bca\.?""=]/value",Brad: Mean elevation in meters. This is a constrained decimal value; is there no place for this in VegX other than verbatimElevation? Check with Nick.
9
elev_max_m,"/location/elevation_m/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
10
elev_min_m,"/location/elevation_m/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
11
elev_min_m,"/location/elevationrange_m/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
12
elev_max_m,"/location/elevationrange_m/_range/to/_units:[default=m,to=m,to=]/value/_alt/1/_replace:[""\bca\.?""=]/value",
13
elev_min_m,"/location/elevationrange_m/_range/to/_units:[default=m,to=m,to=]/value/_alt/2/_rangeEnd/value/_replace:[""\bca\.?""=]/value",
14
LatDec,"/location/locationcoords/latitude_deg/_alt/1/_nullIf:[null=0,type=float]/value",
15
LongDec,"/location/locationcoords/longitude_deg/_alt/1/_nullIf:[null=0,type=float]/value",
16 16
PlotMethod,/location/locationevent/*_id/method/name,
17 17
project_id,/location/locationevent/*_id/project/sourceaccessioncode,
18 18
SiteCode,"/location/locationevent/_if[@name=""if subplot""]/then/_if[@name=""if event""]/then/parent_id/locationevent/*_id/location/authorlocationcode",Brad: plotCode is as-assigned by data provider; guranteed to be unique only within dataset (=project)
......
21 21
life_zone,/location/locationevent/commclass/commdetermination/*_id/commconcept/commdescription,
22 22
date_finish,/location/locationevent/obsenddate/_*/date/_alt/1,
23 23
date_start,/location/locationevent/obsstartdate/_*/date/_alt/1,
24
Precip,/location/locationevent/precipitation,
24
Precip,/location/locationevent/precipitation_m,
25 25
soil_acidity,"/location/locationevent/soilobs/acidity/_units:[default=""%"",to=]/value/_map:[""<0.05""=0,*=*]/value",
26 26
soil_base,"/location/locationevent/soilobs/basesaturation/_units:[default=""%"",to=]/value",
27 27
soil_Ca,"/location/locationevent/soilobs/calcium/_units:[default=""%"",to=]/value",
......
39 39
silt_percent,"/location/locationevent/soilobs/silt/_units:[default=""%"",to=]/value",
40 40
soil_Na,"/location/locationevent/soilobs/sodium/_units:[default=""%"",to=]/value",
41 41
soil_texture,"/location/locationevent/soilobs/texture/_units:[default=""%"",to=]/value",
42
Temp,/location/locationevent/temperature,
42
Temp,/location/locationevent/temperature_c,
43 43
Locality_Description,/location/locationnarrative/_merge/1,"Brad: No; this is free text description of locality where plot was situated, same as for DwC. Not a description of vegetation. Most likely='namedPlace.placeDescription' in VB; not sure about VX, again need to ask Nick where locality descriptions live in VX"
44 44
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?"
45 45
MajorGeo,/location/locationplace/*_id/placepath/continent,
......
47 47
pol2,/location/locationplace/*_id/placepath/county,Brad: No pol2=countyParish
48 48
PolDiv1,/location/locationplace/*_id/placepath/stateprovince,Brad: No; pol1=stateProvince
49 49
plot_notes,/location/notespublic,
50
slope_aspect,/location/slopeaspect/_alt/1/_compass/value,
51
slope_gradient,/location/slopegradient/_alt/1,
50
slope_aspect,/location/slopeaspect_deg/_alt/1/_compass/value,
51
slope_gradient,/location/slopegradient_frac/_alt/1,
52 52
AccessCode,,** No join mapping for AccessCode ** 
53 53
Country_index,,** No join mapping for Country_index ** 
54 54
ElevSource,,** No join mapping for ElevSource ** 

Also available in: Unified diff