<?xml version="1.0" encoding="UTF-8"?>
<xs:schema 
    version="2015-03-19"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://rs.tdwg.org/dwc/terms/"
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:dcelem="http://purl.org/dc/elements/1.1/"
    xmlns:dwc="http://rs.tdwg.org/dwc/terms/">
    <xs:annotation>
        <xs:documentation xml:lang="en">
            The Generic Darwin Core schema defining all property terms as global elements.
            
            Domain classes are not defined here, but in a separate schema (tdwg_dwcclasses.xsd) with the same namespace.            
            There are two ways in which references to domains can be defined:
            a) through an abstract base term anyXXXTerm, which is derived from the type dwc:anyPropery and which all properties
               for that domain use as their substitution group. If you refer to dwc:anyXXXTerm in your schema, you will be able 
               to reference any of the terms, but it will be impossible to create a sequence of all terms occurring only once. 
            b) through a group of elements called XXXTerms, which reference properties exactly once as a sequence. 
               This group can be used to refer to all the domain properties only once. In order to make a property required, you 
               must create your own group referring to the individual dwc terms. 
               If you want to specify every term once at most and in any order, you will also have to refer to the individual dwc 
               term yourself - a limitation of the xs:all model.
        </xs:documentation>
    </xs:annotation>
    <!-- tdwg_basetypes.xsd defines custom data types such as dateTimeISO to allow dates or the forms YYYY and YYYY-MM. -->
    <xs:include schemaLocation="tdwg_basetypes.xsd"/>
    <xs:import namespace="http://purl.org/dc/terms/" schemaLocation="http://dublincore.org/schemas/xmls/qdc/2008/02/11/dcterms.xsd"/>
    <xs:import namespace="http://purl.org/dc/elements/1.1/" schemaLocation="http://dublincore.org/schemas/xmls/qdc/dc.xsd"/>
    <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/03/xml.xsd"/>
    <!-- ANY DWC TERM -->
    <xs:element name="any" abstract="true"/>
    <!-- ANY DWC IDENTIFIER -->
    <xs:element name="anyIdentifier" abstract="true" substitutionGroup="dwc:any"/>
    <xs:group name="IdentifierTerms">
        <xs:annotation>
            <xs:documentation>Group of all Darwin Core identifier terms as a convenience to construct other schemas</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element ref="dwc:occurrenceID" minOccurs="0"/>
            <xs:element ref="dwc:organismID" minOccurs="0"/>
            <xs:element ref="dwc:materialSampleID" minOccurs="0"/>
            <xs:element ref="dwc:eventID" minOccurs="0"/>
            <xs:element ref="dwc:locationID" minOccurs="0"/>
            <xs:element ref="dwc:geologicalContextID" minOccurs="0"/>
            <xs:element ref="dwc:identificationID" minOccurs="0"/>
            <xs:element ref="dwc:taxonID" minOccurs="0"/>
            <xs:element ref="dwc:resourceRelationshipID" minOccurs="0"/>
            <xs:element ref="dwc:measurementID" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- ANY DWC PROPERTY TERM -->
    <xs:element name="anyProperty" abstract="true" substitutionGroup="dwc:any"/>
    <!-- type="dwc:simpleProperty"  -->
    <!-- ANY DWC CLASS TERM -->
    <xs:element name="anyClass" abstract="true" substitutionGroup="dwc:any"/>
    <!-- 
        All TERMS listed BY domain
        Every domain has its own substitutionGroup
    -->
    <!-- RECORD-LEVEL domainless terms -->
    <xs:element name="anyRecordLevelTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <!-- domain properties -->
    <!-- the Dublin Core terms applicable for Darwin Core are defined in the dublin_core.xsd and use this substitution group -->
    <xs:element name="institutionID" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="collectionID" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="datasetID" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="institutionCode" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="collectionCode" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="datasetName" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="ownerInstitutionCode" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="basisOfRecord" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="informationWithheld" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="dataGeneralizations" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:element name="dynamicProperties" substitutionGroup="dwc:anyRecordLevelTerm" type="xs:string"/>
    <xs:group name="RecordLevelTerms">
        <xs:sequence>
            <xs:element ref="dcterms:type" minOccurs="0"/>
            <xs:element ref="dcterms:modified" minOccurs="0"/>
            <xs:element ref="dcterms:language" minOccurs="0"/>
            <xs:element ref="dcterms:license" minOccurs="0"/>
            <xs:element ref="dcterms:rightsHolder" minOccurs="0"/>
            <xs:element ref="dcterms:accessRights" minOccurs="0"/>
            <xs:element ref="dcterms:bibliographicCitation" minOccurs="0"/>
            <xs:element ref="dcterms:references" minOccurs="0"/>
            <xs:element ref="dwc:institutionID" minOccurs="0"/>
            <xs:element ref="dwc:collectionID" minOccurs="0"/>
            <xs:element ref="dwc:datasetID" minOccurs="0"/>
            <xs:element ref="dwc:institutionCode" minOccurs="0"/>
            <xs:element ref="dwc:collectionCode" minOccurs="0"/>
            <xs:element ref="dwc:datasetName" minOccurs="0"/>
            <xs:element ref="dwc:ownerInstitutionCode" minOccurs="0"/>
            <xs:element ref="dwc:basisOfRecord" minOccurs="0"/>
            <xs:element ref="dwc:informationWithheld" minOccurs="0"/>
            <xs:element ref="dwc:dataGeneralizations" minOccurs="0"/>
            <xs:element ref="dwc:dynamicProperties" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- OCCURRENCE domain -->
    <xs:element name="anyOccurrenceTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="occurrenceID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="catalogNumber" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="recordNumber" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="recordedBy" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="individualCount" type="xs:positiveInteger" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="organismQuantity" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="organismQuantityType" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="sex" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="lifeStage" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="reproductiveCondition" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="behavior" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="establishmentMeans" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="occurrenceStatus" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="preparations" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="disposition" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="associatedMedia" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="associatedReferences" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="associatedSequences" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="associatedTaxa" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="otherCatalogNumbers" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:element name="occurrenceRemarks" type="xs:string" substitutionGroup="dwc:anyOccurrenceTerm"/>
    <xs:group name="OccurrenceTerms">
        <xs:sequence>
            <xs:element ref="dwc:catalogNumber" minOccurs="0"/>
            <xs:element ref="dwc:recordNumber" minOccurs="0"/>
            <xs:element ref="dwc:recordedBy" minOccurs="0"/>
            <xs:element ref="dwc:individualCount" minOccurs="0"/>
            <xs:element ref="dwc:organismQuantity" minOccurs="0"/>
            <xs:element ref="dwc:organismQuantityType" minOccurs="0"/>
            <xs:element ref="dwc:sex" minOccurs="0"/>
            <xs:element ref="dwc:lifeStage" minOccurs="0"/>
            <xs:element ref="dwc:reproductiveCondition" minOccurs="0"/>
            <xs:element ref="dwc:behavior" minOccurs="0"/>
            <xs:element ref="dwc:establishmentMeans" minOccurs="0"/>
            <xs:element ref="dwc:occurrenceStatus" minOccurs="0"/>
            <xs:element ref="dwc:preparations" minOccurs="0"/>
            <xs:element ref="dwc:disposition" minOccurs="0"/>
            <xs:element ref="dwc:associatedMedia" minOccurs="0"/>
            <xs:element ref="dwc:associatedReferences" minOccurs="0"/>
            <xs:element ref="dwc:associatedSequences" minOccurs="0"/>
            <xs:element ref="dwc:associatedTaxa" minOccurs="0"/>
            <xs:element ref="dwc:otherCatalogNumbers" minOccurs="0"/>
            <xs:element ref="dwc:occurrenceRemarks" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- ORGANISM domain -->
    <xs:element name="anyOrganismTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="organismID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="organismName" type="xs:string" substitutionGroup="dwc:anyOrganismTerm"/>
    <xs:element name="organismScope" type="xs:string" substitutionGroup="dwc:anyOrganismTerm"/>
    <xs:element name="associatedOccurrences" type="xs:string" substitutionGroup="dwc:anyOrganismTerm"/>
    <xs:element name="associatedOrganisms" type="xs:string" substitutionGroup="dwc:anyOrganismTerm"/>
    <xs:element name="previousIdentifications" type="xs:string" substitutionGroup="dwc:anyOrganismTerm"/>
    <xs:element name="organismRemarks" type="xs:string" substitutionGroup="dwc:anyOrganismTerm"/>
    <xs:group name="OrganismTerms">
        <xs:sequence>
            <xs:element ref="dwc:organismName" minOccurs="0"/>
            <xs:element ref="dwc:organismScope" minOccurs="0"/>
            <xs:element ref="dwc:associatedOccurrences" minOccurs="0"/>
            <xs:element ref="dwc:associatedOrganisms" minOccurs="0"/>
            <xs:element ref="dwc:previousIdentifications" minOccurs="0"/>
            <xs:element ref="dwc:organismRemarks" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- MaterialSample domain -->
    <xs:element name="anyMaterialSampleTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="materialSampleID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <!-- EVENT domain -->
    <xs:element name="anyEventTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="eventID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="parentEventID" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="eventDate" type="dwc:dateTimeISO" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="eventTime" type="xs:time" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="startDayOfYear" type="dwc:dayOfYearDataType" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="endDayOfYear" type="dwc:dayOfYearDataType" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="year" type="xs:gYear" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="month" type="xs:gMonth" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="day" type="xs:gDay" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="verbatimEventDate" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="habitat" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="fieldNumber" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="samplingProtocol" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="samplingEffort" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="sampleSizeValue" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="sampleSizeUnit" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="fieldNotes" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:element name="eventRemarks" type="xs:string" substitutionGroup="dwc:anyEventTerm"/>
    <xs:group name="EventTerms">
        <xs:sequence>
            <xs:element ref="dwc:parentEventID" minOccurs="0"/>
            <xs:element ref="dwc:eventDate" minOccurs="0"/>
            <xs:element ref="dwc:eventTime" minOccurs="0"/>
            <xs:element ref="dwc:startDayOfYear" minOccurs="0"/>
            <xs:element ref="dwc:endDayOfYear" minOccurs="0"/>
            <xs:element ref="dwc:year" minOccurs="0"/>
            <xs:element ref="dwc:month" minOccurs="0"/>
            <xs:element ref="dwc:day" minOccurs="0"/>
            <xs:element ref="dwc:verbatimEventDate" minOccurs="0"/>
            <xs:element ref="dwc:habitat" minOccurs="0"/>
            <xs:element ref="dwc:fieldNumber" minOccurs="0"/>
            <xs:element ref="dwc:samplingProtocol" minOccurs="0"/>
            <xs:element ref="dwc:samplingEffort" minOccurs="0"/>
            <xs:element ref="dwc:sampleSizeValue" minOccurs="0"/>
            <xs:element ref="dwc:sampleSizeUnit" minOccurs="0"/>
            <xs:element ref="dwc:fieldNotes" minOccurs="0"/>
            <xs:element ref="dwc:eventRemarks" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- dcterms:LOCATION domain -->
    <xs:element name="anyLocationTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="locationID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="higherGeographyID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="higherGeography" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="continent" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="waterbody" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="islandGroup" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="island" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="country" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="countryCode" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="stateProvince" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="county" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="municipality" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="locality" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="verbatimLocality" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="minimumElevationInMeters" type="xs:double" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="maximumElevationInMeters" type="xs:double" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="verbatimElevation" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="minimumDepthInMeters" type="xs:double" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="maximumDepthInMeters" type="xs:double" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="verbatimDepth" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="minimumDistanceAboveSurfaceInMeters" type="xs:double" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="maximumDistanceAboveSurfaceInMeters" type="xs:double" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="locationAccordingTo" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="locationRemarks" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="decimalLatitude" type="dwc:decimalLatitudeDataType" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="decimalLongitude" type="dwc:decimalLongitudeDataType" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="geodeticDatum" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="coordinateUncertaintyInMeters" type="xs:double" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="coordinatePrecision" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="pointRadiusSpatialFit" type="dwc:spatialFitDataType" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="verbatimCoordinates" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="verbatimLatitude" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="verbatimLongitude" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="verbatimCoordinateSystem" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="verbatimSRS" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="footprintWKT" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="footprintSRS" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="footprintSpatialFit" type="dwc:spatialFitDataType" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="georeferencedBy" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="georeferencedDate" type="dwc:dateTimeISO" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="georeferenceProtocol" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="georeferenceSources" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="georeferenceVerificationStatus" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:element name="georeferenceRemarks" type="xs:string" substitutionGroup="dwc:anyLocationTerm"/>
    <xs:group name="LocationTerms">
        <xs:sequence>
            <xs:element ref="dwc:higherGeographyID" minOccurs="0"/>
            <xs:element ref="dwc:higherGeography" minOccurs="0"/>
            <xs:element ref="dwc:continent" minOccurs="0"/>
            <xs:element ref="dwc:waterbody" minOccurs="0"/>
            <xs:element ref="dwc:islandGroup" minOccurs="0"/>
            <xs:element ref="dwc:island" minOccurs="0"/>
            <xs:element ref="dwc:country" minOccurs="0"/>
            <xs:element ref="dwc:countryCode" minOccurs="0"/>
            <xs:element ref="dwc:stateProvince" minOccurs="0"/>
            <xs:element ref="dwc:county" minOccurs="0"/>
            <xs:element ref="dwc:municipality" minOccurs="0"/>
            <xs:element ref="dwc:locality" minOccurs="0"/>
            <xs:element ref="dwc:verbatimLocality" minOccurs="0"/>
            <xs:element ref="dwc:minimumElevationInMeters" minOccurs="0"/>
            <xs:element ref="dwc:maximumElevationInMeters" minOccurs="0"/>
            <xs:element ref="dwc:verbatimElevation" minOccurs="0"/>
            <xs:element ref="dwc:minimumDepthInMeters" minOccurs="0"/>
            <xs:element ref="dwc:maximumDepthInMeters" minOccurs="0"/>
            <xs:element ref="dwc:verbatimDepth" minOccurs="0"/>
            <xs:element ref="dwc:minimumDistanceAboveSurfaceInMeters" minOccurs="0"/>
            <xs:element ref="dwc:maximumDistanceAboveSurfaceInMeters" minOccurs="0"/>
            <xs:element ref="dwc:locationRemarks" minOccurs="0"/>
            <xs:element ref="dwc:decimalLatitude" minOccurs="0"/>
            <xs:element ref="dwc:decimalLongitude" minOccurs="0"/>
            <xs:element ref="dwc:geodeticDatum" minOccurs="0"/>
            <xs:element ref="dwc:coordinateUncertaintyInMeters" minOccurs="0"/>
            <xs:element ref="dwc:coordinatePrecision" minOccurs="0"/>
            <xs:element ref="dwc:pointRadiusSpatialFit" minOccurs="0"/>
            <xs:element ref="dwc:verbatimCoordinates" minOccurs="0"/>
            <xs:element ref="dwc:verbatimLatitude" minOccurs="0"/>
            <xs:element ref="dwc:verbatimLongitude" minOccurs="0"/>
            <xs:element ref="dwc:verbatimCoordinateSystem" minOccurs="0"/>
            <xs:element ref="dwc:verbatimSRS" minOccurs="0"/>
            <xs:element ref="dwc:footprintWKT" minOccurs="0"/>
            <xs:element ref="dwc:footprintSRS" minOccurs="0"/>
            <xs:element ref="dwc:footprintSpatialFit" minOccurs="0"/>
            <xs:element ref="dwc:georeferencedBy" minOccurs="0"/>
            <xs:element ref="dwc:georeferencedDate" minOccurs="0"/>
            <xs:element ref="dwc:georeferenceProtocol" minOccurs="0"/>
            <xs:element ref="dwc:georeferenceSources" minOccurs="0"/>
            <xs:element ref="dwc:georeferenceVerificationStatus" minOccurs="0"/>
            <xs:element ref="dwc:georeferenceRemarks" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- GEOLOGICALCONTEXT domain -->
    <xs:element name="anyGeologicalContextTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="geologicalContextID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="earliestEonOrLowestEonothem" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="latestEonOrHighestEonothem" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="earliestEraOrLowestErathem" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="latestEraOrHighestErathem" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="earliestPeriodOrLowestSystem" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="latestPeriodOrHighestSystem" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="earliestEpochOrLowestSeries" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="latestEpochOrHighestSeries" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="earliestAgeOrLowestStage" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="latestAgeOrHighestStage" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="lowestBiostratigraphicZone" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="highestBiostratigraphicZone" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="lithostratigraphicTerms" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="group" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="formation" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="member" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:element name="bed" type="xs:string" substitutionGroup="dwc:anyGeologicalContextTerm"/>
    <xs:group name="GeologicalContextTerms">
        <xs:sequence>
            <xs:element ref="dwc:earliestEonOrLowestEonothem" minOccurs="0"/>
            <xs:element ref="dwc:latestEonOrHighestEonothem" minOccurs="0"/>
            <xs:element ref="dwc:earliestEraOrLowestErathem" minOccurs="0"/>
            <xs:element ref="dwc:latestEraOrHighestErathem" minOccurs="0"/>
            <xs:element ref="dwc:earliestPeriodOrLowestSystem" minOccurs="0"/>
            <xs:element ref="dwc:latestPeriodOrHighestSystem" minOccurs="0"/>
            <xs:element ref="dwc:earliestEpochOrLowestSeries" minOccurs="0"/>
            <xs:element ref="dwc:latestEpochOrHighestSeries" minOccurs="0"/>
            <xs:element ref="dwc:earliestAgeOrLowestStage" minOccurs="0"/>
            <xs:element ref="dwc:latestAgeOrHighestStage" minOccurs="0"/>
            <xs:element ref="dwc:lowestBiostratigraphicZone" minOccurs="0"/>
            <xs:element ref="dwc:highestBiostratigraphicZone" minOccurs="0"/>
            <xs:element ref="dwc:lithostratigraphicTerms" minOccurs="0"/>
            <xs:element ref="dwc:group" minOccurs="0"/>
            <xs:element ref="dwc:formation" minOccurs="0"/>
            <xs:element ref="dwc:member" minOccurs="0"/>
            <xs:element ref="dwc:bed" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- IDENTIFICATION domain -->
    <xs:element name="anyIdentificationTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="identificationID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="identificationQualifier" type="xs:string" substitutionGroup="dwc:anyIdentificationTerm"/>
    <xs:element name="typeStatus" type="xs:string" substitutionGroup="dwc:anyIdentificationTerm"/>
    <xs:element name="identifiedBy" type="xs:string" substitutionGroup="dwc:anyIdentificationTerm"/>
    <xs:element name="dateIdentified" type="dwc:dateTimeISO" substitutionGroup="dwc:anyIdentificationTerm"/>
    <xs:element name="identificationReferences" type="xs:string" substitutionGroup="dwc:anyIdentificationTerm"/>
    <xs:element name="identificationVerificationStatus" type="xs:string" substitutionGroup="dwc:anyIdentificationTerm"/>
    <xs:element name="identificationRemarks" type="xs:string" substitutionGroup="dwc:anyIdentificationTerm"/>
    <xs:group name="IdentificationTerms">
        <xs:sequence>
            <xs:element ref="dwc:identificationQualifier" minOccurs="0"/>
            <xs:element ref="dwc:typeStatus" minOccurs="0"/>
            <xs:element ref="dwc:identifiedBy" minOccurs="0"/>
            <xs:element ref="dwc:dateIdentified" minOccurs="0"/>
            <xs:element ref="dwc:identificationReferences" minOccurs="0"/>
            <xs:element ref="dwc:identificationVerificationStatus" minOccurs="0"/>
            <xs:element ref="dwc:identificationRemarks" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- TAXON domain -->
    <xs:element name="anyTaxonTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="taxonID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="scientificNameID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="acceptedNameUsageID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="parentNameUsageID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="originalNameUsageID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="nameAccordingToID" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="namePublishedInID" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="taxonConceptID" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="scientificName" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="acceptedNameUsage" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="parentNameUsage" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="originalNameUsage" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="nameAccordingTo" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="namePublishedIn" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="namePublishedInYear" type="xs:gYear" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="higherClassification" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="kingdom" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="phylum" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="class" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="order" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="family" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="genus" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="subgenus" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="specificEpithet" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="infraspecificEpithet" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="taxonRank" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="verbatimTaxonRank" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="scientificNameAuthorship" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="vernacularName" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="nomenclaturalCode" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="taxonomicStatus" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="nomenclaturalStatus" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:element name="taxonRemarks" type="xs:string" substitutionGroup="dwc:anyTaxonTerm"/>
    <xs:group name="TaxonTerms">
        <xs:sequence>
            <xs:element ref="dwc:scientificNameID" minOccurs="0"/>
            <xs:element ref="dwc:acceptedNameUsageID" minOccurs="0"/>
            <xs:element ref="dwc:parentNameUsageID" minOccurs="0"/>
            <xs:element ref="dwc:originalNameUsageID" minOccurs="0"/>
            <xs:element ref="dwc:nameAccordingToID" minOccurs="0"/>
            <xs:element ref="dwc:namePublishedInID" minOccurs="0"/>
            <xs:element ref="dwc:taxonConceptID" minOccurs="0"/>
            <xs:element ref="dwc:scientificName" minOccurs="0"/>
            <xs:element ref="dwc:acceptedNameUsage" minOccurs="0"/>
            <xs:element ref="dwc:parentNameUsage" minOccurs="0"/>
            <xs:element ref="dwc:originalNameUsage" minOccurs="0"/>
            <xs:element ref="dwc:nameAccordingTo" minOccurs="0"/>
            <xs:element ref="dwc:namePublishedIn" minOccurs="0"/>
            <xs:element ref="dwc:namePublishedInYear" minOccurs="0"/>
            <xs:element ref="dwc:higherClassification" minOccurs="0"/>
            <xs:element ref="dwc:kingdom" minOccurs="0"/>
            <xs:element ref="dwc:phylum" minOccurs="0"/>
            <xs:element ref="dwc:class" minOccurs="0"/>
            <xs:element ref="dwc:order" minOccurs="0"/>
            <xs:element ref="dwc:family" minOccurs="0"/>
            <xs:element ref="dwc:genus" minOccurs="0"/>
            <xs:element ref="dwc:subgenus" minOccurs="0"/>
            <xs:element ref="dwc:specificEpithet" minOccurs="0"/>
            <xs:element ref="dwc:infraspecificEpithet" minOccurs="0"/>
            <xs:element ref="dwc:taxonRank" minOccurs="0"/>
            <xs:element ref="dwc:verbatimTaxonRank" minOccurs="0"/>
            <xs:element ref="dwc:scientificNameAuthorship" minOccurs="0"/>
            <xs:element ref="dwc:vernacularName" minOccurs="0"/>
            <xs:element ref="dwc:nomenclaturalCode" minOccurs="0"/>
            <xs:element ref="dwc:taxonomicStatus" minOccurs="0"/>
            <xs:element ref="dwc:nomenclaturalStatus" minOccurs="0"/>
            <xs:element ref="dwc:taxonRemarks" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- MEASUREMENTORFACT domain -->
    <xs:element name="anyMeasurementTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="measurementID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="measurementType" type="xs:string" substitutionGroup="dwc:anyMeasurementTerm"/>
    <xs:element name="measurementValue" type="xs:string" substitutionGroup="dwc:anyMeasurementTerm"/>
    <xs:element name="measurementAccuracy" type="xs:string" substitutionGroup="dwc:anyMeasurementTerm"/>
    <xs:element name="measurementUnit" type="xs:string" substitutionGroup="dwc:anyMeasurementTerm"/>
    <xs:element name="measurementDeterminedBy" type="xs:string" substitutionGroup="dwc:anyMeasurementTerm"/>
    <xs:element name="measurementDeterminedDate" type="dwc:dateTimeISO" substitutionGroup="dwc:anyMeasurementTerm"/>
    <xs:element name="measurementMethod" type="xs:string" substitutionGroup="dwc:anyMeasurementTerm"/>
    <xs:element name="measurementRemarks" type="xs:string" substitutionGroup="dwc:anyMeasurementTerm"/>
    <xs:group name="MeasurementTerms">
        <xs:sequence>
            <xs:element ref="dwc:measurementType" minOccurs="0"/>
            <xs:element ref="dwc:measurementValue" minOccurs="0"/>
            <xs:element ref="dwc:measurementAccuracy" minOccurs="0"/>
            <xs:element ref="dwc:measurementUnit" minOccurs="0"/>
            <xs:element ref="dwc:measurementDeterminedBy" minOccurs="0"/>
            <xs:element ref="dwc:measurementDeterminedDate" minOccurs="0"/>
            <xs:element ref="dwc:measurementMethod" minOccurs="0"/>
            <xs:element ref="dwc:measurementRemarks" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
    <!-- RESOURCERELATIONSHIP domain -->
    <xs:element name="anyResourceRelationshipTerm" abstract="true" substitutionGroup="dwc:anyProperty"/>
    <xs:element name="resourceRelationshipID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyIdentifier"/>
    <!-- domain properties -->
    <xs:element name="resourceID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyResourceRelationshipTerm"/>
    <xs:element name="relatedResourceID" type="dwc:nonEmptyString" substitutionGroup="dwc:anyResourceRelationshipTerm"/>
    <xs:element name="relationshipOfResource" type="xs:string" substitutionGroup="dwc:anyResourceRelationshipTerm"/>
    <xs:element name="relationshipAccordingTo" type="xs:string" substitutionGroup="dwc:anyResourceRelationshipTerm"/>
    <xs:element name="relationshipEstablishedDate" type="dwc:dateTimeISO" substitutionGroup="dwc:anyResourceRelationshipTerm"/>
    <xs:element name="relationshipRemarks" type="xs:string" substitutionGroup="dwc:anyResourceRelationshipTerm"/>
    <xs:group name="ResourceRelationshipTerms">
        <xs:sequence>
            <xs:element ref="dwc:resourceID" minOccurs="0"/>
            <xs:element ref="dwc:relatedResourceID" minOccurs="0"/>
            <xs:element ref="dwc:relationshipOfResource" minOccurs="0"/>
            <xs:element ref="dwc:relationshipAccordingTo" minOccurs="0"/>
            <xs:element ref="dwc:relationshipEstablishedDate" minOccurs="0"/>
            <xs:element ref="dwc:relationshipRemarks" minOccurs="0"/>
        </xs:sequence>
    </xs:group>
</xs:schema>
