<?xml version="1.0"?>

<eml:eml xmlns:ds="eml://ecoinformatics.org/dataset-2.0.1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:eml="eml://ecoinformatics.org/eml-2.0.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:res="eml://ecoinformatics.org/resource-2.0.1" xmlns:doc="eml://ecoinformatics.org/documentation-2.0.1" xmlns:stmml="http://www.xml-cml.org/schema/stmml" xmlns:sw="eml://ecoinformatics.org/software-2.0.1" xmlns:prot="eml://ecoinformatics.org/protocol-2.0.1" xmlns:cit="eml://ecoinformatics.org/literature-2.0.1" xsi:schemaLocation="eml://ecoinformatics.org/eml-2.0.1 eml.xsd" packageId="er-2008-ex1.1.1" system="knb" scope="system">

  <dataset scope="document">

    <title>ER 2008 Example 1</title>

    <creator scope="document">
      <individualName>
        <givenName>Shawn</givenName>
        <surName>Bowers</surName>
      </individualName>
    </creator>

    <pubDate>2008</pubDate>

    <keywordSet>
      <keyword>tree</keyword>
    </keywordSet>

    <contact scope="document">
      <individualName>
        <givenName>Shawn</givenName>
        <surName>Bowers</surName>
      </individualName>
    </contact>

    <access authSystem="knb" order="allowFirst" scope="document">
      <allow>
        <principal>public</principal>
        <permission>read</permission>
      </allow>
    </access>

    <dataTable scope="document">
      <entityName>er-2008-ex1-data.txt</entityName>
      <entityDescription>2008 ER Example 1 Data</entityDescription>
      <physical scope="document">
        <objectName>er-2008-ex1-data.txt</objectName>
        <dataFormat>
          <textFormat>
            <numHeaderLines>1</numHeaderLines>
            <attributeOrientation>column</attributeOrientation>
            <simpleDelimited>
              <fieldDelimiter>,</fieldDelimiter>
            </simpleDelimited>
          </textFormat>
        </dataFormat>
        <distribution scope="document">
			<online>
				<url function="download">https://code.ecoinformatics.org/code/semtools/trunk/dev/sms/examples/er-2008-ex1-data.txt</url>
			</online>
		</distribution>
      </physical>

      <attributeList>

        <attribute id="tree" scope="document">
          <attributeName>tree</attributeName>
          <attributeLabel>tree</attributeLabel>
	  <attributeDefinition>Tree id</attributeDefinition>
          <measurementScale>
            <nominal>
              <nonNumericDomain>
                <textDomain>
                  <definition>Number assigned to trees.</definition>
                </textDomain>
              </nonNumericDomain>
            </nominal>
          </measurementScale>
        </attribute>

        <attribute id="spp" scope="document">
          <attributeName>spp</attributeName>
          <attributeLabel>spp</attributeLabel>
          <attributeDefinition>Species name.</attributeDefinition>
          <measurementScale>
            <nominal>
              <nonNumericDomain>
                <enumeratedDomain enforced="yes">
                  <codeDefinition>
                    <code>piru</code>
                    <definition>Picea rubens</definition>
                  </codeDefinition>
                  <codeDefinition>
                    <code>abba</code>
                    <definition>Abies balsamea</definition>
                  </codeDefinition>
                </enumeratedDomain>
              </nonNumericDomain>
            </nominal>
          </measurementScale>
        </attribute>

        <attribute id="yr" scope="document">
          <attributeName>yr</attributeName>
          <attributeLabel>yr</attributeLabel>
          <attributeDefinition>Sampling Date</attributeDefinition>
          <measurementScale>
            <datetime>
              <formatString>YYYY</formatString>
            </datetime>
          </measurementScale>
        </attribute>

        <attribute id="dbh" scope="document">
          <attributeName>dbh</attributeName>
          <attributeLabel>dbh</attributeLabel>
          <attributeDefinition>Diameter at breast height</attributeDefinition>
          <measurementScale>
            <ratio>
              <unit>
                <standardUnit>meter</standardUnit>
              </unit>
              <numericDomain>
                <numberType>real</numberType>
              </numericDomain>
            </ratio>
          </measurementScale>
        </attribute>

      </attributeList>

    </dataTable>
  </dataset>

</eml:eml>