<?xml version="1.0" encoding="UTF-8"?>
<xs:schema  targetNamespace="http://purl.org/dc/terms/"
          xmlns="http://purl.org/dc/terms/"
          xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:x="http://www.w3.org/XML/1998/namespace"
           xmlns:dc="http://purl.org/dc/elements/1.1/"
           elementFormDefault="qualified"  attributeFormDefault="unqualified">

  <xs:annotation>
    <xs:documentation xml:lang="en">
      DCterms XML Schema
      XML Schema for http://purl.org/dc/terms/ namespace

      Created 2002-07-12

      Created by 

      Tim Cole (t-cole3@uiuc.edu)
      Tom Habing (thabing@uiuc.edu)
      Jane Hunter (jane@dstc.edu.au)
      Pete Johnston (p.johnston@ukoln.ac.uk),
      Carl Lagoze (lagoze@cs.cornell.edu)

      This schema declares XML elements for the DC elements and
      DC element refinements from the http://purl.org/dc/terms/ namespace.
      
      It reuses the complexType dc:SimpleLiteral, imported from the dc.xsd
      schema, which permits simple element content, and makes the xml:lang
      attribute available.

      The default type for all XML elements (i.e. all DC elements and 
      element refinements) is dc:SimpleLiteral.

      This complexType permits the derivation of other complexTypes
      which would permit child elements.

      Refinements are defined as substitutionGroups for the base elements 
      which they refine, imported from the dc.xsd schema.

      Encoding schemes are defined as complexTypes which are restrictions
      of the dc:SimpleLiteral complexType. These complexTypes restrict 
      values to an appropriates syntax or format using data typing,
      regular expressions, or enumerated lists.
  
      In order to specify one of these encodings an xsi:type attribute must 
      be used in the instance document.

      Also, note that one shortcoming of this approach is that any type can be 
      applied to any of the elements or refinements.  There is no convenient way
      to restrict types to specific elements using this approach.

    </xs:documentation>

  </xs:annotation>

   <xs:import namespace="http://www.w3.org/XML/1998/namespace"
              schemaLocation="http://www.w3.org/2001/03/xml.xsd">
   </xs:import>

 <!--
   <xs:import namespace="http://purl.org/dc/dcmitype/"
              schemaLocation="http://purl.oclc.org/NET/cmcs/schema/standards/dcmitype.xsd"/>
-->
   <xs:element name="alternative" substitutionGroup="dc:title" type="dc:SimpleLiteral"/>

   <xs:element name="tableOfContents" substitutionGroup="dc:description" type="dc:SimpleLiteral"/>
   <xs:element name="abstract" substitutionGroup="dc:description" type="dc:SimpleLiteral"/>

   <xs:element name="created" substitutionGroup="dc:date" type="dc:SimpleLiteral"/>
   <xs:element name="valid" substitutionGroup="dc:date" type="dc:SimpleLiteral"/>
   <xs:element name="available" substitutionGroup="dc:date" type="dc:SimpleLiteral"/>
   <xs:element name="issued" substitutionGroup="dc:date" type="dc:SimpleLiteral"/>
   <xs:element name="modified" substitutionGroup="dc:date" type="dc:SimpleLiteral"/>

   <xs:element name="extent" substitutionGroup="dc:format" type="dc:SimpleLiteral"/>
   <xs:element name="medium" substitutionGroup="dc:format" type="dc:SimpleLiteral"/>

   <xs:element name="isVersionOf" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="hasVersion" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="isReplacedBy" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="replaces" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="isRequiredBy" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="requires" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="isPartOf" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="hasPart" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="isReferencedBy" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="references" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="isFormatOf" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
   <xs:element name="hasFormat" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>

   <xs:element name="spatial" substitutionGroup="dc:coverage" type="dc:SimpleLiteral"/>
   <xs:element name="temporal" substitutionGroup="dc:coverage" type="dc:SimpleLiteral"/>

   <xs:element name="audience" type="dc:SimpleLiteral"/>

   <xs:element name="mediator" substitutionGroup="audience" type="dc:SimpleLiteral"/>

   <xs:element name="conformsTo" substitutionGroup="dc:relation" type="dc:SimpleLiteral"/>
<!--
  <xs:complexType name="LCSH">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="MESH">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="DDC">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="LCC">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="UDC">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="Period">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="W3CDTF">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
           <xs:union memberTypes="xs:gYear xs:gYearMonth xs:date xs:dateTime"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType> 
  <xs:complexType name="DCMIType">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="dcmitype:DCMIType"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="IMT">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="URI">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:anyURI"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType> 

  <xs:complexType name="ISO639-2">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="RFC1766">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:language"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="Point">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="ISO3166">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="Box">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>

  <xs:complexType name="TGN">
   <xs:simpleContent>
    <xs:restriction base="dc:SimpleLiteral">
        <xs:simpleType>
          <xs:restriction base="xs:string"/>
        </xs:simpleType>
        <xs:attribute ref="x:lang" use="prohibited"/>
    </xs:restriction>
   </xs:simpleContent>
  </xs:complexType>
-->

  <xs:group name="elementsGrp">
  	<xs:annotation>
    	<xs:documentation xml:lang="en">
    		This group is included as a convenience for schema authors
            who need to refer to all the DC elements in the http://purl.org/dc/terms namespace.
    	</xs:documentation>
  	</xs:annotation>

  <xs:sequence>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
	<xs:element ref="audience" />
    </xs:choice>
  </xs:sequence>
  </xs:group>	

  <xs:group name="allElementsAndRefinementsGroup">
  	<xs:annotation>
    	<xs:documentation xml:lang="en">
    		This group is included as a convenience for schema authors
            who need to refer to all the DC elements and element refinements 
            in the http://purl.org/dc/elements/1.1/ and 
            http://purl.org/dc/terms namespaces. 
            N.B. Refinements available via substitution groups.
    	</xs:documentation>
  	</xs:annotation>

  <xs:sequence>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
	<xs:group ref="dc:elementsGroup" />
	<xs:group ref="elementsGrp" />
    </xs:choice>
  </xs:sequence>
  </xs:group>	

  <xs:complexType name="elementOrRefinementContainer">
  	<xs:annotation>
    	<xs:documentation xml:lang="en">
    		This is included as a convenience for schema authors who need to define a root
    		or container element for all of the DC elements and element refinements.
    	</xs:documentation>
  	</xs:annotation>

    <xs:choice>
      <xs:group ref="allElementsAndRefinementsGroup"/>
    </xs:choice>
  </xs:complexType>



</xs:schema>
