Project

General

Profile

« Previous | Next » 

Revision 7350

inputs/UNCC/Specimen/map.csv: accession: Remapped to catalogNumber per Bob's corrections

View differences:

inputs/UNCC/Specimen/map.csv
1 1
UNCC,VegCore,Filter,Comments
2
accession,occurrenceID,,"Globally unique, although occasionally duplicated. [1]
2
accession,catalogNumber,,"Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
3 3

  
4 4
[1] Using the following query:
5 5
-----
inputs/UNCC/Specimen/VegBIEN.csv
1 1
UNCC,VegBIEN:/_setDefault:[source_id/source/shortname/_env:[name=source]]/path/_simplifyPath:[next=parent_id]/path,Comments
2
accession,"/_if[@name=""if specimen""]/cond/_exists","Globally unique, although occasionally duplicated. [1]
2
accession,"/_if[@name=""if specimen""]/cond/_exists","Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
3 3

  
4 4
[1] Using the following query:
5 5
-----
......
9 9
HAVING count(*) > 1
10 10
-----"
11 11
herbarium,"/_if[@name=""if specimen""]/else/source/shortname/_first/1",
12
accession,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/1","Globally unique, although occasionally duplicated. [1]
12
accession,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/cond/_exists","Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
13 13

  
14 14
[1] Using the following query:
15 15
-----
......
18 18
GROUP BY herbarium, accession
19 19
HAVING count(*) > 1
20 20
-----"
21
accession,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/then/_join/1/_if[@name=""if specimen""]/cond/_exists","Globally unique, although occasionally duplicated. [1]
21
accession,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/then/_join/1/_if[@name=""if specimen""]/cond/_exists","Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
22 22

  
23 23
[1] Using the following query:
24 24
-----
......
28 28
HAVING count(*) > 1
29 29
-----"
30 30
herbarium,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/then/_join/1/_if[@name=""if specimen""]/then",
31
accession,"/location/iscultivated/_or/1/_if[@name=""if TaxonOccurrence""]/cond/_exists","Globally unique, although occasionally duplicated. [1]
31
accession,"/location/_if[@name=""if subplot""]/else/authorlocationcode/_first/3/_if[@name=""if plot""]/else/_alt/2/_if[@name=""if catalogNumber""]/then/_join/3/_if[@name=""if indirect voucher""]/else","Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
32 32

  
33 33
[1] Using the following query:
34 34
-----
......
52 52
loanto,"/location/locationevent/taxonoccurrence/aggregateoccurrence/notes/_join/6/_label[label=""loaned to""]/value",
53 53
inorout,"/location/locationevent/taxonoccurrence/aggregateoccurrence/notes/_join/7/_label[label=""in or out""]/value",
54 54
collectno,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/authorplantcode/_first/2,
55
collectno,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectionnumber/_if[@name=""if indirect voucher""]/else",
56
accession,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcelist/_if[@name=""if specimen""]/cond/_exists","Globally unique, although occasionally duplicated. [1]
55
accession,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/else","Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
57 56

  
58 57
[1] Using the following query:
59 58
-----
......
62 61
GROUP BY herbarium, accession
63 62
HAVING count(*) > 1
64 63
-----"
65
herbarium,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcelist/_if[@name=""if specimen""]/then/name",
66
herbarium,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcelist/_if[@name=""if specimen""]/then/sourcename/name/_split:[separator="", ""]/value",
67
accession,/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/sourceaccessioncode,"Globally unique, although occasionally duplicated. [1]
64
collectno,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/collectionnumber/_if[@name=""if indirect voucher""]/else",
65
accession,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcelist/_if[@name=""if specimen""]/cond/_exists","Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
68 66

  
69 67
[1] Using the following query:
70 68
-----
......
73 71
GROUP BY herbarium, accession
74 72
HAVING count(*) > 1
75 73
-----"
74
herbarium,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcelist/_if[@name=""if specimen""]/then/name",
75
herbarium,"/location/locationevent/taxonoccurrence/aggregateoccurrence/plantobservation/specimenreplicate/institution_id/sourcelist/_if[@name=""if specimen""]/then/sourcename/name/_split:[separator="", ""]/value",
76 76
collectno,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/2/_first/3",
77 77
SciName,"/location/locationevent/taxonoccurrence/authortaxoncode/_if[@name=""if in plot""]/then/_first/3/_first/3",
78 78
collector,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/1,
79 79
collector1,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/2,
80 80
collector2,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/3,
81 81
collector3,/location/locationevent/taxonoccurrence/collector_id/party/fullname/_join/4,
82
accession,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists","Globally unique, although occasionally duplicated. [1]
83

  
84
[1] Using the following query:
85
-----
86
SELECT herbarium, accession, count(*)
87
FROM ""UNCC"".""Specimen""
88
GROUP BY herbarium, accession
89
HAVING count(*) > 1
90
-----"
91 82
collectno,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/cond/_exists",
92 83
cultivated,"/location/locationevent/taxonoccurrence/iscultivated/_alt/1/_if[@name=""if TaxonOccurrence""]/then/_alt/2",Ignore other values
93
accession,/location/locationevent/taxonoccurrence/sourceaccessioncode/_first/3,"Globally unique, although occasionally duplicated. [1]
94

  
95
[1] Using the following query:
96
-----
97
SELECT herbarium, accession, count(*)
98
FROM ""UNCC"".""Specimen""
99
GROUP BY herbarium, accession
100
HAVING count(*) > 1
101
-----"
102 84
usdaRank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/rank/_alt/1",
103 85
infrarank,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/_if[@name=""if has explicit parent""]/else/rank/_alt/2",
104 86
species,"/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/*_id/taxonlabel/parent_id/taxonlabel/parent_id/_forEach:[in:[cultivar,forma,variety,subspecies,],do=""taxonlabel[rank=_val]/parent_id""]/taxonlabel[rank=species]/taxonepithet",
......
125 107
SciName,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/taxonname,
126 108
usdaRank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank/_alt/1,
127 109
infrarank,/location/locationevent/taxonoccurrence/taxondetermination[!isoriginal]/*_id/taxonverbatim/verbatimrank/_alt/2,
110
accession,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/catalognumber_dwc/_if[@name=""if indirect voucher""]/then","Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
111

  
112
[1] Using the following query:
113
-----
114
SELECT herbarium, accession, count(*)
115
FROM ""UNCC"".""Specimen""
116
GROUP BY herbarium, accession
117
HAVING count(*) > 1
118
-----"
128 119
collectno,"/location/locationevent/taxonoccurrence/voucher/*_id/specimenreplicate/collectionnumber/_if[@name=""if indirect voucher""]/then",
129 120
locality,/location/locationnarrative/_merge/1,
130 121
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?"
inputs/UNCC/Specimen/test.xml.ref
7 7
                <next>parent_id</next>
8 8
                <path>
9 9
                    <location>
10
                        <authorlocationcode>$accession</authorlocationcode>
10
                        <authorlocationcode>
11
                            <_join>
12
                                <1>$herbarium</1>
13
                                <3>$accession</3>
14
                            </_join>
15
                        </authorlocationcode>
11 16
                        <iscultivated>
12 17
                            <_locationnarrative_is_cultivated>
13 18
                                <locationnarrative>
......
75 80
                                    <plantobservation>
76 81
                                        <authorplantcode>$collectno</authorplantcode>
77 82
                                        <specimenreplicate>
83
                                            <catalognumber_dwc>$accession</catalognumber_dwc>
78 84
                                            <collectionnumber>$collectno</collectionnumber>
79 85
                                            <institution_id>
80 86
                                                <sourcelist>
......
89 95
                                                    </sourcename>
90 96
                                                </sourcelist>
91 97
                                            </institution_id>
92
                                            <sourceaccessioncode>$accession</sourceaccessioncode>
93 98
                                        </specimenreplicate>
94 99
                                    </plantobservation>
95 100
                                </aggregateoccurrence>
......
106 111
                                    </party>
107 112
                                </collector_id>
108 113
                                <iscultivated>$cultivated</iscultivated>
109
                                <sourceaccessioncode>$accession</sourceaccessioncode>
110 114
                                <taxondetermination>
111 115
                                    <taxonverbatim_id>
112 116
                                        <taxonverbatim>
inputs/UNCC/Specimen/new_terms.csv
1
accession,occurrenceID,,"Globally unique, although occasionally duplicated. [1]
1
accession,catalogNumber,,"Globally unique, although occasionally duplicated. [1] Bob says this is actually the catalogNumber.
2 2

  
3 3
[1] Using the following query:
4 4
-----

Also available in: Unified diff