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:

VegCore-VegBIEN.csv
13 13
locationID,"/location/_if[@name=""if subplot""]/else/sourceaccessioncode",
14 14
plotName,"/location/_if[@name=""if subplot""]/then/parent_id/location/authorlocationcode",
15 15
locationID,"/location/_if[@name=""if subplot""]/then/parent_id/location/sourceaccessioncode",
16
plotArea,/location/area,
16
plotArea,/location/area_m2,
17 17
subplot,/location/authorlocationcode,
18
verbatimElevation,"/location/elevation/_alt/1/_replace:[""\bca\.?""=]/value",
19
maximumElevationInMeters,"/location/elevation/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
20
minimumElevationInMeters,"/location/elevation/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
21
minimumElevationInMeters,"/location/elevationrange/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
22
maximumElevationInMeters,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/1/_replace:[""\bca\.?""=]/value",
23
minimumElevationInMeters,"/location/elevationrange/_range/to/_units:[default=m,to=m,to=]/value/_alt/2/_rangeEnd/value/_replace:[""\bca\.?""=]/value",
18
verbatimElevation,"/location/elevation_m/_alt/1/_replace:[""\bca\.?""=]/value",
19
maximumElevationInMeters,"/location/elevation_m/_alt/2/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
20
minimumElevationInMeters,"/location/elevation_m/_alt/2/_avg/min/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
21
minimumElevationInMeters,"/location/elevationrange_m/_range/from/_units:[default=m,to=m,to=]/value/_rangeStart/value/_replace:[""\bca\.?""=]/value",
22
maximumElevationInMeters,"/location/elevationrange_m/_range/to/_units:[default=m,to=m,to=]/value/_alt/1/_replace:[""\bca\.?""=]/value",
23
minimumElevationInMeters,"/location/elevationrange_m/_range/to/_units:[default=m,to=m,to=]/value/_alt/2/_rangeEnd/value/_replace:[""\bca\.?""=]/value",
24 24
landform,/location/landform,
25
coordinateUncertaintyInMeters,/location/locationcoords/coordsaccuracy/_noCV/value/_alt/1,
26
coordinatePrecision,/location/locationcoords/coordsaccuracy/_noCV/value/_alt/2,
25
coordinateUncertaintyInMeters,/location/locationcoords/coordsaccuracy_deg/_noCV/value/_alt/1,
26
coordinatePrecision,/location/locationcoords/coordsaccuracy_deg/_noCV/value/_alt/2,
27 27
footprintWKT,/location/locationcoords/footprintgeometry_dwc,
28
decimalLatitude,"/location/locationcoords/latitude/_alt/1/_nullIf:[null=0,type=float]/value",
29
verbatimLatitude,"/location/locationcoords/latitude/_alt/2/_nullIf:[null=0,type=float]/value",
30
decimalLongitude,"/location/locationcoords/longitude/_alt/1/_nullIf:[null=0,type=float]/value",
31
verbatimLongitude,"/location/locationcoords/longitude/_alt/2/_nullIf:[null=0,type=float]/value",
28
decimalLatitude,"/location/locationcoords/latitude_deg/_alt/1/_nullIf:[null=0,type=float]/value",
29
verbatimLatitude,"/location/locationcoords/latitude_deg/_alt/2/_nullIf:[null=0,type=float]/value",
30
decimalLongitude,"/location/locationcoords/longitude_deg/_alt/1/_nullIf:[null=0,type=float]/value",
31
verbatimLongitude,"/location/locationcoords/longitude_deg/_alt/2/_nullIf:[null=0,type=float]/value",
32 32
samplingProtocol,/location/locationevent/*_id/method/name,
33 33
projectName,/location/locationevent/*_id/project/projectname,
34 34
projectID,/location/locationevent/*_id/project/sourceaccessioncode,
......
48 48
eventDate,/location/locationevent/obsenddate/_*/date/_alt/2/_dateRangeEnd/value,
49 49
startDate,/location/locationevent/obsstartdate/_*/date/_alt/1,
50 50
eventDate,/location/locationevent/obsstartdate/_*/date/_alt/2/_dateRangeStart/value,
51
precipitation,/location/locationevent/precipitation,
51
precipitation,/location/locationevent/precipitation_m,
52 52
acidity,/location/locationevent/soilobs/acidity,
53 53
baseSaturation,/location/locationevent/soilobs/basesaturation,
54 54
calcium,/location/locationevent/soilobs/calcium,
......
86 86
occurrenceID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,
87 87
stemCount,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemcount,
88 88
authorStemCode,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/authorstemcode,
89
basalDiameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/basaldiameter,
89
basalDiameter,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/basaldiameter_m,
90 90
canopyForm,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyForm]]:[@fkey=tablerecord_id]/definedvalue",
91 91
canopyPosition,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=canopyPosition]]:[@fkey=tablerecord_id]/definedvalue",
92 92
diameterBreastHeightGentry,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=gentryDiameter]]:[@fkey=tablerecord_id]/definedvalue",
93 93
lianaInfestation,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=lianaInfestation]]:[@fkey=tablerecord_id]/definedvalue",
94 94
stemNotes,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/definedvalue[*_id/userdefined[tablename=stemobservation,userdefinedname=notes]]:[@fkey=tablerecord_id]/definedvalue",
95
diameterBreastHeight,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight,
96
height,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height,
97
heightFirstBranch,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/heightfirstbranch,
95
diameterBreastHeight,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/diameterbreastheight_m,
96
height,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/height_m,
97
heightFirstBranch,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/heightfirstbranch_m,
98 98
stemID,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/sourceaccessioncode,
99 99
tag,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/stemtag[""""/iscurrent/_alt/2=true]/tag",Quotes sort it before tag2
100 100
previousTag,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/stemtag[iscurrent=true]:[../stemtag?[iscurrent/_alt/2=true]/iscurrent/_alt/1=false]/tag,
101
organismX,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/xposition,
102
organismY,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/yposition,
101
organismX,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/xposition_m,
102
organismY,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/stemobservation/yposition_m,
103 103
recordNumber,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/1,
104 104
verbatimScientificName,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/2/_alt/1,
105 105
scientificNameWithAuthorship,/location/locationevent/taxonoccurrence/authortaxoncode/_alt/2/_alt/2,
......
152 152
recordedBy.surName,/location/locationevent/taxonoccurrence/verbatimcollectorname/_name/last,
153 153
voucherType,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/cond/_eq:[right=indirect]/left",
154 154
catalogNumber,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then",
155
temperature,/location/locationevent/temperature,
156
maximumDepthInMeters,"/location/locationevent/waterdepth/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
157
minimumDepthInMeters,"/location/locationevent/waterdepth/_avg/min/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
155
temperature,/location/locationevent/temperature_c,
156
maximumDepthInMeters,"/location/locationevent/waterdepth_m/_avg/max/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
157
minimumDepthInMeters,"/location/locationevent/waterdepth_m/_avg/min/_units:[default=m,to=m,to=]/value/_replace:[""\bca\.?""=]/value",
158 158
locality,/location/locationnarrative/_merge/1,
159 159
verbatimLocality,/location/locationnarrative/_merge/2,
160 160
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?"
......
163 163
county,/location/locationplace/*_id/placepath/county,
164 164
stateProvince,/location/locationplace/*_id/placepath/stateprovince,
165 165
plotNotes,/location/notespublic,
166
slopeAspect,/location/slopeaspect/_alt/1/_compass/value,
167
maxSlopeAspect,/location/slopeaspect/_alt/2/_avg/max,
168
minSlopeAspect,/location/slopeaspect/_alt/2/_avg/min,
169
slopeGradient,/location/slopegradient/_alt/1,
170
maxSlopeGradient,/location/slopegradient/_alt/2/_avg/max,
171
minSlopeGradient,/location/slopegradient/_alt/2/_avg/min,
166
slopeAspect,/location/slopeaspect_deg/_alt/1/_compass/value,
167
maxSlopeAspect,/location/slopeaspect_deg/_alt/2/_avg/max,
168
minSlopeAspect,/location/slopeaspect_deg/_alt/2/_avg/min,
169
slopeGradient,/location/slopegradient_frac/_alt/1,
170
maxSlopeGradient,/location/slopegradient_frac/_alt/2/_avg/max,
171
minSlopeGradient,/location/slopegradient_frac/_alt/2/_avg/min,
172 172
subplotID,/location/sourceaccessioncode,
173
subplotX,/location/sublocationxposition,
174
subplotY,/location/sublocationyposition,
173
subplotX,/location/sublocationxposition_m,
174
subplotY,/location/sublocationyposition_m,

Also available in: Unified diff