Skip to content

Commit b74674e

Browse files
author
tucotuco
committed
Pre-standard release 2009-05-25.
1 parent 1bbbd5a commit b74674e

38 files changed

+8321
-4013
lines changed

examples/text/example_star_archive.xml

+104-102
Large diffs are not rendered by default.

examples/text/example_text.xml

+28-25
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
1+
<?xml version="1.0" encoding="UTF-8"?>
22
<archive xmlns="http://rs.tdwg.org/dwc/text/"
3-
fileRoot="http://data.gbif.org/download/"
43
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
54
xmlns:xs="http://www.w3.org/2001/XMLSchema"
65
xsi:schemaLocation="http://rs.tdwg.org/dwc/text/ ../../text/tdwg_dwc_text.xsd"
@@ -12,33 +11,37 @@
1211
"Kew gardens, (Kew)",Plant Specimens,Tim Robertson,12,,12,20010101-12:12:01
1312
"Kew gardens, (Kew)",Plant Specimens,Markus Döring,14,,,,
1413
-->
15-
<file
14+
<core
1615
rowType="http://rs.tdwg.org/dwc/terms/text/DarwinRecord"
17-
location="occurrence-search-123255244678924570.zip"
1816
fieldsTerminatedBy=","
1917
linesTerminatedBy="\n"
2018
fieldsEnclosedBy="&quot;"
2119
compression="GZIP"
2220
encoding="UTF-8"
23-
ignoreHeaderLines="1">
24-
<!-- This is how you set a default value for a field in the file if it is empty -->
25-
<field index="3"
26-
term="http://rs.tdwg.org/dwc/terms/recordNumber"
27-
type="xs:string"
28-
default="timrobertson100"/>
29-
<field index="4"
30-
term="http://rs.tdwg.org/dwc/terms/individualCount"
31-
type="xs:integer"
32-
default="1"/>
33-
<field index="5"
34-
term="http://rs.tdwg.org/dwc/terms/fieldNumber"
35-
type="xs:integer"/>
36-
<field index="6"
37-
term="http://rs.tdwg.org/dwc/terms/eventDate"
38-
type="xs:dateTime"/>
39-
<!-- This is how you set a constant value for a field not in the file -->
40-
<field term="http://rs.tdwg.org/dwc/terms/datasetID"
41-
type="xs:string"
42-
default="urn:lsid:tim.lsid.tdwg.org:collections:1" />
43-
</file>
21+
ignoreHeaderLines="1"
22+
dateFormat="YYYYMMDD-hh:mm:ss">
23+
<files>
24+
<location>http://data.gbif.org/download/occurrence-search-123255244678924570.zip</location>
25+
</files>
26+
<id index="0"/>
27+
<field index="2"
28+
term="http://rs.tdwg.org/dwc/terms/fieldNumber"
29+
type="xs:string"
30+
default="timrobertson100"/>
31+
<field index="3"
32+
term="http://rs.tdwg.org/dwc/terms/recordNumber"
33+
type="xs:integer"/>
34+
<field index="5"
35+
term="http://rs.tdwg.org/dwc/terms/individualCount"
36+
type="xs:integer"
37+
default="1"/>
38+
<!-- ¿ format is like this ? -->
39+
<field index="6"
40+
term="http://rs.tdwg.org/dwc/terms/eventDate"
41+
type="xs:dateTime"/>
42+
<!-- A constant value -->
43+
<field term="http://rs.tdwg.org/dwc/terms/datasetID"
44+
type="xs:string"
45+
default="urn:lsid:tim.lsid.tdwg.org:collections:1" />
46+
</core>
4447
</archive>

examples/text/example_text2.xml

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<archive xmlns="http://rs.tdwg.org/dwc/text/"
3-
fileRoot="http://data.gbif.org/download/"
43
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
54
xmlns:xs="http://www.w3.org/2001/XMLSchema"
65
xsi:schemaLocation="http://rs.tdwg.org/dwc/text/ ../../text/tdwg_dwc_text.xsd">
76

8-
<file rowType="http://rs.tdwg.org/dwc/terms/Sample" location="specimens.txt">
7+
<core rowType="http://rs.tdwg.org/dwc/terms/Sample">
8+
<files>
9+
<location>http://data.gbif.org/download/specimens.txt</location>
10+
</files>
11+
<id index="0"/>
912
<field index="0" term="http://rs.tdwg.org/dwc/terms/catalogNumber"/>
1013
<field index="1" term="http://rs.tdwg.org/dwc/terms/individualCount"/>
11-
</file>
14+
</core>
1215

