Project

General

Profile

« Previous | Next » 

Revision 1351

xpath_func.py: _forEach: Made syntax more natural-looking by using values instead of names for string args and attrs instead of branches for array args

View differences:

DwC2-VegBIEN.specimens.csv
1 1
"DwC::[@xmlns:dcterms=""http://purl.org/dc/terms/""]/list:[institutionID=$/_ignore/inLabel]/",VegBIEN:/specimenreplicate,Comments,Order
2 2
coordinatePrecision,//locationdetermination/coordsaccuracy/_noCV/value,,89
3 3
footprintWKT,//locationdetermination/footprintgeometry_dwc,,91
4
country,"//locationdetermination/namedplace_id/_simplifyPath/path/_forEach:[./{county,stateProvince},""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",Brad: Required; reject record if this field NULL,63
5
stateProvince,"//locationdetermination/namedplace_id/_simplifyPath/path/_forEach:[./{county},""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",,65
6
county,//locationdetermination/namedplace_id/_simplifyPath/path/namedplace[rank=county]/placename,,66
4
county,"//locationdetermination/namedplace_id/_simplifyPath/path/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=county]/placename",,66
5
country,"//locationdetermination/namedplace_id/_simplifyPath/path/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=country]/placename",Brad: Required; reject record if this field NULL,63
6
stateProvince,"//locationdetermination/namedplace_id/_simplifyPath/path/_forEach:[do=""namedplace[rank=_val]/parent_id""]/namedplace[rank=stateProvince]/placename",,65
7 7
locality,//location/locationnarrative/_merge/1,,68
8 8
verbatimLocality,//location/locationnarrative/_merge/2,"Brad: Correct for VB; Nick, is there no specific element for locality description in VegX? Definitely need one.",69
9 9
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?",52

Also available in: Unified diff