Revision 849
Added by Matt Jones about 23 years ago
lib/dtd/eml-physical-2.0.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
'$RCSfile$' |
|
3 |
Copyright: 2000 Regents of the University of California and the |
|
4 |
National Center for Ecological Analysis and Synthesis |
|
5 |
For Details: http://knb.ecoinformatics.org/ |
|
6 |
|
|
7 |
'$Author$' |
|
8 |
'$Date$' |
|
9 |
'$Revision$' |
|
10 |
|
|
11 |
This program is free software; you can redistribute it and/or modify |
|
12 |
it under the terms of the GNU General Public License as published by |
|
13 |
the Free Software Foundation; either version 2 of the License, or |
|
14 |
(at your option) any later version. |
|
15 |
|
|
16 |
This program is distributed in the hope that it will be useful, |
|
17 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 |
GNU General Public License for more details. |
|
20 |
|
|
21 |
You should have received a copy of the GNU General Public License |
|
22 |
along with this program; if not, write to the Free Software |
|
23 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
24 |
--> |
|
25 |
<!-- EML DTD document that defines the structural |
|
26 |
characteristics of physical objects --> |
|
27 |
<!-- The root element, which contains an identifier and |
|
28 |
an physical description --> |
|
29 |
<!ELEMENT eml-physical (identifier, format, characterEncoding?, size?, authentication*, compressionMethod?, |
|
30 |
encodingMethod?, numHeaderLines?, recordDelimiter?, maxRecordLength?, |
|
31 |
quoteCharacter*, literalCharacter*, (fieldStartColumn?, (fieldDelimiter | fieldWidth))* )> |
|
32 |
<!-- File identifier of the metadata document --> |
|
33 |
<!ELEMENT identifier (#PCDATA)> |
|
34 |
<!ATTLIST identifier |
|
35 |
system CDATA #IMPLIED |
|
36 |
> |
|
37 |
<!-- size --> |
|
38 |
<!ELEMENT size (#PCDATA)> |
|
39 |
<!ATTLIST size |
|
40 |
unit CDATA "bytes" |
|
41 |
> |
|
42 |
<!-- Authentication value and method --> |
|
43 |
<!ELEMENT authentication (#PCDATA)> |
|
44 |
<!ATTLIST authentication |
|
45 |
method CDATA #IMPLIED |
|
46 |
> |
|
47 |
<!-- Entity format (e.g., text, name of various binary formats [TIFF]) --> |
|
48 |
<!ELEMENT format (#PCDATA)> |
|
49 |
<!-- characterEncoding fro text files (e.g., ASCII, UTF-8) --> |
|
50 |
<!ELEMENT characterEncoding (#PCDATA)> |
|
51 |
<!-- Method of compression --> |
|
52 |
<!ELEMENT compressionMethod (#PCDATA)> |
|
53 |
<!-- Method of encoding --> |
|
54 |
<!ELEMENT encodingMethod (#PCDATA)> |
|
55 |
<!-- The character used to delimit records in the entity --> |
|
56 |
<!ELEMENT recordDelimiter (#PCDATA)> |
|
57 |
<!ELEMENT maxRecordLength (#PCDATA)> |
|
58 |
<!-- The character used to delimit quote data values so that the |
|
59 |
filed delimeters can be used in the data value, typically |
|
60 |
" or ' --> |
|
61 |
<!ELEMENT quoteCharacter (#PCDATA)> |
|
62 |
<!-- The character used to escape special characters |
|
63 |
so that they are interpreted literally, usually \ --> |
|
64 |
<!ELEMENT literalCharacter (#PCDATA)> |
|
65 |
<!-- Number of header lines or information that prepares data --> |
|
66 |
<!ELEMENT numHeaderLines (#PCDATA)> |
|
67 |
|
|
68 |
<!-- |
|
69 |
Variable width format fields (attributes) can vary in their |
|
70 |
field length, thus the end of the field is |
|
71 |
delimited by a special character called a |
|
72 |
field delimiter (typically a comma or a space). |
|
73 |
|
|
74 |
Data sets are generally classified as fixedWidth |
|
75 |
format or variableWidth format, but we have |
|
76 |
determined that this is actually a per-field |
|
77 |
classification because one may encounter |
|
78 |
fixedWidth fields mixed together in the same |
|
79 |
data file with variableWidth fields. |
|
80 |
|
|
81 |
In our encoding scheme, the start of each field |
|
82 |
is assumed to be the column after the last column |
|
83 |
of the previous field, or the first column |
|
84 |
if this is the first field in the dataset, unless |
|
85 |
the starting column is explicity enumerated using the |
|
86 |
"fieldStartColumn" element. |
|
87 |
The end column for each field is classified |
|
88 |
using either a special character delimeter indicated |
|
89 |
using the filedDelimiter element, |
|
90 |
or a fixed field length indicated by using the "fieldWidth" |
|
91 |
element. The delimiter for the last field in the data set can be omitted. |
|
92 |
variableWidth fields can vary in their field length, and the end of |
|
93 |
the field is delimited by a special character |
|
94 |
called a field delimiter, usually a comma or |
|
95 |
a tab character. fixedWidth fields have a set |
|
96 |
length, and so the end of the field can always |
|
97 |
be determined by adding the fieldWidth to the |
|
98 |
starting column number. Here is an example: |
|
99 |
|
|
100 |
Assume we have the following data in a data set: |
|
101 |
|
|
102 |
May,100aaaa,1.2, |
|
103 |
April,200aaaa,3.4, |
|
104 |
June,300bbbb,4.6, |
|
105 |
|
|
106 |
The metadata indicating the physical layout of the 4 fields would include the |
|
107 |
following: |
|
108 |
|
|
109 |
<delimiter>,</delimiter> |
|
110 |
<fieldWidth>3</fieldWidth> |
|
111 |
<fieldWidth>3</fieldWidth> |
|
112 |
<delimiter>,</delimiter> |
|
113 |
|
|
114 |
In a strictly fixed format file, the metadata would be slightly different: |
|
115 |
|
|
116 |
May100aaaa1.2 |
|
117 |
Apr200aaaa3.4 |
|
118 |
Jun300bbbb4.6 |
|
119 |
|
|
120 |
<fieldWidth>3</fieldWidth> |
|
121 |
<fieldWidth>3</fieldWidth> |
|
122 |
<fieldWidth>4</fieldWidth> |
|
123 |
<fieldWidth>3</fieldWidth> |
|
124 |
|
|
125 |
or, one could explicitly describe the starting columns: |
|
126 |
|
|
127 |
<fieldStartColumn>1</fieldStartColumn> |
|
128 |
<fieldWidth>3</fieldWidth> |
|
129 |
<fieldStartColumn>4</fieldStartColumn> |
|
130 |
<fieldWidth>3</fieldWidth> |
|
131 |
<fieldStartColumn>7</fieldStartColumn> |
|
132 |
<fieldWidth>4</fieldWidth> |
|
133 |
<fieldStartColumn>11</fieldStartColumn> |
|
134 |
<fieldWidth>3</fieldWidth> |
|
135 |
--> |
|
136 |
<!ELEMENT fieldStartColumn (#PCDATA)> |
|
137 |
<!ELEMENT fieldDelimiter (#PCDATA)> |
|
138 |
<!ELEMENT fieldWidth (#PCDATA)> |
|
139 |
<!ELEMENT paragraph (#PCDATA)> |
|
140 |
<!-- End of file --> |
|
141 | 0 |
lib/dtd/eml-entity-2.0.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
'$RCSfile$' |
|
3 |
Copyright: 2000 Regents of the University of California and the |
|
4 |
National Center for Ecological Analysis and Synthesis |
|
5 |
For Details: http://knb.ecoinformatics.org/ |
|
6 |
|
|
7 |
'$Author$' |
|
8 |
'$Date$' |
|
9 |
'$Revision$' |
|
10 |
|
|
11 |
This program is free software; you can redistribute it and/or modify |
|
12 |
it under the terms of the GNU General Public License as published by |
|
13 |
the Free Software Foundation; either version 2 of the License, or |
|
14 |
(at your option) any later version. |
|
15 |
|
|
16 |
This program is distributed in the hope that it will be useful, |
|
17 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 |
GNU General Public License for more details. |
|
20 |
|
|
21 |
You should have received a copy of the GNU General Public License |
|
22 |
along with this program; if not, write to the Free Software |
|
23 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
24 |
--> |
|
25 |
<!-- EML DTD document that defines the structural |
|
26 |
characteristics of every entity in a dataset. --> |
|
27 |
|
|
28 |
<!ENTITY % EntityBase "(identifier+, entityName, entityDescription?, |
|
29 |
temporalCoverage*, geographicCoverage*,taxonomicCoverage*)"> |
|
30 |
|
|
31 |
|
|
32 |
<!ELEMENT table-entity (%EntityBase;, orientation?, caseSensitive?, |
|
33 |
numberOfRecords?)> |
|
34 |
|
|
35 |
<!ELEMENT other-entity (%EntityBase;, entityType)> |
|
36 |
|
|
37 |
<!-- fields for EntityBase --> |
|
38 |
<!ELEMENT identifier (#PCDATA)> |
|
39 |
|
|
40 |
<!ELEMENT entityName (#PCDATA) > |
|
41 |
<!ELEMENT entityDescription (#PCDATA) > |
|
42 |
|
|
43 |
<!-- fields for table-entity --> |
|
44 |
<!ELEMENT orientation EMPTY > |
|
45 |
<!ATTLIST orientation columnorrow (columnmajor|rowmajor) "columnmajor"> |
|
46 |
<!ELEMENT caseSensitive EMPTY > |
|
47 |
<!ATTLIST caseSensitive yesorno (yes|no) "no"> |
|
48 |
<!ELEMENT numberOfRecords (#PCDATA)> |
|
49 |
|
|
50 |
<!-- fields for other-entity --> |
|
51 |
<!ELEMENT entityType (#PCDATA)> |
|
52 |
|
|
53 |
|
|
54 |
<!ELEMENT temporalCoverage (#PCDATA)> |
|
55 |
<!ELEMENT geographicCoverage (#PCDATA)> |
|
56 |
<!ELEMENT taxonomicCoverage (#PCDATA)> |
|
57 |
|
|
58 |
<!-- End of file --> |
|
59 | 0 |
lib/dtd/eml-distribution-2.0.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
'$RCSfile$' |
|
3 |
Copyright: 2000 Regents of the University of California and the |
|
4 |
National Center for Ecological Analysis and Synthesis |
|
5 |
For Details: http://knb.ecoinformatics.org/ |
|
6 |
|
|
7 |
'$Author$' |
|
8 |
'$Date$' |
|
9 |
'$Revision$' |
|
10 |
|
|
11 |
This program is free software; you can redistribute it and/or modify |
|
12 |
it under the terms of the GNU General Public License as published by |
|
13 |
the Free Software Foundation; either version 2 of the License, or |
|
14 |
(at your option) any later version. |
|
15 |
|
|
16 |
This program is distributed in the hope that it will be useful, |
|
17 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 |
GNU General Public License for more details. |
|
20 |
|
|
21 |
You should have received a copy of the GNU General Public License |
|
22 |
along with this program; if not, write to the Free Software |
|
23 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
24 |
--> |
|
25 |
|
|
26 |
<!ELEMENT eml-distribution (identifier, distributorFormat+, distributor*, digitalTransfer*)> |
|
27 |
<!-- File identifier of the metadata document --> |
|
28 |
<!ELEMENT identifier (#PCDATA)> |
|
29 |
<!ATTLIST identifier |
|
30 |
system CDATA #IMPLIED |
|
31 |
> |
|
32 |
<!ELEMENT distributorFormat (formatName+, formatVersion+, formatSpec*, compressionType*, distributionFormat*)> |
|
33 |
<!ELEMENT formatName (#PCDATA)> |
|
34 |
<!ELEMENT formatVersion (#PCDATA)> |
|
35 |
<!ELEMENT formatSpec (#PCDATA)> |
|
36 |
<!ELEMENT compressionType (#PCDATA)> |
|
37 |
<!ELEMENT distributionFormat (#PCDATA)> |
|
38 |
<!ELEMENT distributor (contact+, standardOrderProcess*, distributorFormat*)> |
|
39 |
<!ELEMENT contact ((individualName|organizationName|positionName), |
|
40 |
address*, phone*, electronicMailAddress*, |
|
41 |
onlineLink*, role+)> |
|
42 |
<!ELEMENT standardOrderProcess (fees*, dateTimeAvailable*, orderingInstructions*, turnaround*)> |
|
43 |
<!ELEMENT fees (#PCDATA)> |
|
44 |
<!ELEMENT dateTimeAvailable (#PCDATA)> |
|
45 |
<!-- date/time --> |
|
46 |
<!ELEMENT orderingInstructions (#PCDATA)> |
|
47 |
<!ELEMENT turnaround (#PCDATA)> |
|
48 |
<!ELEMENT digitalTransfer (distributionUnits?, transferSize?, onLine*, offLineResource*)> |
|
49 |
<!ELEMENT distributionUnits (#PCDATA)> |
|
50 |
<!ELEMENT transferSize (#PCDATA)> |
|
51 |
<!ELEMENT onLine (#PCDATA)> |
|
52 |
<!-- from iso-party.dtd --> |
|
53 |
<!ELEMENT offLineResource (medium+)> |
|
54 |
<!ELEMENT medium (medName?, medDensity?, medDensityUnits?, medVol?, medFormat*, medNote?)> |
|
55 |
<!ELEMENT medName (#PCDATA)> |
|
56 |
<!ELEMENT medDensity (#PCDATA)> |
|
57 |
<!ELEMENT medDensityUnits (#PCDATA)> |
|
58 |
<!ELEMENT medVol (#PCDATA)> |
|
59 |
<!ELEMENT medFormat (#PCDATA)> |
|
60 |
<!-- code list from B.6.23 --> |
|
61 |
<!ELEMENT medNote (#PCDATA)> |
|
62 |
|
|
63 |
<!--from eml-party-2.0--> |
|
64 |
<!ELEMENT individualName (salutation*, givenName*, surName)> |
|
65 |
<!ELEMENT salutation (#PCDATA)> |
|
66 |
<!ELEMENT givenName (#PCDATA)> |
|
67 |
<!ELEMENT surName (#PCDATA)> |
|
68 |
<!ELEMENT organizationName (#PCDATA)> |
|
69 |
<!ELEMENT positionName (#PCDATA)> |
|
70 |
<!ELEMENT address (deliveryPoint*, city?, administrativeArea?, postalCode?, country?)> |
|
71 |
<!ELEMENT deliveryPoint (#PCDATA)> |
|
72 |
<!ELEMENT city (#PCDATA)> |
|
73 |
<!ELEMENT administrativeArea (#PCDATA)> |
|
74 |
<!ELEMENT postalCode (#PCDATA)> |
|
75 |
<!ELEMENT country (#PCDATA)> |
|
76 |
<!ELEMENT phone (#PCDATA)> |
|
77 |
<!ATTLIST phone |
|
78 |
phonetype CDATA "voice" |
|
79 |
> |
|
80 |
<!ELEMENT electronicMailAddress (#PCDATA)> |
|
81 |
<!ELEMENT onlineLink (#PCDATA)> |
|
82 |
<!-- Note that the domain for role is not expressed in the DTD --> |
|
83 |
<!ELEMENT role (#PCDATA)> |
|
84 |
<!-- EOF --> |
|
85 | 0 |
lib/dtd/eml-file.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
* Ecological Metadata Language (EML) - Data set structural descriptors |
|
3 |
* |
|
4 |
* Authors: Matt Jones, Zheng Wang, and Noah Goldstein |
|
5 |
* Organization: National Center for Ecological Analysis and Synthesis |
|
6 |
* For Details: http://www.nceas.ucsb.edu/ |
|
7 |
* Created: 1997 August 19 |
|
8 |
* Modified: 1999 June 23 |
|
9 |
* Version: 1.4 |
|
10 |
* File Info: '$Id$' |
|
11 |
* |
|
12 |
* Ecological Metadata Language is a general purpose metadata content |
|
13 |
* specification for documenting ecological data. The specification |
|
14 |
* consists of a series of modular document type definitions (DTD) that |
|
15 |
* provide metadata content descriptors. It describes the owner and |
|
16 |
* contents of the dataset (eml-dataset.dtd), the research context in |
|
17 |
* which it was created (eml-context.dtd), the structural |
|
18 |
* characteristics of data files (eml-file.dtd), the |
|
19 |
* characteristics of variables in a file (eml-variable.dtd), current |
|
20 |
* status of data and metadata files (eml-status.dtd), access control |
|
21 |
* rules regarding the data and metadata (eml-access.dtd), software |
|
22 |
* information (eml-software) and a variety of miscellaneous |
|
23 |
* supplemental descriptors (eml-supplement.dtd). |
|
24 |
* |
|
25 |
* Files generated under the structural constraints of eml are |
|
26 |
* plain-text files and therefore are editable in ordinary |
|
27 |
* text-processors. However, these DTDs are intended for use within |
|
28 |
* general purpose metadata editors, and within a more specific |
|
29 |
* metadata editor being developed at NCEAS for the ecological |
|
30 |
* community. This metadata editor will provide facilities for |
|
31 |
* version control and efficient metadata entry. |
|
32 |
* The purpose of this specification was to formalize the |
|
33 |
* Michener et al. work in a structured language to examine its |
|
34 |
* application to ecological data in a controlled manner. |
|
35 |
* |
|
36 |
* This specification was based on the work of the Ecological Society |
|
37 |
* of America's Committee on the Future of Long Term Data, and more |
|
38 |
* specifically on a related paper, Michener et al., 1997. See: |
|
39 |
* Michener, William K., et al., 1997. Ecological Appications, |
|
40 |
* "Nongeospatial metadata for the ecological sciences" |
|
41 |
* Vol 7(1). pp. 330-342. |
|
42 |
* |
|
43 |
* Where appropriate, we have used elements of the ISO/TC 211 draft |
|
44 |
* standard - the ISO Geographic information/Geomatics standard, |
|
45 |
* which includes xml code, as well as ISO 8601 schema. Some elements |
|
46 |
* in the ISO/TC 211 were expanded to allow for greater |
|
47 |
* resolution. |
|
48 |
* |
|
49 |
* For an explanation of the classes of metadata and elements defined |
|
50 |
* below, see Michener et al. 1997. In particular, the numbered comment |
|
51 |
* labels found below refer to Table 1 (pp. 336-337) of Michener |
|
52 |
* et al. 1997. In addition, each of the principal elements in the |
|
53 |
* specification is accompanied by a FIXED attribute called "description" |
|
54 |
* that provides a brief description of the content of the element. These |
|
55 |
* descriptions are derived from Michener et al. 1997. |
|
56 |
* |
|
57 |
--> |
|
58 |
|
|
59 |
<!-- * * * * |
|
60 |
CLASS IV - DATA STRUCTURE DESCRIPTORS |
|
61 |
* * * * |
|
62 |
--> |
|
63 |
|
|
64 |
<!-- Class 4 --> |
|
65 |
<!ELEMENT eml-file (meta_file_id, file)> |
|
66 |
<!ATTLIST eml-file description CDATA #FIXED "Data structural descriptors"> |
|
67 |
<!ELEMENT meta_file_id (#PCDATA)> |
|
68 |
<!ATTLIST meta_file_id description CDATA #FIXED "Unique identifier of this metadata record"> |
|
69 |
|
|
70 |
<!-- Class 4.A --> |
|
71 |
<!ELEMENT file (file_name, file_size?, format, orientation?, header_lines?, |
|
72 |
case_sensitive?, geographic_coverage*, temporal_coverage*, |
|
73 |
authentication*, data_problem*)> |
|
74 |
<!ATTLIST file description CDATA #FIXED "Data set file"> |
|
75 |
|
|
76 |
<!-- Class 4.A.1 --> |
|
77 |
<!ELEMENT file_name (#PCDATA) > |
|
78 |
<!ATTLIST file_name description CDATA #FIXED "File name"> |
|
79 |
|
|
80 |
<!-- Class 4.A.2 --> |
|
81 |
<!ELEMENT file_size (amount, unit) > |
|
82 |
<!ATTLIST file_size description CDATA #FIXED "Size of file"> |
|
83 |
<!ELEMENT amount (#PCDATA) > |
|
84 |
<!ATTLIST amount description CDATA #FIXED "Amount"> |
|
85 |
<!ELEMENT unit (#PCDATA) > |
|
86 |
<!ATTLIST unit description CDATA #FIXED "Unit"> |
|
87 |
|
|
88 |
|
|
89 |
<!-- Class 4.A.3 --> |
|
90 |
<!ELEMENT format (compressed|encoded|base_file_type)> |
|
91 |
<!ATTLIST format description CDATA #FIXED "File type and compression schemes employed"> |
|
92 |
<!ELEMENT compressed (#PCDATA)> |
|
93 |
<!ATTLIST compressed description CDATA #FIXED "Method of compression"> |
|
94 |
<!ELEMENT encoded (#PCDATA)> |
|
95 |
<!ATTLIST encoded description CDATA #FIXED "Method of encoding"> |
|
96 |
<!ELEMENT base_file_type (ASCII|binary)> |
|
97 |
<!ATTLIST base_file_type description CDATA #FIXED "Base file type"> |
|
98 |
<!ELEMENT ASCII (record_delimiter)> |
|
99 |
<!ATTLIST ASCII description CDATA #FIXED "ASCII"> |
|
100 |
<!ELEMENT record_delimiter (#PCDATA)> |
|
101 |
<!ATTLIST record_delimiter description CDATA #FIXED "Record delimiter"> |
|
102 |
<!ELEMENT binary EMPTY> |
|
103 |
<!ATTLIST binary description CDATA #FIXED "Binary"> |
|
104 |
|
|
105 |
<!-- NEW SECTION --> |
|
106 |
<!ELEMENT orientation EMPTY > |
|
107 |
<!ATTLIST orientation columnorrow (columnmajor|rowmajor) "columnmajor" |
|
108 |
description CDATA #FIXED "Is file column major or row major?"> |
|
109 |
|
|
110 |
<!-- Class 4.A.4 --> |
|
111 |
<!ELEMENT header_lines (#PCDATA) > |
|
112 |
<!ATTLIST header_lines description CDATA #FIXED "Number of header lines or information that prepares data"> |
|
113 |
|
|
114 |
<!-- Class 4.A.5 --> |
|
115 |
<!ELEMENT case_sensitive EMPTY > |
|
116 |
<!ATTLIST case_sensitive yesorno (y|n) "n" |
|
117 |
description CDATA #FIXED "Case sensitivity of field"> |
|
118 |
|
|
119 |
<!-- Class 4.A.6 --> |
|
120 |
<!-- the field "specialfield" was removed as there were questions to its usefull ness --> |
|
121 |
|
|
122 |
<!ELEMENT geographic_coverage (paragraph*, coordinates*)> |
|
123 |
<!ATTLIST geographic_coverage description CDATA #FIXED "Geographic coverage"> |
|
124 |
|
|
125 |
<!ELEMENT coordinates (lattitude, longitude) > |
|
126 |
<!ATTLIST coordinates description CDATA #FIXED "Cartesian Coordinates"> |
|
127 |
<!ELEMENT lattitude (#PCDATA)> |
|
128 |
<!ATTLIST lattitude direction (north|south) #REQUIRED |
|
129 |
description CDATA #FIXED "Lattitude coordinates"> |
|
130 |
<!ELEMENT longitude (#PCDATA)> |
|
131 |
<!ATTLIST longitude direction (east|west) #REQUIRED |
|
132 |
description CDATA #FIXED "Longitude coordinates"> |
|
133 |
|
|
134 |
<!ELEMENT temporal_coverage (start_date,stop_date?)> |
|
135 |
<!ATTLIST temporal_coverage description CDATA #FIXED "Temporal coverage"> |
|
136 |
<!ELEMENT start_date (datetime)> |
|
137 |
<!ATTLIST start_date description CDATA #FIXED "Date data collection commenced"> |
|
138 |
<!ELEMENT datetime (year?, month?, day?, hour?, minute?, second?, second_fraction?, time_zone_designator?)> |
|
139 |
<!ATTLIST datetime description CDATA #FIXED "Date and time as designated in ISO 8601"> |
|
140 |
<!ELEMENT year (#PCDATA)> |
|
141 |
<!ATTLIST year description CDATA #FIXED "Year in YYYY format"> |
|
142 |
<!ELEMENT month (#PCDATA)> |
|
143 |
<!ATTLIST month description CDATA #FIXED "Month in MM format"> |
|
144 |
<!ELEMENT day (#PCDATA)> |
|
145 |
<!ATTLIST day description CDATA #FIXED "Day of month in DD format"> |
|
146 |
<!ELEMENT hour (#PCDATA)> |
|
147 |
<!ATTLIST hour description CDATA #FIXED "Hour in hh"> |
|
148 |
<!ELEMENT minute (#PCDATA)> |
|
149 |
<!ATTLIST minute description CDATA #FIXED "Minute in mm"> |
|
150 |
<!ELEMENT second (#PCDATA)> |
|
151 |
<!ATTLIST second description CDATA #FIXED "Seconds in ss"> |
|
152 |
<!ELEMENT second_fraction (#PCDATA)> |
|
153 |
<!ATTLIST second_fraction description CDATA #FIXED "One or more digits representing a decimal fraction of a second"> |
|
154 |
<!ELEMENT time_zone_designator (#PCDATA)> |
|
155 |
<!ATTLIST time_zone_designator description CDATA #FIXED "Time zone designator"> |
|
156 |
|
|
157 |
<!ELEMENT stop_date (datetime)> |
|
158 |
<!ATTLIST stop_date description CDATA #FIXED "Date data collection terminated"> |
|
159 |
|
|
160 |
|
|
161 |
<!-- Class 4.A.7 --> |
|
162 |
<!ELEMENT authentication (#PCDATA) > |
|
163 |
<!ATTLIST authentication description CDATA #FIXED "Authentication procedures or techniques"> |
|
164 |
|
|
165 |
|
|
166 |
<!-- Class 4.B --> |
|
167 |
<!-- Class 4.B (variable) was moved to its own module (eml-variable.dtd) --> |
|
168 |
|
|
169 |
<!-- Class 4.C --> |
|
170 |
<!ELEMENT data_problem (paragraph+)> |
|
171 |
<!ATTLIST data_problem problemtype (missing|anomaly|error) #REQUIRED |
|
172 |
description CDATA #FIXED "Data anomalies; description of missing data"> |
|
173 |
<!ELEMENT paragraph (#PCDATA)> |
|
174 |
<!ATTLIST paragraph description CDATA #FIXED "Paragraph of text"> |
|
175 |
|
|
176 |
<!-- End of file --> |
|
177 | 0 |
lib/dtd/eml-dataset-2.0.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
'$RCSfile$' |
|
3 |
Copyright: 2000 Regents of the University of California and the |
|
4 |
National Center for Ecological Analysis and Synthesis |
|
5 |
For Details: http://knb.ecoinformatics.org/ |
|
6 |
|
|
7 |
'$Author$' |
|
8 |
'$Date$' |
|
9 |
'$Revision$' |
|
10 |
|
|
11 |
This program is free software; you can redistribute it and/or modify |
|
12 |
it under the terms of the GNU General Public License as published by |
|
13 |
the Free Software Foundation; either version 2 of the License, or |
|
14 |
(at your option) any later version. |
|
15 |
|
|
16 |
This program is distributed in the hope that it will be useful, |
|
17 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 |
GNU General Public License for more details. |
|
20 |
|
|
21 |
You should have received a copy of the GNU General Public License |
|
22 |
along with this program; if not, write to the Free Software |
|
23 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
24 |
--> |
|
25 |
|
|
26 |
<!ENTITY % responsibleParty "((individualName|organizationName|positionName)+, |
|
27 |
address*, phone*, electronicMailAddress*, |
|
28 |
onlineLink*, role+)"> |
|
29 |
|
|
30 |
<!ELEMENT individualName (salutation*, givenName*, surName)> |
|
31 |
<!ELEMENT salutation (#PCDATA)> |
|
32 |
<!ELEMENT givenName (#PCDATA)> |
|
33 |
<!ELEMENT surName (#PCDATA)> |
|
34 |
|
|
35 |
<!ELEMENT organizationName (#PCDATA)> |
|
36 |
<!ELEMENT positionName (#PCDATA)> |
|
37 |
|
|
38 |
<!ELEMENT address (deliveryPoint*, city?, administrativeArea?, |
|
39 |
postalCode?, country?)> |
|
40 |
<!ELEMENT deliveryPoint (#PCDATA)> |
|
41 |
<!ELEMENT city (#PCDATA)> |
|
42 |
<!ELEMENT administrativeArea (#PCDATA)> |
|
43 |
<!ELEMENT postalCode (#PCDATA)> |
|
44 |
<!ELEMENT country (#PCDATA)> |
|
45 |
|
|
46 |
<!ELEMENT phone (#PCDATA)> |
|
47 |
<!ATTLIST phone phonetype CDATA "voice"> |
|
48 |
<!ELEMENT electronicMailAddress (#PCDATA)> |
|
49 |
<!ELEMENT onlineLink (#PCDATA)> |
|
50 |
|
|
51 |
<!-- Note that the domain for role is not expressed in the DTD --> |
|
52 |
<!ELEMENT role (#PCDATA)> |
|
53 |
|
|
54 |
|
|
55 |
<!-- entity to conglomerate these fields into one name --> |
|
56 |
<!ENTITY % resbase "(identifier+, shortName?, title+, |
|
57 |
originator+, pubdate?, pubplace?, series?, abstract?, |
|
58 |
keywordSet*, additionalInfo?, triple*)" > |
|
59 |
|
|
60 |
<!-- common fields --> |
|
61 |
<!ELEMENT identifier (#PCDATA)> |
|
62 |
<!ATTLIST identifier system CDATA ""> |
|
63 |
<!ELEMENT shortName (#PCDATA)> |
|
64 |
<!ELEMENT title (#PCDATA)> |
|
65 |
<!ELEMENT originator ((%responsibleParty;))> |
|
66 |
<!ELEMENT pubdate (#PCDATA)> |
|
67 |
<!ELEMENT pubplace (#PCDATA)> |
|
68 |
<!ELEMENT series (#PCDATA)> |
|
69 |
<!ELEMENT abstract (paragraph+)> |
|
70 |
<!ELEMENT keywordSet (keyword+, keywordThesaurus*)> |
|
71 |
<!ELEMENT keyword (#PCDATA)> |
|
72 |
<!ATTLIST keyword keywordType CDATA ""> |
|
73 |
<!ELEMENT keywordThesaurus (#PCDATA)> |
|
74 |
<!ELEMENT additionalInfo (paragraph+)> |
|
75 |
<!ELEMENT paragraph (#PCDATA)> |
|
76 |
<!ELEMENT triple (subject, relationship, object)> |
|
77 |
<!ELEMENT subject (#PCDATA)> |
|
78 |
<!ELEMENT relationship (#PCDATA)> |
|
79 |
<!ELEMENT object (#PCDATA)> |
|
80 |
|
|
81 |
|
|
82 |
<!ELEMENT temporalCoverage (#PCDATA)> |
|
83 |
<!ELEMENT geographicCoverage (#PCDATA)> |
|
84 |
<!ELEMENT taxonomicCoverage (#PCDATA)> |
|
85 |
|
|
86 |
|
|
87 |
<!-- The dataset branch --> |
|
88 |
<!ELEMENT dataset ((%resbase;), temporalCoverage*, geographicCoverage*, |
|
89 |
taxonomicCoverage* )> |
|
90 |
|
|
91 |
<!-- EOF --> |
|
92 | 0 |
lib/dtd/eml-status.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
* Ecological Metadata Language (EML) - Status descriptors |
|
3 |
* |
|
4 |
* Authors: Matt Jones, Zheng Wang, and Noah Goldstein |
|
5 |
* Organization: National Center for Ecological Analysis and Synthesis |
|
6 |
* For Details: http://www.nceas.ucsb.edu/ |
|
7 |
* Created: 1997 August 19 |
|
8 |
* Modified: 1999 June 23 |
|
9 |
* Version: 1.4 |
|
10 |
* File Info: '$Id$' |
|
11 |
* |
|
12 |
* Ecological Metadata Language is a general purpose metadata content |
|
13 |
* specification for documenting ecological data. The specification |
|
14 |
* consists of a series of modular document type definitions (DTD) that |
|
15 |
* provide metadata content descriptors. It describes the owner and |
|
16 |
* contents of the dataset (eml-dataset.dtd), the research context in |
|
17 |
* which it was created (eml-context.dtd), the structural |
|
18 |
* characteristics of data files (eml-file.dtd), the |
|
19 |
* characteristics of variables in a file (eml-variable.dtd), current |
|
20 |
* status of data and metadata files (eml-status.dtd), access control |
|
21 |
* rules regarding the data and metadata (eml-access.dtd), software |
|
22 |
* information (eml-software) and a variety of miscellaneous |
|
23 |
* supplemental descriptors (eml-supplement.dtd). |
|
24 |
* |
|
25 |
* Files generated under the structural constraints of eml are |
|
26 |
* plain-text files and therefore are editable in ordinary |
|
27 |
* text-processors. However, these DTDs are intended for use within |
|
28 |
* general purpose metadata editors, and within a more specific |
|
29 |
* metadata editor being developed at NCEAS for the ecological |
|
30 |
* community. This metadata editor will provide facilities for |
|
31 |
* version control and efficient metadata entry. |
|
32 |
* The purpose of this specification was to formalize the |
|
33 |
* Michener et al. work in a structured language to examine its |
|
34 |
* application to ecological data in a controlled manner. |
|
35 |
* |
|
36 |
* This specification was based on the work of the Ecological Society |
|
37 |
* of America's Committee on the Future of Long Term Data, and more |
|
38 |
* specifically on a related paper, Michener et al., 1997. See: |
|
39 |
* Michener, William K., et al., 1997. Ecological Appications, |
|
40 |
* "Nongeospatial metadata for the ecological sciences" |
|
41 |
* Vol 7(1). pp. 330-342. |
|
42 |
* |
|
43 |
* Where appropriate, we have used elements of the ISO/TC 211 draft |
|
44 |
* standard - the ISO Geographic information/Geomatics standard, |
|
45 |
* which includes xml code, as well as ISO 8601 schema. Some elements |
|
46 |
* in the ISO/TC 211 were expanded to allow for greater |
|
47 |
* resolution. |
|
48 |
* |
|
49 |
* For an explanation of the classes of metadata and elements defined |
|
50 |
* below, see Michener et al. 1997. In particular, the numbered comment |
|
51 |
* labels found below refer to Table 1 (pp. 336-337) of Michener |
|
52 |
* et al. 1997. In addition, each of the principal elements in the |
|
53 |
* specification is accompanied by a FIXED attribute called "description" |
|
54 |
* that provides a brief description of the content of the element. These |
|
55 |
* descriptions are derived from Michener et al. 1997. |
|
56 |
* |
|
57 |
--> |
|
58 |
|
|
59 |
<!-- * * * * |
|
60 |
CLASS III A - DATA SET STATUS |
|
61 |
* * * * |
|
62 |
--> |
|
63 |
|
|
64 |
<!-- Class 3.A --> |
|
65 |
<!ELEMENT eml-status (meta_file_id, data_update_date?, data_archive_date?, metadata_update_date?, qa_qc_status?)> |
|
66 |
<!ATTLIST eml-status description CDATA #FIXED "Data set status"> |
|
67 |
<!ELEMENT meta_file_id (#PCDATA)> |
|
68 |
<!ATTLIST meta_file_id description CDATA #FIXED "Unique identifier of this metadata record"> |
|
69 |
|
|
70 |
<!-- Class 3.A.1 --> |
|
71 |
<!ELEMENT data_update_date (datetime)> |
|
72 |
<!ATTLIST data_update_date description CDATA #FIXED "Date of modification of data set"> |
|
73 |
<!ELEMENT datetime (year?, month?, day?, hour?, minute?, second?, second_fraction?, time_zone_designator?)> |
|
74 |
<!ATTLIST datetime description CDATA #FIXED "Date and time as designated in ISO 8601"> |
|
75 |
<!ELEMENT year (#PCDATA)> |
|
76 |
<!ATTLIST year description CDATA #FIXED "Year in YYYY format"> |
|
77 |
<!ELEMENT month (#PCDATA)> |
|
78 |
<!ATTLIST month description CDATA #FIXED "Month in MM format"> |
|
79 |
<!ELEMENT day (#PCDATA)> |
|
80 |
<!ATTLIST day description CDATA #FIXED "Day of month in DD format"> |
|
81 |
<!ELEMENT hour (#PCDATA)> |
|
82 |
<!ATTLIST hour description CDATA #FIXED "Hour in hh"> |
|
83 |
<!ELEMENT minute (#PCDATA)> |
|
84 |
<!ATTLIST minute description CDATA #FIXED "Minute in mm"> |
|
85 |
<!ELEMENT second (#PCDATA)> |
|
86 |
<!ATTLIST second description CDATA #FIXED "Seconds in ss"> |
|
87 |
<!ELEMENT second_fraction (#PCDATA)> |
|
88 |
<!ATTLIST second_fraction description CDATA #FIXED "One or more digits representing a decimal fraction of a second"> |
|
89 |
<!ELEMENT time_zone_designator (#PCDATA)> |
|
90 |
<!ATTLIST time_zone_designator description CDATA #FIXED "Time zone designator"> |
|
91 |
|
|
92 |
|
|
93 |
<!-- Class 3.A.2 --> |
|
94 |
<!ELEMENT data_archive_date (datetime)> |
|
95 |
<!ATTLIST data_archive_date description CDATA #FIXED "Date of last data set archival"> |
|
96 |
|
|
97 |
<!-- Class 3.A.3 --> |
|
98 |
<!ELEMENT metadata_update_date (datetime)> |
|
99 |
<!ATTLIST metadata_update_date description CDATA #FIXED "Date of last metadata update and current status"> |
|
100 |
|
|
101 |
<!-- Class 3.A.4 --> |
|
102 |
<!ELEMENT qa_qc_status (paragraph+)> |
|
103 |
<!ATTLIST qa_qc_status description CDATA #FIXED "Status of data quality assurance checking"> |
|
104 |
<!ELEMENT paragraph (#PCDATA)> |
|
105 |
<!ATTLIST paragraph description CDATA #FIXED "Paragraph of text"> |
|
106 |
|
|
107 |
<!-- End of file --> |
|
108 | 0 |
lib/dtd/party.dtd | ||
---|---|---|
1 |
<!ELEMENT party ((party_individual | party_org), address, contactHours)> |
|
2 |
<!ATTLIST party description CDATA #FIXED "Responsible party information"> |
|
3 |
<!ELEMENT party_individual (salutation*, given_name+, surname, jobtitle*)> |
|
4 |
<!ATTLIST party_individual description CDATA #FIXED "Full name of individual"> |
|
5 |
<!ELEMENT salutation (#PCDATA)> |
|
6 |
<!ATTLIST salutation description CDATA #FIXED "Salutation"> |
|
7 |
<!ELEMENT given_name (#PCDATA)> |
|
8 |
<!ATTLIST given_name description CDATA #FIXED "First name"> |
|
9 |
<!ELEMENT surname (#PCDATA)> |
|
10 |
<!ATTLIST surname description CDATA #FIXED "Last Name"> |
|
11 |
<!ELEMENT jobtitle (#PCDATA)> |
|
12 |
<!ATTLIST jobtitle description CDATA #FIXED "Job title"> |
|
13 |
<!ELEMENT party_org (#PCDATA)> |
|
14 |
<!ATTLIST party_org description CDATA #FIXED "Name of organization"> |
|
15 |
<!ELEMENT address (street*, city?, admin_area*, postal_code?, country, resource_url*, email*, phoneFAXetc*)> |
|
16 |
<!ATTLIST address description CDATA #FIXED "Contact information" |
|
17 |
address_status (current|notcurrent) #REQUIRED |
|
18 |
address_purpose (mail|institution|homeresidence) #REQUIRED> |
|
19 |
<!ELEMENT street (#PCDATA)> |
|
20 |
<!ATTLIST street description CDATA #FIXED "Street or other point of delivery"> |
|
21 |
<!ELEMENT city (#PCDATA)> |
|
22 |
<!ATTLIST city description CDATA #FIXED "City"> |
|
23 |
<!ELEMENT admin_area (#PCDATA)> |
|
24 |
<!ATTLIST admin_area description CDATA #FIXED "Administrative area (state, province, territory)"> |
|
25 |
<!ELEMENT postal_code (#PCDATA)> |
|
26 |
<!ATTLIST postal_code description CDATA #FIXED "Postal code"> |
|
27 |
<!ELEMENT country (#PCDATA)> |
|
28 |
<!ATTLIST country description CDATA #FIXED "Country"> |
|
29 |
<!ELEMENT resource_url (#PCDATA)> |
|
30 |
<!ATTLIST resource_url description CDATA #FIXED "URL"> |
|
31 |
<!ELEMENT email (#PCDATA)> |
|
32 |
<!ATTLIST email description CDATA #FIXED "Email address"> |
|
33 |
|
|
34 |
<!ELEMENT phoneFAXetc (phoneType, phoneNumber)> |
|
35 |
<!ATTLIST phone description CDATA #FIXED "Phone number for Voice, FAX, TDD, etc"> |
|
36 |
|
|
37 |
<!ELEMENT phoneType (#PCDATA)> |
|
38 |
<!ATTLIST phonetype description CDATA #FIXED "Type of phone, such as voice, FAX, TDD, etc" |
|
39 |
phone_type (phone|FAX|TDD|other) #REQUIRED> |
|
40 |
|
|
41 |
<!ELEMENT phoneNumber (#PCDATA)> |
|
42 |
<!ATTLIST phoneNumber description CDATA #FIXED "Phone number"> |
|
43 |
|
|
44 |
<!ELEMENT fax (country_code?,area_code?,local_code)> |
|
45 |
<!ATTLIST fax description CDATA #FIXED "Facimilie telephone"> |
|
46 |
<!ELEMENT tdd_phone (country_code?,area_code?,local_code)> |
|
47 |
<!ATTLIST tdd_phone description CDATA #FIXED "TDD/TTY telephone"> |
|
48 |
<!ELEMENT country_code (#PCDATA)> |
|
49 |
<!ATTLIST country_code description CDATA #FIXED "Countrycode"> |
|
50 |
<!ELEMENT area_code (#PCDATA)> |
|
51 |
<!ATTLIST area_code description CDATA #FIXED "Area code"> |
|
52 |
<!ELEMENT local_code (#PCDATA)> |
|
53 |
<!ATTLIST local_code description CDATA #FIXED "Local phone code"> |
|
54 |
<!ELEMENT extension (#PCDATA)> |
|
55 |
<!ATTLIST extension description CDATA #FIXED "Phone extension code"> |
|
56 |
<!ELEMENT contactHours (#PCDATA)> |
|
57 |
<!ATTLIST contactHours description CDATA #FIXED "Hours during which to contact party"> |
|
58 | 0 |
lib/dtd/eml-resource-2.0.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
'$RCSfile$' |
|
3 |
Copyright: 2000 Regents of the University of California and the |
|
4 |
National Center for Ecological Analysis and Synthesis |
|
5 |
For Details: http://knb.ecoinformatics.org/ |
|
6 |
|
|
7 |
'$Author$' |
|
8 |
'$Date$' |
|
9 |
'$Revision$' |
|
10 |
|
|
11 |
This program is free software; you can redistribute it and/or modify |
|
12 |
it under the terms of the GNU General Public License as published by |
|
13 |
the Free Software Foundation; either version 2 of the License, or |
|
14 |
(at your option) any later version. |
|
15 |
|
|
16 |
This program is distributed in the hope that it will be useful, |
|
17 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
18 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
19 |
GNU General Public License for more details. |
|
20 |
|
|
21 |
You should have received a copy of the GNU General Public License |
|
22 |
along with this program; if not, write to the Free Software |
|
23 |
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
24 |
--> |
|
25 |
|
|
26 |
<!-- entity referring to the eml-party fields --> |
|
27 |
<!ENTITY % resParty SYSTEM "./eml-party.dtd"> |
|
28 |
%resParty; |
|
29 |
|
|
30 |
<!-- entity to conglomerate these fields into one name --> |
|
31 |
<!ENTITY % resbase "(identifier+, shortName?, title+, |
|
32 |
originator+, pubDate?, pubPlace?, series?, abstract?, |
|
33 |
keywordSet*, additionalInfo?, triple*)" > |
|
34 |
|
|
35 |
<!-- common fields --> |
|
36 |
<!ELEMENT identifier (#PCDATA)> |
|
37 |
<!ATTLIST identifier system CDATA> |
|
38 |
<!ELEMENT shortName (#PCDATA)> |
|
39 |
<!ELEMENT title (#PCDATA)> |
|
40 |
<!ELEMENT originator ((%responsibleParty;))> |
|
41 |
<!ELEMENT pubdate (#PCDATA)> |
|
42 |
<!ELEMENT pubplace (#PCDATA)> |
|
43 |
<!ELEMENT series (#PCDATA)> |
|
44 |
<!ELEMENT abstract (paragraph+)> |
|
45 |
<!ELEMENT keywordSet (keyword+, keywordThesaurus*)> |
|
46 |
<!ELEMENT keyword (#PCDATA)> |
|
47 |
<!ATTLIST keyword keywordType CDATA> |
|
48 |
<!ELEMENT keywordThesaurus (#PCDATA)> |
|
49 |
<!ELEMENT additionalInfo (paragraph+)> |
|
50 |
<!ELEMENT paragraph (#PCDATA)> |
|
51 |
<!ELEMENT triple (subject, relationship, object)> |
|
52 |
<!ELEMENT subject (#PCDATA)> |
|
53 |
<!ELEMENT relationship (#PCDATA)> |
|
54 |
<!ELEMENT object (#PCDATA)> |
|
55 |
|
|
56 |
<!-- EOF --> |
|
57 | 0 |
lib/dtd/eml-context.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
* Ecological Metadata Language (EML) - Research context descriptors |
|
3 |
* |
|
4 |
* Authors: Matt Jones, Zheng Wang, and Noah Goldstein |
|
5 |
* Organization: National Center for Ecological Analysis and Synthesis |
|
6 |
* For Details: http://www.nceas.ucsb.edu/ |
|
7 |
* Created: 1997 August 19 |
|
8 |
* Modified: 1999 June 23 |
|
9 |
* Version: 1.4 |
|
10 |
* File Info: '$Id$' |
|
11 |
* |
|
12 |
* Ecological Metadata Language is a general purpose metadata content |
|
13 |
* specification for documenting ecological data. The specification |
|
14 |
* consists of a series of modular document type definitions (DTD) that |
|
15 |
* provide metadata content descriptors. It describes the owner and |
|
16 |
* contents of the dataset (eml-dataset.dtd), the research context in |
|
17 |
* which it was created (eml-context.dtd), the structural |
|
18 |
* characteristics of data files (eml-file.dtd), the |
|
19 |
* characteristics of variables in a file (eml-variable.dtd), current |
|
20 |
* status of data and metadata files (eml-status.dtd), access control |
|
21 |
* rules regarding the data and metadata (eml-access.dtd), software |
|
22 |
* information (eml-software) and a variety of miscellaneous |
|
23 |
* supplemental descriptors (eml-supplement.dtd). |
|
24 |
* |
|
25 |
* Files generated under the structural constraints of eml are |
|
26 |
* plain-text files and therefore are editable in ordinary |
|
27 |
* text-processors. However, these DTDs are intended for use within |
|
28 |
* general purpose metadata editors, and within a more specific |
|
29 |
* metadata editor being developed at NCEAS for the ecological |
|
30 |
* community. This metadata editor will provide facilities for |
|
31 |
* version control and efficient metadata entry. |
|
32 |
* The purpose of this specification was to formalize the |
|
33 |
* Michener et al. work in a structured language to examine its |
|
34 |
* application to ecological data in a controlled manner. |
|
35 |
* |
|
36 |
* This specification was based on the work of the Ecological Society |
|
37 |
* of America's Committee on the Future of Long Term Data, and more |
|
38 |
* specifically on a related paper, Michener et al., 1997. See: |
|
39 |
* Michener, William K., et al., 1997. Ecological Appications, |
|
40 |
* "Nongeospatial metadata for the ecological sciences" |
|
41 |
* Vol 7(1). pp. 330-342. |
|
42 |
* |
|
43 |
* Where appropriate, we have used elements of the ISO/TC 211 draft |
|
44 |
* standard - the ISO Geographic information/Geomatics standard, |
|
45 |
* which includes xml code, as well as ISO 8601 schema. Some elements |
|
46 |
* in the ISO/TC 211 were expanded to allow for greater |
|
47 |
* resolution. |
|
48 |
* |
|
49 |
* For an explanation of the classes of metadata and elements defined |
|
50 |
* below, see Michener et al. 1997. In particular, the numbered comment |
|
51 |
* labels found below refer to Table 1 (pp. 336-337) of Michener |
|
52 |
* et al. 1997. In addition, each of the principal elements in the |
|
53 |
* specification is accompanied by a FIXED attribute called "description" |
|
54 |
* that provides a brief description of the content of the element. These |
|
55 |
* descriptions are derived from Michener et al. 1997. |
|
56 |
* |
|
57 |
--> |
|
58 |
|
|
59 |
<!-- * * * * |
|
60 |
CLASS II - RESEARCH ORIGIN DESCRIPTORS |
|
61 |
* * * * |
|
62 |
--> |
|
63 |
|
|
64 |
<!-- Class 2--> |
|
65 |
<!ELEMENT eml-context (meta_file_id,research_project)> |
|
66 |
<!ATTLIST eml-context description CDATA #FIXED "Data set status and availabilty"> |
|
67 |
<!ELEMENT meta_file_id (#PCDATA)> |
|
68 |
<!ATTLIST meta_file_id description CDATA #FIXED "Unique identifier of this metadata record"> |
|
69 |
|
|
70 |
<!-- Class 2.A --> |
|
71 |
<!ELEMENT research_project (title, originator+, temporal_description*, |
|
72 |
objectives?, abstract?, funding?, site_description*, |
|
73 |
design_description*, methods_description*, staff*)> |
|
74 |
<!ATTLIST research_project description CDATA #FIXED "Overall project descriptors"> |
|
75 |
<!ELEMENT title (#PCDATA)> |
|
76 |
<!ATTLIST title description CDATA #FIXED "Title or theme of data set"> |
|
77 |
<!ELEMENT originator (party)> |
|
78 |
<!ATTLIST originator description CDATA #FIXED "Names and addresses of principal |
|
79 |
investigators"> |
|
80 |
<!ELEMENT party ((party_individual | party_org), meta_address)> |
|
81 |
<!ATTLIST party description CDATA #FIXED "Responsible party information"> |
|
82 |
<!ELEMENT party_individual (salutation*, given_name+, surname, job_title*)> |
|
83 |
<!ATTLIST party_individual description CDATA #FIXED "Full name of individual"> |
|
84 |
<!ELEMENT salutation (#PCDATA)> |
|
85 |
<!ATTLIST salutation description CDATA #FIXED "Salutation"> |
|
86 |
<!ELEMENT given_name (#PCDATA)> |
|
87 |
<!ATTLIST given_name description CDATA #FIXED "First name"> |
|
88 |
<!ELEMENT surname (#PCDATA)> |
|
89 |
<!ATTLIST surname description CDATA #FIXED "Last Name"> |
|
90 |
<!ELEMENT job_title (#PCDATA)> |
|
91 |
<!ATTLIST job_title description CDATA #FIXED "Job title"> |
|
92 |
<!ELEMENT party_org (#PCDATA)> |
|
93 |
<!ATTLIST party_org description CDATA #FIXED "Name of organization"> |
|
94 |
<!ELEMENT meta_address (address*, city?, admin_area*, postal_code?, country, resource_url*, email*, phone*, fax*, tdd_phone*)> |
|
95 |
<!ATTLIST meta_address description CDATA #FIXED "Contact information" |
|
96 |
meta_address_status (current|notcurrent) #REQUIRED |
|
97 |
meta_address_purpose (mail|institution|homeresidence) #REQUIRED> |
|
98 |
<!ELEMENT address (#PCDATA)> |
|
99 |
<!ATTLIST address description CDATA #FIXED "Street address"> |
|
100 |
<!ELEMENT city (#PCDATA)> |
|
101 |
<!ATTLIST city description CDATA #FIXED "City"> |
|
102 |
<!ELEMENT admin_area (#PCDATA)> |
|
103 |
<!ATTLIST admin_area description CDATA #FIXED "Administrative area (state, province, territory)"> |
|
104 |
<!ELEMENT postal_code (#PCDATA)> |
|
105 |
<!ATTLIST postal_code description CDATA #FIXED "Postal code"> |
|
106 |
<!ELEMENT country (#PCDATA)> |
|
107 |
<!ATTLIST country description CDATA #FIXED "Country"> |
|
108 |
<!ELEMENT resource_url (#PCDATA)> |
|
109 |
<!ATTLIST resource_url description CDATA #FIXED "URL"> |
|
110 |
<!ELEMENT email (#PCDATA)> |
|
111 |
<!ATTLIST email description CDATA #FIXED "Email address"> |
|
112 |
<!ELEMENT phone (country_code?,area_code?,local_code, extension?)> |
|
113 |
<!ATTLIST phone description CDATA #FIXED "Phone number"> |
|
114 |
<!ELEMENT fax (country_code?,area_code?,local_code)> |
|
115 |
<!ATTLIST fax description CDATA #FIXED "Facimilie telephone"> |
|
116 |
<!ELEMENT tdd_phone (country_code?,area_code?,local_code)> |
|
117 |
<!ATTLIST tdd_phone description CDATA #FIXED "TDD/TTY telephone"> |
|
118 |
<!ELEMENT country_code (#PCDATA)> |
|
119 |
<!ATTLIST country_code description CDATA #FIXED "Countrycode"> |
|
120 |
<!ELEMENT area_code (#PCDATA)> |
|
121 |
<!ATTLIST area_code description CDATA #FIXED "Area code"> |
|
122 |
<!ELEMENT local_code (#PCDATA)> |
|
123 |
<!ATTLIST local_code description CDATA #FIXED "Local phone code"> |
|
124 |
<!ELEMENT extension (#PCDATA)> |
|
125 |
<!ATTLIST extension description CDATA #FIXED "Phone extension code"> |
|
126 |
|
|
127 |
|
|
128 |
<!-- Class 2.A.1 - see Class 2.A --> |
|
129 |
|
|
130 |
<!-- Class 2.A.2 - see Class 2.A --> |
|
131 |
|
|
132 |
<!-- Class 2.A.3 --> |
|
133 |
<!ELEMENT temporal_description (temporal_coverage*, duration?)> |
|
134 |
<!ATTLIST temporal_description description CDATA #FIXED "General description of temporal coverage of project"> |
|
135 |
<!ELEMENT temporal_coverage (start_date,stop_date?)> |
|
136 |
<!ATTLIST temporal_coverage description CDATA #FIXED "Temporal coverage"> |
|
137 |
<!ELEMENT start_date (datetime)> |
|
138 |
<!ATTLIST start_date description CDATA #FIXED "Date data collection commenced"> |
|
139 |
<!ELEMENT datetime (year?, month?, day?, hour?, minute?, second?, second_fraction?, time_zone_designator?)> |
|
140 |
<!ATTLIST datetime description CDATA #FIXED "Date and time as designated in ISO 8601"> |
|
141 |
<!ELEMENT year (#PCDATA)> |
|
142 |
<!ATTLIST year description CDATA #FIXED "Year in YYYY format"> |
|
143 |
<!ELEMENT month (#PCDATA)> |
|
144 |
<!ATTLIST month description CDATA #FIXED "Month in MM format"> |
|
145 |
<!ELEMENT day (#PCDATA)> |
|
146 |
<!ATTLIST day description CDATA #FIXED "Day of month in DD format"> |
|
147 |
<!ELEMENT hour (#PCDATA)> |
|
148 |
<!ATTLIST hour description CDATA #FIXED "Hour in hh"> |
|
149 |
<!ELEMENT minute (#PCDATA)> |
|
150 |
<!ATTLIST minute description CDATA #FIXED "Minute in mm"> |
|
151 |
<!ELEMENT second (#PCDATA)> |
|
152 |
<!ATTLIST second description CDATA #FIXED "Seconds in ss"> |
|
153 |
<!ELEMENT second_fraction (#PCDATA)> |
|
154 |
<!ATTLIST second_fraction description CDATA #FIXED "One or more digits representing a decimal fraction of a second"> |
|
155 |
<!ELEMENT time_zone_designator (#PCDATA)> |
|
156 |
<!ATTLIST time_zone_designator description CDATA #FIXED "Time zone designator"> |
|
157 |
|
|
158 |
<!ELEMENT stop_date (datetime)> |
|
159 |
<!ATTLIST stop_date description CDATA #FIXED "Date data collection terminated"> |
|
160 |
|
|
161 |
<!ELEMENT duration (amount, unit)> |
|
162 |
<!ATTLIST duration description CDATA #FIXED "Duration of temporal coverage"> |
|
163 |
<!ELEMENT amount (#PCDATA) > |
|
164 |
<!ATTLIST amount description CDATA #FIXED "Amount"> |
|
165 |
<!ELEMENT unit (#PCDATA) > |
|
166 |
<!ATTLIST unit description CDATA #FIXED "Unit"> |
|
167 |
|
|
168 |
|
|
169 |
<!-- Class 2.A.4 --> |
|
170 |
<!ELEMENT objectives (paragraph+) > |
|
171 |
<!ATTLIST objectives description CDATA #FIXED "Scope and purpose of research program"> |
|
172 |
<!ELEMENT paragraph (#PCDATA)> |
|
173 |
<!ATTLIST paragraph description CDATA #FIXED "Paragraph of text"> |
|
174 |
|
|
175 |
<!-- Class 2.A.5 --> |
|
176 |
<!ELEMENT abstract (paragraph+)> |
|
177 |
<!ATTLIST abstract description CDATA #FIXED "Descriptive abstract"> |
|
178 |
|
|
179 |
|
|
180 |
<!-- Class 2.A.6 --> |
|
181 |
<!ELEMENT funding (paragraph+) > |
|
182 |
<!ATTLIST funding description CDATA #FIXED "Grant and contract numbers, names and addresses of funding sources"> |
|
183 |
|
|
184 |
|
|
185 |
<!-- Class 2.B --> |
|
186 |
<!-- Class 2.B (subproject) has been assimilated to research project --> |
|
187 |
|
|
188 |
<!-- Class 2.B.1 --> |
|
189 |
<!ELEMENT site_description (paragraph*, sitetype?, geography?, habitat?, geology?, hydrology?, history?, climate?)> |
|
190 |
<!ATTLIST site_description description CDATA #FIXED "Site description"> |
|
191 |
|
|
192 |
<!-- Class 2.B.1.a --> |
|
193 |
<!ELEMENT sitetype (paragraph+) > |
|
194 |
<!ATTLIST sitetype description CDATA #FIXED "Site type - description, e.g., short-grass prairie, blackwater stream, etc."> |
|
195 |
|
|
196 |
|
|
197 |
<!-- Class 2.B.1.b --> |
|
198 |
<!ELEMENT geography (coordinates*,paragraph*, citation*)> |
|
199 |
<!ATTLIST geography description CDATA #FIXED "Location and size"> |
|
200 |
<!ELEMENT coordinates (lattitude, longitude) > |
|
201 |
<!ATTLIST coordinates description CDATA #FIXED "Cartesian Coordinates"> |
|
202 |
<!ELEMENT lattitude (#PCDATA)> |
|
203 |
<!ATTLIST lattitude direction (north|south) #REQUIRED |
|
204 |
description CDATA #FIXED "Lattitude coordinates"> |
|
205 |
<!ELEMENT longitude (#PCDATA)> |
|
206 |
<!ATTLIST longitude direction (east|west) #REQUIRED |
|
207 |
description CDATA #FIXED "Longitude coordinates"> |
|
208 |
<!ELEMENT citation (author*, editor*, source_information?)> |
|
209 |
<!ATTLIST citation description CDATA #FIXED "Citation"> |
|
210 |
<!ELEMENT author (party)> |
|
211 |
<!ATTLIST author description CDATA #FIXED "Author"> |
|
212 |
<!ELEMENT editor (party)> |
|
213 |
<!ATTLIST editor description CDATA #FIXED "Editor"> |
|
214 |
<!ELEMENT source_information (title, vol?, issue?, pubdate?, |
|
215 |
publisher?, edition?, series?, chapter_title?, |
|
216 |
pages?, resource_url*)> |
|
217 |
<!ATTLIST source_information description CDATA #FIXED "Source information"> |
|
218 |
<!ELEMENT vol (#PCDATA)> |
|
219 |
<!ATTLIST vol description CDATA #FIXED "Volume"> |
|
220 |
<!ELEMENT issue (#PCDATA)> |
|
221 |
<!ATTLIST issue description CDATA #FIXED "Issue"> |
|
222 |
<!ELEMENT pubdate (datetime)> |
|
223 |
<!ATTLIST pubdate description CDATA #FIXED "Date of publication"> |
|
224 |
<!ELEMENT publisher (party)> |
|
225 |
<!ATTLIST publisher description CDATA #FIXED "Publisher"> |
|
226 |
<!ELEMENT edition (#PCDATA)> |
|
227 |
<!ATTLIST edition description CDATA #FIXED "Edition"> |
|
228 |
<!ELEMENT series (#PCDATA)> |
|
229 |
<!ATTLIST series description CDATA #FIXED "Series"> |
|
230 |
<!ELEMENT chapter_title (title)> |
|
231 |
<!ATTLIST chapter_title description CDATA #FIXED "Chapter title"> |
|
232 |
<!ELEMENT pages (#PCDATA)> |
|
233 |
<!ATTLIST pages description CDATA #FIXED "Pages"> |
|
234 |
|
|
235 |
|
|
236 |
<!-- Class 2.B.1.c --> |
|
237 |
<!ELEMENT habitat (paragraph*, citation*)> |
|
238 |
<!ATTLIST habitat description CDATA #FIXED "Detailed characteristics of habitat sampled"> |
|
239 |
|
|
240 |
<!-- Class 2.B.1.d --> |
|
241 |
<!ELEMENT geology (paragraph*, citation*)> |
|
242 |
<!ATTLIST geology description CDATA #FIXED "Geology and Landform"> |
|
243 |
|
|
244 |
|
|
245 |
<!-- Class 2.B.1.e --> |
|
246 |
<!ELEMENT hydrology (paragraph*, citation*)> |
|
247 |
<!ATTLIST hydrology description CDATA #FIXED "Hydrology"> |
|
248 |
|
|
249 |
<!-- Class 2.B.1.f --> |
|
250 |
<!ELEMENT history (paragraph*, citation*)> |
|
251 |
<!ATTLIST history description CDATA #FIXED "Site history"> |
|
252 |
|
|
253 |
<!-- Class 2.B.1.g --> |
|
254 |
<!ELEMENT climate (paragraph*, citation*)> |
|
255 |
<!ATTLIST climate description CDATA #FIXED "Site climatic characteristics"> |
|
256 |
|
|
257 |
<!-- Class 2.B.2 --> |
|
258 |
<!ELEMENT design_description (designmethod?, plots?, sampling?,paragraph*, citation*)> |
|
259 |
<!ATTLIST design_description description CDATA #FIXED "Experimental or Sampling design"> |
|
260 |
|
|
261 |
<!-- Class 2.B.2.a --> |
|
262 |
<!ELEMENT designmethod (paragraph*, citation*)> |
|
263 |
<!ATTLIST designmethod description CDATA #FIXED "Description of Statistical/sampling design"> |
|
264 |
|
|
265 |
<!-- Class 2.B.2.b --> |
|
266 |
<!ELEMENT plots (paragraph*,citation*) > |
|
267 |
<!ATTLIST plots description CDATA #FIXED "Permanent plot description"> |
|
268 |
|
|
269 |
<!-- Class 2.B.2.c --> |
|
270 |
<!ELEMENT sampling (temporal_coverage*, frequency?,paragraph*,citation*)> |
|
271 |
<!ATTLIST sampling description CDATA #FIXED "Information necessary to understand temporal sampling regime"> |
|
272 |
<!ELEMENT frequency (#PCDATA)> |
|
273 |
<!ATTLIST frequency description CDATA #FIXED "Frequency or period of data collection"> |
|
274 |
|
|
275 |
<!-- Class 2.B.3 --> |
|
276 |
<!ELEMENT methods_description (method*, instrument*, taxonomy*, permit*, legal_information*,paragraph*, citation*)> |
|
277 |
<!ATTLIST methods_description description CDATA #FIXED "Research Methods"> |
|
278 |
|
|
279 |
<!-- Class 2.B.3.a --> |
|
280 |
<!ELEMENT method (paragraph*, citation*)> |
|
281 |
<!ATTLIST method description CDATA #FIXED "Description or reference to field/laboratory methods"> |
|
282 |
|
|
283 |
<!-- Class 2.B.3.b --> |
|
284 |
<!ELEMENT instrument (paragraph*, citation*)> |
|
285 |
<!ATTLIST instrument description CDATA #FIXED "Description of Instruments used"> |
|
286 |
|
|
287 |
<!-- Class 2.B.3.c --> |
|
288 |
<!ELEMENT taxonomy (paragraph*, citation*)> |
|
289 |
<!ATTLIST taxonomy description CDATA #FIXED "Taxonomy information"> |
|
290 |
|
|
291 |
|
|
292 |
<!-- Class 2.B.3.d --> |
|
293 |
<!ELEMENT permit (paragraph+) > |
|
294 |
<!ATTLIST permit description CDATA #FIXED "References to pertinent scientific and collecting permits"> |
|
295 |
|
|
296 |
<!-- Class 2.B.3.e --> |
|
297 |
<!ELEMENT legal_information (paragraph+)> |
|
298 |
<!ATTLIST legal_information description CDATA #FIXED "Relevant laws, decision criteria, compliance standards"> |
|
299 |
|
|
300 |
<!-- Class 2.B.4 --> |
|
301 |
<!ELEMENT staff (party)> |
|
302 |
<!ATTLIST staff description CDATA #FIXED "Project Personell"> |
|
303 |
|
|
304 |
<!-- End of file --> |
|
305 | 0 |
lib/dtd/eml-variable.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
* Ecological Metadata Language (EML) - Data set variable descriptors |
|
3 |
* |
|
4 |
* Authors: Matt Jones, Zheng Wang, and Noah Goldstein |
|
5 |
* Organization: National Center for Ecological Analysis and Synthesis |
|
6 |
* For Details: http://www.nceas.ucsb.edu/ |
|
7 |
* Created: 1997 August 19 |
|
8 |
* Modified: 1999 June 23 |
|
9 |
* Version: 1.4 |
|
10 |
* File Info: '$Id$' |
|
11 |
* |
|
12 |
* Ecological Metadata Language is a general purpose metadata content |
|
13 |
* specification for documenting ecological data. The specification |
|
14 |
* consists of a series of modular document type definitions (DTD) that |
|
15 |
* provide metadata content descriptors. It describes the owner and |
|
16 |
* contents of the dataset (eml-dataset.dtd), the research context in |
|
17 |
* which it was created (eml-context.dtd), the structural |
|
18 |
* characteristics of data files (eml-file.dtd), the |
|
19 |
* characteristics of variables in a file (eml-variable.dtd), current |
|
20 |
* status of data and metadata files (eml-status.dtd), access control |
|
21 |
* rules regarding the data and metadata (eml-access.dtd), software |
|
22 |
* information (eml-software) and a variety of miscellaneous |
|
23 |
* supplemental descriptors (eml-supplement.dtd). |
|
24 |
* |
|
25 |
* Files generated under the structural constraints of eml are |
|
26 |
* plain-text files and therefore are editable in ordinary |
|
27 |
* text-processors. However, these DTDs are intended for use within |
|
28 |
* general purpose metadata editors, and within a more specific |
|
29 |
* metadata editor being developed at NCEAS for the ecological |
|
30 |
* community. This metadata editor will provide facilities for |
|
31 |
* version control and efficient metadata entry. |
|
32 |
* The purpose of this specification was to formalize the |
|
33 |
* Michener et al. work in a structured language to examine its |
|
34 |
* application to ecological data in a controlled manner. |
|
35 |
* |
|
36 |
* This specification was based on the work of the Ecological Society |
|
37 |
* of America's Committee on the Future of Long Term Data, and more |
|
38 |
* specifically on a related paper, Michener et al., 1997. See: |
|
39 |
* Michener, William K., et al., 1997. Ecological Appications, |
|
40 |
* "Nongeospatial metadata for the ecological sciences" |
|
41 |
* Vol 7(1). pp. 330-342. |
|
42 |
* |
|
43 |
* Where appropriate, we have used elements of the ISO/TC 211 draft |
|
44 |
* standard - the ISO Geographic information/Geomatics standard, |
|
45 |
* which includes xml code, as well as ISO 8601 schema. Some elements |
|
46 |
* in the ISO/TC 211 were expanded to allow for greater |
|
47 |
* resolution. |
|
48 |
* |
|
49 |
* For an explanation of the classes of metadata and elements defined |
|
50 |
* below, see Michener et al. 1997. In particular, the numbered comment |
|
51 |
* labels found below refer to Table 1 (pp. 336-337) of Michener |
|
52 |
* et al. 1997. In addition, each of the principal elements in the |
|
53 |
* specification is accompanied by a FIXED attribute called "description" |
|
54 |
* that provides a brief description of the content of the element. These |
|
55 |
* descriptions are derived from Michener et al. 1997. |
|
56 |
* |
|
57 |
--> |
|
58 |
|
|
59 |
<!-- * * * * |
|
60 |
CLASS IV B - VARIABLE DESCRIPTORS |
|
61 |
* * * * |
|
62 |
--> |
|
63 |
|
|
64 |
<!-- Class 4 B --> |
|
65 |
<!ELEMENT eml-variable (meta_file_id, variable*)> |
|
66 |
<!ATTLIST eml-variable description CDATA #FIXED "Variable description for a file"> |
|
67 |
|
|
68 |
<!ELEMENT meta_file_id (#PCDATA)> |
|
69 |
<!ATTLIST meta_file_id description CDATA #FIXED "Unique identifier of this metadata record"> |
|
70 |
|
|
71 |
<!ELEMENT variable (variable_name, variable_definition, unit?, storage_type?, |
|
72 |
code_definition* , numeric_range* , missing_value_code*, |
|
73 |
precision?, field_format?)> |
|
74 |
<!ATTLIST variable description CDATA #FIXED "Variable information"> |
|
75 |
<!ELEMENT unit (#PCDATA) > |
|
76 |
<!ATTLIST unit description CDATA #FIXED "Unit"> |
|
77 |
|
|
78 |
<!-- Class 4.B.1 --> |
|
79 |
<!ELEMENT variable_name (#PCDATA) > |
|
80 |
<!ATTLIST variable_name description CDATA #FIXED "Unique variable name or code"> |
|
81 |
|
|
82 |
<!-- Class 4.B.2 --> |
|
83 |
<!ELEMENT variable_definition (#PCDATA)> |
|
84 |
<!ATTLIST variable_definition description CDATA #FIXED "Precise definition of variables in data set"> |
|
85 |
|
|
86 |
<!-- Class 4.B.3 - see 4.A.2 --> |
|
87 |
|
|
88 |
<!-- Class 4.B.4.a --> |
|
89 |
<!ELEMENT storage_type (#PCDATA) > |
|
90 |
<!ATTLIST storage_type description CDATA #FIXED "Storage type; Integer, floating point, character, string"> |
|
91 |
|
|
92 |
<!-- Class 4.B.4.b --> |
|
93 |
<!ELEMENT code_definition (code, definition) > |
|
94 |
<!ATTLIST code_definition description CDATA #FIXED "Description of any codes associated with variables"> |
|
95 |
<!ELEMENT code (#PCDATA) > |
|
96 |
<!ATTLIST code description CDATA #FIXED "Code"> |
|
97 |
<!ELEMENT definition (#PCDATA) > |
|
98 |
<!ATTLIST definition description CDATA #FIXED "List and definition of variable codes"> |
|
99 |
|
|
100 |
<!-- Class 4.B.4.c --> |
|
101 |
<!ELEMENT numeric_range (minimum?,maximum?) > |
|
102 |
<!ATTLIST numeric_range description CDATA #FIXED "Range for numeric values"> |
|
103 |
<!ELEMENT minimum (#PCDATA) > |
|
104 |
<!ATTLIST minimum description CDATA #FIXED "Minimum value"> |
|
105 |
<!ELEMENT maximum (#PCDATA) > |
|
106 |
<!ATTLIST maximum description CDATA #FIXED "Maximum value"> |
|
107 |
|
|
108 |
<!-- Class 4.B.4.d --> |
|
109 |
<!ELEMENT missing_value_code (#PCDATA) > |
|
110 |
<!ATTLIST missing_value_code description CDATA #FIXED "Character used to represent missing data"> |
|
111 |
|
|
112 |
<!-- Class 4.B.4.e --> |
|
113 |
<!ELEMENT precision (#PCDATA) > |
|
114 |
<!ATTLIST precision description CDATA #FIXED "Precision; number of significant digits"> |
|
115 |
|
|
116 |
<!-- Class 4.B.5 --> |
|
117 |
<!ELEMENT field_format (variable_width|fixed_width)> |
|
118 |
<!ATTLIST field_format description CDATA #FIXED "Data format"> |
|
119 |
|
|
120 |
<!-- |
|
121 |
Data sets are generally classified as fixed_width format or |
|
122 |
variable_width format, but we have determined that this is actually a |
|
123 |
per-field classification because one may encounter fixed_width fields |
|
124 |
mixed together in the same data file with variable_width fields. |
|
125 |
|
|
126 |
In our encoding scheme, the start of each field is assumed to be the |
|
127 |
column after the last column of the previous field, or the first column |
|
128 |
if this is the first field in the dataset. The end column for each |
|
129 |
field is classified using a field_format and some information specific to |
|
130 |
each field_format type that indicates in which column the field ends. The |
|
131 |
two types of field formats are variable_width and fixed_width. |
|
132 |
Variable_width fields can vary in their field length, and the end of the |
|
133 |
field is delimited by a special character called a field delimiter, |
|
134 |
usually a comma or a tab character. Fixed_width fields have a set |
|
135 |
length, and so the end of the field can always be determined by adding |
|
136 |
the field_width to the starting column number. Here is an example: |
|
137 |
|
|
138 |
Assume we have the following data in a data set: |
|
139 |
|
|
140 |
May,100aaa,1.2, |
|
141 |
April,200aaa,3.4, |
|
142 |
June,300bbb,4.6, |
|
143 |
|
|
144 |
The metadata for the 4 fields would include the following: |
|
145 |
<variable><name>month</name> |
|
146 |
<field_format><variable_width><delimiter>,</delimiter> |
|
147 |
</variable_width></field_format></variable> |
|
148 |
|
|
149 |
<variable><name>sitecode</name> |
|
150 |
<field_format><fixed_width><field_width>3</field_width> |
|
151 |
</fixed_width></field_format></variable> |
|
152 |
|
|
153 |
<variable><name>subsitecode</name> |
|
154 |
<field_format><fixed_width><field_width>3</field_width> |
|
155 |
</fixed_width></field_format></variable> |
|
156 |
|
|
157 |
<variable><name>response</name> |
|
158 |
<field_format><variable_width><delimiter>,</delimiter> |
|
159 |
</variable_width></field_format></variable> |
|
160 |
|
|
161 |
--> |
|
162 |
|
|
163 |
<!ELEMENT variable_width (delimiter+)> |
|
164 |
<!ATTLIST variable_width description CDATA #FIXED "Variable width field"> |
|
165 |
<!ELEMENT delimiter (#PCDATA)> |
|
166 |
<!ATTLIST delimiter description CDATA #FIXED "Character used to delimit end of field"><!ELEMENT fixed_width (field_width)> |
|
167 |
<!ATTLIST fixed_width description CDATA #FIXED "Fixed width field"> |
|
168 |
<!ELEMENT field_width (#PCDATA)> |
|
169 |
<!ATTLIST field_width description CDATA #FIXED "Width of field in characters"> |
|
170 |
|
|
171 |
<!-- Class 4.B.5.a - see Class 4.B.5 --> |
|
172 |
|
|
173 |
<!-- Class 4.B.5.b - see Class 4.B.5 --> |
|
174 |
|
|
175 |
<!-- Class 4.B.5.c --> |
|
176 |
<!-- This section was removed as we were unsure of its usefullness --> |
|
177 |
|
|
178 |
<!-- End of file --> |
|
179 |
|
|
180 | 0 |
lib/dtd/eml-dataset.dtd | ||
---|---|---|
1 |
<!-- |
|
2 |
* Ecological Metadata Language (EML) - General data set descriptors |
|
3 |
* |
|
4 |
* Authors: Matt Jones, Zheng Wang, and Noah Goldstein |
|
5 |
* Organization: National Center for Ecological Analysis and Synthesis |
|
6 |
* For Details: http://www.nceas.ucsb.edu/ |
|
7 |
* Created: 1997 August 19 |
|
8 |
* Modified: 1999 June 23 |
|
9 |
* Version: 1.4 |
|
10 |
* File Info: '$Id$' |
|
11 |
* |
|
12 |
* Ecological Metadata Language is a general purpose metadata content |
|
13 |
* specification for documenting ecological data. The specification |
|
14 |
* consists of a series of modular document type definitions (DTD) that |
|
15 |
* provide metadata content descriptors. It describes the owner and |
|
16 |
* contents of the dataset (eml-dataset.dtd), the research context in |
|
17 |
* which it was created (eml-context.dtd), the structural |
|
18 |
* characteristics of data files (eml-file.dtd), the |
|
19 |
* characteristics of variables in a file (eml-variable.dtd), current |
|
20 |
* status of data and metadata files (eml-status.dtd), access control |
|
21 |
* rules regarding the data and metadata (eml-access.dtd), software |
|
22 |
* information (eml-software) and a variety of miscellaneous |
|
23 |
* supplemental descriptors (eml-supplement.dtd). |
|
24 |
* |
|
25 |
* Files generated under the structural constraints of eml are |
|
26 |
* plain-text files and therefore are editable in ordinary |
|
27 |
* text-processors. However, these DTDs are intended for use within |
|
28 |
* general purpose metadata editors, and within a more specific |
|
29 |
* metadata editor being developed at NCEAS for the ecological |
|
30 |
* community. This metadata editor will provide facilities for |
|
31 |
* version control and efficient metadata entry. |
|
32 |
* The purpose of this specification was to formalize the |
|
33 |
* Michener et al. work in a structured language to examine its |
|
34 |
* application to ecological data in a controlled manner. |
|
35 |
* |
|
36 |
* This specification was based on the work of the Ecological Society |
|
37 |
* of America's Committee on the Future of Long Term Data, and more |
|
38 |
* specifically on a related paper, Michener et al., 1997. See: |
|
39 |
* Michener, William K., et al., 1997. Ecological Appications, |
|
40 |
* "Nongeospatial metadata for the ecological sciences" |
|
41 |
* Vol 7(1). pp. 330-342. |
|
42 |
* |
|
43 |
* Where appropriate, we have used elements of the ISO/TC 211 draft |
|
44 |
* standard - the ISO Geographic information/Geomatics standard, |
Also available in: Unified diff
Removed all DTDs from the metacat module in anticipation of getting
them from the standard "mdstandards/eml" module. This will mean
that an update to the build script is necessary in order to copy and rename
the dtds from the eml module.