13-
<file rowType="http://rs.tdwg.org/dwc/terms/Identification" location="identifications.txt">
16+
<extension rowType="http://rs.tdwg.org/dwc/terms/Identification">
17+
<files>
18+
<location>http://data.gbif.org/download/identifications.txt</location>
19+
</files>
20+
<coreid index="2"/>
1421
<field index="0" term="http://rs.tdwg.org/dwc/terms/identificationID"/>
1522
<field index="1" term="http://rs.tdwg.org/dwc/terms/identifiedBy"/>
1623
<field index="2" term="http://rs.tdwg.org/dwc/terms/catalogNumber"/>
1724
<field index="3" term="http://rs.tdwg.org/dwc/terms/scientificName"/>
18-
</file>
19-
20-
<relationships>
21-
<relationship>
22-
<file location="specimens.txt" fieldIndex="0"/>
23-
<file location="identifications.txt" fieldIndex="2"/>
24-
</relationship>
25-
</relationships>
25+
</extension>
26+
2627
</archive>

examples/text/example_text_simpledwc_complete.xml

+106-104
Large diffs are not rendered by default.

examples/text/simplemetafile.xml

+165
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<archive xmlns="http://rs.tdwg.org/dwc/text/"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
5+
xsi:schemaLocation="http://rs.tdwg.org/dwc/text/ ../../text/tdwg_dwc_text.xsd"
6+
>
7+
8+
<!--
9+
This metafile defines the structure of a gzip-archived csv text document
10+
containing all Simple Darwin Core terms
11+
in a header row in the file matching the order presented below and
12+
having fields separated by commas,
13+
lines terminated with the new line character,
14+
with optional double quote around field content, and
15+
in the utf8 character encoding
16+
to be found in the file called occurrence-search-123255244678924570.zip
17+
at the address http://data.gbif.org/download/.
18+
-->
19+
<core
20+
rowType="http://rs.tdwg.org/dwc/terms/text/DarwinRecord"
21+
fieldsTerminatedBy=","
22+
linesTerminatedBy="\n"
23+
fieldsEnclosedBy="&quot;"
24+
compression="GZIP"
25+
encoding="UTF-8"
26+
ignoreHeaderLines="1">
27+
<files>
28+
<location>http://data.gbif.org/download/occurrence-search-123255244678924570.zip</location>
29+
</files>
30+
31+
<id index="0"/>
32+
33+
<field index="1" term="http://purl.org/dc/terms/type" type="xs:string"/>
34+
<field index="2" term="http://purl.org/dc/terms/modified" type="xs:dateTime"/>
35+
<field index="3" term="http://purl.org/dc/terms/language" type="xs:string"/>
36+
<field index="4" term="http://purl.org/dc/terms/rights" type="xs:string"/>
37+
<field index="5" term="http://purl.org/dc/terms/rightsHolder" type="xs:string"/>
38+
<field index="6" term="http://purl.org/dc/terms/accessRights" type="xs:string"/>
39+
<field index="7" term="http://purl.org/dc/terms/bibliographicCitation" type="xs:string"/>
40+
<field index="8" term="http://rs.tdwg.org/dwc/terms/basisOfRecord" type="xs:string"/>
41+
<field index="9" term="http://rs.tdwg.org/dwc/terms/informationWithheld" type="xs:string"/>
42+
<field index="10" term="http://rs.tdwg.org/dwc/terms/dataGeneralizations" type="xs:string"/>
43+
<field index="11" term="http://rs.tdwg.org/dwc/terms/dynamicProperties" type="xs:string"/>
44+
45+
<field index="12" term="http://rs.tdwg.org/dwc/terms/datasetID" type="xs:string"/>
46+
47+
<field index="12" term="http://rs.tdwg.org/dwc/terms/occurrenceID" type="xs:string"/>
48+
<field index="13" term="http://rs.tdwg.org/dwc/terms/institutionCode" type="xs:string"/>
49+
<field index="14" term="http://rs.tdwg.org/dwc/terms/collectionCode" type="xs:string"/>
50+
<field index="15" term="http://rs.tdwg.org/dwc/terms/collectionID" type="xs:string"/>
51+
<field index="16" term="http://rs.tdwg.org/dwc/terms/catalogNumber" type="xs:string"/>
52+
<field index="17" term="http://rs.tdwg.org/dwc/terms/occurrenceDetails" type="xs:string"/>
53+
<field index="18" term="http://rs.tdwg.org/dwc/terms/occurrenceRemarks" type="xs:string"/>
54+
<field index="19" term="http://rs.tdwg.org/dwc/terms/recordNumber" type="xs:string"/>
55+
<field index="20" term="http://rs.tdwg.org/dwc/terms/recordedBy" type="xs:string"/>
56+
<field index="21" term="http://rs.tdwg.org/dwc/terms/individualID" type="xs:string"/>
57+
<field index="22" term="http://rs.tdwg.org/dwc/terms/individualCount" type="xs:nonNegativeInteger"/>
58+
<field index="23" term="http://rs.tdwg.org/dwc/terms/sex" type="xs:string"/>
59+
<field index="24" term="http://rs.tdwg.org/dwc/terms/lifeStage" type="xs:string"/>
60+
<field index="25" term="http://rs.tdwg.org/dwc/terms/reproductiveCondition" type="xs:string"/>
61+
<field index="26" term="http://rs.tdwg.org/dwc/terms/behavior" type="xs:string"/>
62+
<field index="27" term="http://rs.tdwg.org/dwc/terms/establishmentMeans" type="xs:string"/>
63+
<field index="28" term="http://rs.tdwg.org/dwc/terms/preparations" type="xs:string"/>
64+
<field index="29" term="http://rs.tdwg.org/dwc/terms/disposition" type="xs:string"/>
65+
<field index="30" term="http://rs.tdwg.org/dwc/terms/otherCatalogNumbers" type="xs:string"/>
66+
<field index="31" term="http://rs.tdwg.org/dwc/terms/previousIdentifications" type="xs:string"/>
67+
<field index="32" term="http://rs.tdwg.org/dwc/terms/associatedMedia" type="xs:string"/>
68+
<field index="33" term="http://rs.tdwg.org/dwc/terms/associatedReferences" type="xs:string"/>
69+
<field index="34" term="http://rs.tdwg.org/dwc/terms/associatedOccurrences" type="xs:string"/>
70+
<field index="35" term="http://rs.tdwg.org/dwc/terms/associatedSequences" type="xs:string"/>
71+
<field index="36" term="http://rs.tdwg.org/dwc/terms/associatedTaxa" type="xs:string"/>
72+
73+
<field index="37" term="http://rs.tdwg.org/dwc/terms/eventID" type="xs:string"/>
74+
<field index="38" term="http://rs.tdwg.org/dwc/terms/samplingProtocol" type="xs:string"/>
75+
<field index="39" term="http://rs.tdwg.org/dwc/terms/verbatimEventDate" type="xs:string"/>
76+
<field index="40" term="http://rs.tdwg.org/dwc/terms/eventDate" type="xs:dateTime"/>
77+
<field index="41" term="http://rs.tdwg.org/dwc/terms/eventTime" type="xs:dateTime"/>
78+
<field index="42" term="http://rs.tdwg.org/dwc/terms/startDayOfYear" type="xs:nonNegativeInteger"/>
79+
<field index="43" term="http://rs.tdwg.org/dwc/terms/endDayOfYear" type="xs:nonNegativeInteger"/>
80+
<field index="44" term="http://rs.tdwg.org/dwc/terms/year" type="xs:nonNegativeInteger"/>
81+
<field index="45" term="http://rs.tdwg.org/dwc/terms/month" type="xs:nonNegativeInteger"/>
82+
<field index="46" term="http://rs.tdwg.org/dwc/terms/day" type="xs:nonNegativeInteger"/>
83+
<field index="47" term="http://rs.tdwg.org/dwc/terms/habitat" type="xs:string"/>
84+
<field index="48" term="http://rs.tdwg.org/dwc/terms/fieldNumber" type="xs:string"/>
85+
<field index="49" term="http://rs.tdwg.org/dwc/terms/fieldNotes" type="xs:string"/>
86+
<field index="50" term="http://rs.tdwg.org/dwc/terms/eventRemarks" type="xs:string"/>
87+
88+
<field index="51" term="http://rs.tdwg.org/dwc/terms/locationID" type="xs:string"/>
89+
<field index="52" term="http://rs.tdwg.org/dwc/terms/higherGeographyID" type="xs:string"/>
90+
<field index="53" term="http://rs.tdwg.org/dwc/terms/higherGeography" type="xs:string"/>
91+
<field index="54" term="http://rs.tdwg.org/dwc/terms/continent" type="xs:string"/>
92+
<field index="55" term="http://rs.tdwg.org/dwc/terms/waterBody" type="xs:string"/>
93+
<field index="56" term="http://rs.tdwg.org/dwc/terms/islandGroup" type="xs:string"/>
94+
<field index="57" term="http://rs.tdwg.org/dwc/terms/island" type="xs:string"/>
95+
<field index="58" term="http://rs.tdwg.org/dwc/terms/country" type="xs:string"/>
96+
<field index="59" term="http://rs.tdwg.org/dwc/terms/countryCode" type="xs:string"/>
97+
<field index="60" term="http://rs.tdwg.org/dwc/terms/stateProvince" type="xs:string"/>
98+
<field index="61" term="http://rs.tdwg.org/dwc/terms/county" type="xs:string"/>
99+
<field index="62" term="http://rs.tdwg.org/dwc/terms/locality" type="xs:string"/>
100+
<field index="63" term="http://rs.tdwg.org/dwc/terms/verbatimLocality" type="xs:string"/>
101+
<field index="64" term="http://rs.tdwg.org/dwc/terms/verbatimElevation" type="xs:string"/>
102+
<field index="65" term="http://rs.tdwg.org/dwc/terms/minimumElevationInMeters" type="xs:double"/>
103+
<field index="66" term="http://rs.tdwg.org/dwc/terms/maximumElevationInMeters" type="xs:double"/>
104+
<field index="67" term="http://rs.tdwg.org/dwc/terms/verbatimDepth" type="xs:string"/>
105+
<field index="68" term="http://rs.tdwg.org/dwc/terms/minimumDepthInMeters" type="xs:double"/>
106+
<field index="69" term="http://rs.tdwg.org/dwc/terms/maximumDepthInMeters" type="xs:double"/>
107+
<field index="70" term="http://rs.tdwg.org/dwc/terms/minimumDistanceAboveSurfaceInMeters" type="xs:double"/>
108+
<field index="71" term="http://rs.tdwg.org/dwc/terms/maximumDistanceAboveSurfaceInMeters" type="xs:double"/>
109+
<field index="72" term="http://rs.tdwg.org/dwc/terms/locationRemarks" type="xs:string"/>
110+
<field index="73" term="http://rs.tdwg.org/dwc/terms/verbatimCoordinates" type="xs:string"/>
111+
<field index="74" term="http://rs.tdwg.org/dwc/terms/verbatimLatitude" type="xs:string"/>
112+
<field index="75" term="http://rs.tdwg.org/dwc/terms/verbatimLongitude" type="xs:string"/>
113+
<field index="76" term="http://rs.tdwg.org/dwc/terms/verbatimCoordinateSystem" type="xs:string"/>
114+
<field index="77" term="http://rs.tdwg.org/dwc/terms/decimalLatitude" type="xs:double"/>
115+
<field index="78" term="http://rs.tdwg.org/dwc/terms/decimalLongitude" type="xs:double"/>
116+
<field index="79" term="http://rs.tdwg.org/dwc/terms/geodeticDatum" type="xs:string"/>
117+
<field index="80" term="http://rs.tdwg.org/dwc/terms/coordinateUncertaintyInMeters" type="xs:double"/>
118+
<field index="81" term="http://rs.tdwg.org/dwc/terms/coordinatePrecision" type="xs:string"/>
119+
<field index="82" term="http://rs.tdwg.org/dwc/terms/pointRadiusSpatialFit" type="xs:double"/>
120+
<field index="83" term="http://rs.tdwg.org/dwc/terms/footprintWKT" type="xs:string"/>
121+
<field index="84" term="http://rs.tdwg.org/dwc/terms/footprintSpatialFit" type="xs:double"/>
122+
<field index="85" term="http://rs.tdwg.org/dwc/terms/georeferencedBy" type="xs:string"/>
123+
<field index="86" term="http://rs.tdwg.org/dwc/terms/georeferenceProtocol" type="xs:string"/>
124+
<field index="87" term="http://rs.tdwg.org/dwc/terms/georeferenceSources" type="xs:string"/>
125+
<field index="88" term="http://rs.tdwg.org/dwc/terms/georeferenceVerificationStatus" type="xs:string"/>
126+
<field index="89" term="http://rs.tdwg.org/dwc/terms/georeferenceRemarks" type="xs:string"/>
127+
128+
<field index="90" term="http://rs.tdwg.org/dwc/terms/identificationID" type="xs:string"/>
129+
<field index="91" term="http://rs.tdwg.org/dwc/terms/identifiedBy" type="xs:string"/>
130+
<field index="92" term="http://rs.tdwg.org/dwc/terms/dateIdentified" type="xs:dateTime"/>
131+
<field index="93" term="http://rs.tdwg.org/dwc/terms/identificationReferences" type="xs:string"/>
132+
<field index="94" term="http://rs.tdwg.org/dwc/terms/identificationRemarks" type="xs:string"/>
133+
<field index="95" term="http://rs.tdwg.org/dwc/terms/identificationQualifier" type="xs:string"/>
134+
<field index="96" term="http://rs.tdwg.org/dwc/terms/typeStatus" type="xs:string"/>
135+
136+
<field index="97" term="http://rs.tdwg.org/dwc/terms/taxonNameID" type="xs:string"/>
137+
<field index="98" term="http://rs.tdwg.org/dwc/terms/acceptedTaxonNameID" type="xs:string"/>
138+
<field index="99" term="http://rs.tdwg.org/dwc/terms/higherTaxonNameID" type="xs:string"/>
139+
<field index="100" term="http://rs.tdwg.org/dwc/terms/basionymID" type="xs:string"/>
140+
<field index="101" term="http://rs.tdwg.org/dwc/terms/scientificName" type="xs:string"/>
141+
<field index="102" term="http://rs.tdwg.org/dwc/terms/acceptedTaxonName" type="xs:string"/>
142+
<field index="103" term="http://rs.tdwg.org/dwc/terms/higherTaxonName" type="xs:string"/>
143+
<field index="104" term="http://rs.tdwg.org/dwc/terms/basionym" type="xs:string"/>
144+
<field index="105" term="http://rs.tdwg.org/dwc/terms/kingdom" type="xs:string"/>
145+
<field index="106" term="http://rs.tdwg.org/dwc/terms/phylum" type="xs:string"/>
146+
<field index="107" term="http://rs.tdwg.org/dwc/terms/class" type="xs:string"/>
147+
<field index="108" term="http://rs.tdwg.org/dwc/terms/order" type="xs:string"/>
148+
<field index="109" term="http://rs.tdwg.org/dwc/terms/family" type="xs:string"/>
149+
<field index="110" term="http://rs.tdwg.org/dwc/terms/genus" type="xs:string"/>
150+
<field index="111" term="http://rs.tdwg.org/dwc/terms/subgenus" type="xs:string"/>
151+
<field index="112" term="http://rs.tdwg.org/dwc/terms/specificEpithet" type="xs:string"/>
152+
<field index="113" term="http://rs.tdwg.org/dwc/terms/infraspecificEpithet" type="xs:string"/>
153+
<field index="114" term="http://rs.tdwg.org/dwc/terms/taxonRank" type="xs:string"/>
154+
<field index="115" term="http://rs.tdwg.org/dwc/terms/scientificNameAuthorship" type="xs:string"/>
155+
<field index="116" term="http://rs.tdwg.org/dwc/terms/nomenclaturalCode" type="xs:string"/>
156+
<field index="117" term="http://rs.tdwg.org/dwc/terms/namePublicationID" type="xs:string"/>
157+
<field index="118" term="http://rs.tdwg.org/dwc/terms/namePublishedIn" type="xs:string"/>
158+
<field index="119" term="http://rs.tdwg.org/dwc/terms/taxonomicStatus" type="xs:string"/>
159+
<field index="120" term="http://rs.tdwg.org/dwc/terms/nomenclaturalStatus" type="xs:string"/>
160+
<field index="121" term="http://rs.tdwg.org/dwc/terms/taxonRemarks" type="xs:string"/>
161+
<field index="122" term="http://rs.tdwg.org/dwc/terms/taxonConceptID" type="xs:string"/>
162+
<field index="123" term="http://rs.tdwg.org/dwc/terms/taxonAccordingTo" type="xs:string"/>
163+
164+
</core>
165+
</archive>

examples/xml/example_classes_observation.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<dcterms:Location>
99
<dwc:locationID>http://guid.mvz.org/sites/arg/127</dwc:locationID>
1010
<dwc:country>Argentina</dwc:country>
11-
<dwc:countryCode>ARG</dwc:countryCode>
11+
<dwc:countryCode>AR</dwc:countryCode>
1212
<dwc:stateProvince>Neuquén</dwc:stateProvince>
1313
<dwc:locality>Valle Limay, Estancia Rincon Grande, 48 ha area with centroid at this point</dwc:locality>
1414
<dwc:decimalLatitude>-40.97467</dwc:decimalLatitude>
1515
<dwc:decimalLongitude>-71.0734</dwc:decimalLongitude>
16-
<dwc:geodeticDatum>WGS84</dwc:geodeticDatum>
16+
<dwc:geodeticDatum>epsg:4326</dwc:geodeticDatum>
1717
<dwc:coordinateUncertaintyInMeters>200</dwc:coordinateUncertaintyInMeters>
1818
</dcterms:Location>
1919
<dwc:Event>

0 commit comments

Comments
 (0)