<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://ils.unc.edu/mrc/dryad/version1_0/" xmlns:dc="http://purl.org/dc/terms/"  xmlns:dwr="http://rs.tdwg.org/dwc/xsd/simpledarwincore/"
    xmlns:dwc="http://rs.tdwg.org/dwc/terms/" xmlns:premis="http://www.loc.gov/standards/premis/v1/" xmlns:ddi="http://www.icpsr.umich.edu/DDI/" targetNamespace="http://ils.unc.edu/mrc/dryad/" elementFormDefault="qualified" attributeFormDefault="unqualified">
   
<xs:import namespace="http://rs.tdwg.org/dwc/terms/" schemaLocation="tdwg_dwcterms.xsd"/>
<xs:import namespace="http://purl.org/dc/terms/" schemaLocation="dublin_core.xsd"/>
<xs:import namespace="http://www.icpsr.umich.edu/DDI/" schemaLocation="Version2-1.xsd"/>  
<xs:import namespace="http://www.loc.gov/standards/premis/v1/" schemaLocation="PREMIS-v1-1.xsd"/>

<xs:annotation>
        <xs:documentation>
            This draft schema defines the Dryad Application Profile Version 1.0.
        </xs:documentation>
</xs:annotation>

  <xs:element name="SampleDryadDataRecordSet" >
        <xs:annotation>
            <xs:documentation>This is a sample Dryad Record.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="SimpleDryadDataRecord" maxOccurs="unbounded" minOccurs="0"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    
    <xs:element name="SimpleDryadDataRecord">
        <xs:complexType>
            <xs:all>
            
            	<xs:element name="Status" type="StatusType">
      			<xs:annotation>
         		<xs:documentation>Includes information about the status of the metadata record.</xs:documentation>
      			</xs:annotation>
   				</xs:element>
   
                <!-- Dublin Core -->
                    <xs:element ref="dc:title" minOccurs="1"/>
            		<xs:element ref="dc:creator" minOccurs="1"/>
            		<xs:element ref="dc:subject" minOccurs="1"/>
            		<xs:element ref="dc:description" minOccurs="0"/>
            		<xs:element ref="dc:publisher" minOccurs="1"/>
            		<xs:element ref="dc:contributor" minOccurs="1"/>
            		<xs:element ref="dc:available" minOccurs="1"/>
            		<xs:element ref="dc:issued" minOccurs="1"/>
            		<xs:element ref="dc:extent" minOccurs="1"/>
            		<xs:element ref="dc:type" minOccurs="1"/>
            		<xs:element ref="dc:format" minOccurs="1"/>
            		<xs:element ref="dc:identifier" minOccurs="1"/>
            		<xs:element ref="dc:isPartOf" minOccurs="1"/>
           		 	<xs:element ref="dc:spatial" minOccurs="0"/>
           		 	<xs:element ref="dc:temporal" minOccurs="0"/>
                	<xs:element ref="dc:modified" minOccurs="1"/>
                	<xs:element ref="dc:rights" minOccurs="1"/>
               
               <!-- Darwin Core -->
                <xs:element ref="dwc:ScientificName" minOccurs="0"/>         
                
               <!-- PREMIS -->
                <xs:element ref="premis:fixity" minOccurs="0"/>
                
               <!-- DDI -->
                <xs:element ref="ddi:depositr" minOccurs="0"/>
                <xs:element ref="ddi:contact" minOccurs="0"/>
                
            </xs:all>
        </xs:complexType>
    </xs:element>
   
</xs:schema>
