<?xml version="1.0" encoding="utf-8"?>
<!--
        This is a complete sample of the GBIF Extended Metadata Profile for the IPT 1.1 represented as EML
        This is the reference sample for Unit testing on consumption and output of the IPT
        The content of this metadata are NOT real data, but drafted just for this sample
        -->
<eml:eml xmlns:eml="eml://ecoinformatics.org/eml-2.1.1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:dc="http://purl.org/dc/terms/"
    xsi:schemaLocation="eml://ecoinformatics.org/eml-2.1.1 eml.xsd"
    xml:lang="en"
    packageId="619a4b95-1a82-4006-be6a-7dbe3c9b33c5/v7" system="http://gbif.org" scope="system">

    <!-- The IPT is concerned with descriptions of datasets only -->
    <dataset>
        <!-- IPT has only 1 identifier -->
        <alternateIdentifier>619a4b95-1a82-4006-be6a-7dbe3c9b33c5</alternateIdentifier>
        <title xml:lang="en">Tanzanian Entomological Collection</title>
        <title xml:lang="de">Entymologische Sammlung Tansania</title>

        <!-- The creator is the person who created the resource (not necessarily the
                        author of this metadata about the resource) -->
        <creator>
            <individualName>
                <givenName>David</givenName>
                <surName>Remsen</surName>
            </individualName>
            <organizationName>GBIF</organizationName>
            <positionName>ECAT Programme Officer</positionName>
            <address>
           		<deliveryPoint>Universitestparken 15</deliveryPoint>
                <city>Copenhagen</city>
                <administrativeArea>Sjaelland</administrativeArea>
                <postalCode>2100</postalCode>
                <country>DK</country>
            </address>
            <phone>+4528261487</phone>
            <electronicMailAddress>dremsen@gbif.org</electronicMailAddress>
            <onlineUrl>http://www.gbif.org</onlineUrl>
        </creator>

        <!-- The responsible party for the creation of the metadata -->
        <metadataProvider>
            <individualName>
            	<givenName>Tim</givenName>
                <surName>Robertson</surName>
            </individualName>
            <address>
                <deliveryPoint>Universitestparken 15</deliveryPoint>
                <city>Copenhagen</city>
                <administrativeArea>Copenhagen</administrativeArea>
                <postalCode>2100</postalCode>
                <country>DK</country>
            </address>
            <phone>+4528261487</phone>
            <electronicMailAddress>trobertson@gbif.org</electronicMailAddress>
            <onlineUrl>http://www.gbif.org</onlineUrl> 
        </metadataProvider>

        <!-- Note that associated parties have roles -->
        <associatedParty>
            <individualName>
                <surName>Doering</surName>
            </individualName>
            <phone>4535321487</phone>
            <!-- The IPT will define a controlled vocabulary for this term -->
            <role>principleInvestigator</role>
        </associatedParty>
        <associatedParty>
            <individualName>
                <surName>Hahn</surName>
            </individualName>
            <phone>4535321478</phone>
            <!-- The IPT will define a controlled vocabulary for this term -->
            <role>pointOfContact</role>
        </associatedParty>

        <!-- Identified in the Other section of the GBIF Extended Metadata Doc -->
        <pubDate>2010-02-02</pubDate>

        <!-- Identified in the Other section of the GBIF Extended Metadata Doc -->
        <!-- This is the RESOURCE language and not the metadata language which is at the bottom -->
        <language>en_US</language>

        <!-- The brief overview -->
        <abstract>
            <para>Specimens in jars</para>
        </abstract>

        <!-- Keywords can optionally reference a thesaurus -->
        <keywordSet>
            <keyword>Insect</keyword>
            <keyword>Fly</keyword>
            <keyword>Bee</keyword>
            <keywordThesaurus> Zoology Vocabulary Version 1 </keywordThesaurus>
        </keywordSet>
        <keywordSet>
            <keyword>Spider</keyword>
            <keywordThesaurus> Zoology Vocabulary Version 1 </keywordThesaurus>
        </keywordSet>

        <!-- Not mentioned in the GBIF Extended Metadata Doc but seems sensible to keep this element -->
        <additionalInfo>
            <para>Where can the additional information possibly come from?!</para>
        </additionalInfo>

        <!-- Identified in the Other section of the GBIF Extended Metadata Doc -->
        <intellectualRights>
            <para>Owner grants XXX a worldwide, non-exclusive right to: (i) use, reproduce, perform,
                display, archive, transmit and distribute the Content (including any trademarks,
                tradenames and logos in the Content) in electronic form in connection with the Site,
                (ii) allow users of the Site to use, search, copy, download and transmit the
                Content, and (iii) modify and reformat the Content, but solely to the extent
                necessary and for the purposes of: (a) conforming to the format and "look and feel"
                of the Site, and (b) creating snippets, headlines or teasers consisting of selected
                lines or sections from the Content to be displayed on the Site (or displayed on
                other websites owned by XXX for the purposes of directing traffic to the Site).
            </para>
        </intellectualRights>


        <!-- The distributionType URL is generally meant for informational purposes, and the "function" attribute should be set to "information". -->
        <distribution scope="document">
            <online>
                <url function="information"> http://www.any.org/fauna/coleoptera/beetleList.html
                </url>
            </online>
        </distribution>

        <!-- 3 types of coverage are supported with example repetition -->
        <coverage>
            <geographicCoverage>
                <geographicDescription>Bounding Box 1</geographicDescription>
                <boundingCoordinates>
                    <westBoundingCoordinate>-1.564</westBoundingCoordinate>
                    <eastBoundingCoordinate>0.703</eastBoundingCoordinate>
                    <northBoundingCoordinate>23.975</northBoundingCoordinate>
                    <southBoundingCoordinate>-22.745</southBoundingCoordinate>
                </boundingCoordinates>
            </geographicCoverage>
            <geographicCoverage>
                <geographicDescription>Bounding Box 2</geographicDescription>
                <boundingCoordinates>
                    <westBoundingCoordinate>-10.703</westBoundingCoordinate>
                    <eastBoundingCoordinate>11.564</eastBoundingCoordinate>
                    <northBoundingCoordinate>43.975</northBoundingCoordinate>
                    <southBoundingCoordinate>-32.745</southBoundingCoordinate>
                </boundingCoordinates>
            </geographicCoverage>
            <temporalCoverage>
                <rangeOfDates>
                    <beginDate>
                        <calendarDate>2009-12-01</calendarDate>
                    </beginDate>
                    <endDate>
                        <calendarDate>2009-12-30</calendarDate>
                    </endDate>
                </rangeOfDates>
            </temporalCoverage>
            <temporalCoverage>
                <singleDateTime>
                    <calendarDate>2008-06-01</calendarDate>
                </singleDateTime>
            </temporalCoverage>
            <taxonomicCoverage>
                <generalTaxonomicCoverage>This is a general taxon coverage with only the scientific name</generalTaxonomicCoverage>
                <taxonomicClassification>
                    <taxonRankValue>Mammalia</taxonRankValue>
                </taxonomicClassification>
                <taxonomicClassification>
                    <taxonRankValue>Reptilia</taxonRankValue>
                </taxonomicClassification>
                <taxonomicClassification>
                    <taxonRankValue>Coleoptera</taxonRankValue>
                </taxonomicClassification>
            </taxonomicCoverage>
            <taxonomicCoverage>
                <generalTaxonomicCoverage>This is a second taxon coverage with all fields</generalTaxonomicCoverage>
                <taxonomicClassification>
                    <taxonRankName>Class</taxonRankName>
                    <taxonRankValue>Aves</taxonRankValue>
                    <commonName>Birds</commonName>
                </taxonomicClassification>
            </taxonomicCoverage>
        </coverage>

        <!-- Not mentioned in the GBIF Extended Metadata Doc but seems sensible to keep this element -->
        <purpose>
            <para>Provide data to the whole world.</para>
        </purpose>

        <!-- This is mandatory in EML
                        In terms of the IPT, propose this be the same as the and should be the same as the <creator/>
                        Therefore, it can be ignored in Parsing, but needs to be created in the output rendering
                        -->
        <contact>
            <individualName>
                <givenName>David</givenName>
                <surName>Remsen</surName>
            </individualName>
            <organizationName>GBIF</organizationName>
            <positionName>ECAT Programme Officer</positionName>
            <address>
            	<deliveryPoint>Universitestparken 15</deliveryPoint>
                <city>Copenhagen</city>
                <administrativeArea>Sjaelland</administrativeArea>
                <postalCode>2100</postalCode>
                <country>DK</country>
            </address>
            <phone>+4528261487</phone>
            <electronicMailAddress>dremsen@gbif.org</electronicMailAddress>
            <onlineUrl>http://www.gbif.org</onlineUrl>
        </contact>

        <!-- Methods used -->
        <methods>
            <methodStep>
                <description>
                    <para>Took picture, identified</para>
                </description>
            </methodStep>
            <sampling>
                <studyExtent>
                    <description>
                    	<para>Daily Obersevation of Pigeons Eating Habits</para>
                    </description>
                </studyExtent>
                <samplingDescription>
                    <para>44KHz is what a CD has... I was more like one a day if I felt like it</para>
                </samplingDescription>
            </sampling>
            <qualityControl>
                <description>
                    <para>None</para>
                </description>
            </qualityControl>
            <!-- This step deliberately has no QC-->
            <methodStep>
                <description>
                    <para>Themometer based test</para>
                </description>
            </methodStep>
            <!-- This step deliberately has no Sampling or QC -->
            <methodStep>
                <description>
                    <para>Visual based test</para>
                </description>
            </methodStep>
        </methods>


        <project>
            <title>Documenting Some Asian Birds and Insects</title>
            <personnel>
                <individualName>
                    <surName>Remsen</surName>
                </individualName>
                <role>publisher</role>
            </personnel>
            <funding>
                <para>My Deep Pockets</para>
            </funding>
            <studyAreaDescription>
                <descriptor name="generic" citableClassificationSystem="false">
                    <descriptorValue>Turkish Mountains</descriptorValue>
                </descriptor>
            </studyAreaDescription>
            <designDescription>
                <description> This was done in Avian Migration patterns </description>
            </designDescription>
        </project>

    </dataset>


    <additionalMetadata>
        <metadata>
            <gbif>
                <!-- eml file creation date -->
                <dateStamp>2002-10-23</dateStamp>          

                <!-- level to which the metadata dcoument applies; default for GBIF is "dataset";  "series" is the other common level -->
                <hierarchyLevel> dataset </hierarchyLevel>

                <!-- a citation for a "names" dataset -->
            <!-- Seems strange that there is no obvious place for citation in the /eml/dataset
              Could be this can find a better home in the future -->
            <citation> Tims assembled checklist </citation>
            <!-- citations of resources used, e.g., in a checklist -->
            <bibliography>
                <citation>title 1</citation>
                <citation>title 2</citation>
                <citation>title 3</citation>
            </bibliography>
            
            <!-- Note the repetition -->
            <physical>
                <objectName>INV-GCEM-0305a1_1_1.shp</objectName>
                <characterEncoding>ASCII</characterEncoding>
                <dataFormat>
                    <externallyDefinedFormat>
                        <formatName>shapefile</formatName>
                        <formatVersion>2.0</formatVersion>
                    </externallyDefinedFormat>
                </dataFormat>
                <distribution>
                    <online>
                        <url function="download"
                            >http://metacat.lternet.edu/knb/dataAccessServlet?docid=knb-lter-gce.109.10&amp;urlTail=accession=INV-GCEM-0305a1&amp;filename=INV-GCEM-0305a1_1_1.TXT</url>
                    </online>
                </distribution>
            </physical>
            <physical>
                <objectName>INV-GCEM-0305a1_1_2.shp</objectName>
                <characterEncoding>ASCII</characterEncoding>
                <dataFormat>
                    <externallyDefinedFormat>
                        <formatName>shapefile</formatName>
                        <formatVersion>2.0</formatVersion>
                    </externallyDefinedFormat>
                </dataFormat>
                <distribution>
                    <online>
                        <url function="download"
                            >http://metacat.lternet.edu/knb/dataAccessServlet?docid=knb-lter-gce.109.10&amp;urlTail=accession=INV-GCEM-0305a1&amp;filename=INV-GCEM-0305a1_1_2.TXT</url>
                    </online>
                </distribution>
            </physical>
                
                <!-- URL of the logo associated with a resource -->
                <resourceLogoUrl>http://www.tim.org/logo.jpg</resourceLogoUrl>
                
                <!-- This combines 3 optional fields in one section, and dictates the format output by the IPT -->
                <collection>
                    <parentCollectionIdentifier>urn:lsid:tim.org:12:1</parentCollectionIdentifier>
                    <collectionIdentifier>urn:lsid:tim.org:12:2</collectionIdentifier>
                    <collectionName>Mammals</collectionName>
                </collection>

                <!-- derived from NHC  -->
                <formationPeriod> During the 70s </formationPeriod>
                
                <!-- derived from NHC  -->
            <specimenPreservationMethod> alcohol </specimenPreservationMethod>
            <!-- derived from NHC  -->
            <livingTimePeriod> Jurassic </livingTimePeriod>

                <!-- for quantifying natural history collections datasets  -->
                <jgtiCuratorialUnit>
                    <!-- a choice of jgtiUnits or jgtiUnitRange -->
                    <!-- TODO: add a second test case with this one -->
                    <jgtiUnitType>jars</jgtiUnitType>
                    <jgtiUnitRange>
                        <beginRange>500</beginRange>
                        <endRange>600</endRange>
                    </jgtiUnitRange>
                </jgtiCuratorialUnit>
                
            </gbif>
        </metadata>
    </additionalMetadata>

</eml:eml>
