<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by Daan Broeder (Max-Planck Institute for Psycholinguistics) -->
<xsd:schema targetNamespace="http://www.mpi.nl/IMDI/Schema/IMDI.xsd" xmlns:imdi="http://www.mpi.nl/IMDI/Schema/IMDI.xsd" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1">
    <xsd:element name="METATRANSCRIPT">
        <xsd:annotation>
            <xsd:documentation>The outer element with administrative data of all metadata description files. Version 1.0 is based on Session description version 2.5 and Catalogue description 2.1</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType mixed="false">
            <xsd:choice>
                <xsd:element name="Session" type="imdi:SessionType" maxOccurs="unbounded"/>
                <xsd:element name="Corpus" maxOccurs="unbounded">
                    <xsd:annotation>
                        <xsd:documentation>Content specification for CORPUS has yet to be finished</xsd:documentation>
                    </xsd:annotation>
                    <xsd:complexType>
                        <xsd:complexContent>
                            <xsd:extension base="imdi:CorpusType"/>
                        </xsd:complexContent>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name="Catalogue" type="imdi:CatalogueType"/>
            </xsd:choice>
            <xsd:attribute name="Date" type="xsd:date" use="required"/>
            <xsd:attribute name="Originator" type="xsd:string" use="optional"/>
            <xsd:attribute name="Version" type="xsd:string" use="required"/>
            <xsd:attribute name="FormatId" type="xsd:string" use="fixed" value="IMDI 1.1"/>
            <xsd:attribute name="History" type="xsd:uriReference" use="optional"/>
            <xsd:attribute name="Type" type="imdi:MetatranscriptType" use="required"/>
        </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="DescriptionType" block="extension" mixed="false">
        <xsd:annotation>
            <xsd:documentation>Human readable description in the form of a text with language id specification and/or a link to a file with a description and  language id specification</xsd:documentation>
        </xsd:annotation>
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="LanguageId" type="imdi:LanguageIdType" use="optional"/>
                <xsd:attribute name="Link" type="xsd:uriReference" use="optional"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>
    <xsd:complexType name="ContactType">
        <xsd:annotation>
            <xsd:documentation>Contact information for this data</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Name" type="xsd:string" minOccurs="0"/>
            <xsd:element name="Address" type="xsd:string" minOccurs="0"/>
            <xsd:element name="Email" type="xsd:string" minOccurs="0"/>
            <xsd:element name="Organisation" type="xsd:string" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="LocationType">
        <xsd:annotation>
            <xsd:documentation>Information on creation location for this data</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Continent" type="imdi:Vocabulary">
                <xsd:annotation>
                    <xsd:documentation>The continent where the session/corpus was recorded or originated</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Country" type="imdi:Vocabulary">
                <xsd:annotation>
                    <xsd:documentation>The country where the session/corpus was recorded or originated</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Region" type="xsd:string" minOccurs="0" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>The region or sub-region where the session/corpus was recorded or originated</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Address" type="xsd:string" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>The address where the session/corpus was recorded or originated</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="Keys">
        <xsd:annotation>
            <xsd:documentation>List of a number of key name value pairs. Should be used to add information that is not covered by other metadata elements at this level</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType mixed="false">
            <xsd:sequence>
                <xsd:element name="Key" minOccurs="0" maxOccurs="unbounded">
                    <xsd:complexType>
                        <xsd:simpleContent>
                            <xsd:extension base="imdi:Vocabulary">
                                <xsd:attribute name="Name" type="xsd:string" use="required"/>
                            </xsd:extension>
                        </xsd:simpleContent>
                    </xsd:complexType>
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="Language">
        <xsd:annotation>
            <xsd:documentation>A list of languages used in the session</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType mixed="false">
            <xsd:sequence>
                <xsd:element name="Id" type="imdi:LanguageIdType" maxOccurs="unbounded">
                    <xsd:annotation>
                        <xsd:documentation>Unique code to identify a language</xsd:documentation>
                    </xsd:annotation>
                </xsd:element>
                <xsd:element name="Name" type="xsd:string" maxOccurs="unbounded">
                    <xsd:annotation>
                        <xsd:documentation>A list of human understandable names to identify a language</xsd:documentation>
                    </xsd:annotation>
                </xsd:element>
                <xsd:element name="Description" type="imdi:DescriptionType" minOccurs="0" maxOccurs="unbounded">
                    <xsd:annotation>
                        <xsd:documentation>Description for this particular language.</xsd:documentation>
                    </xsd:annotation>
                </xsd:element>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="AccessType">
        <xsd:annotation>
            <xsd:documentation>Groups information about access rights for this data</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Availability" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Availability of the data. OpenCV</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Date" type="xsd:date">
                <xsd:annotation>
                    <xsd:documentation>Date when access rights were evaluated</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Owner" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Name of owner resource</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Publisher" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Publisher responsible for distribution of this data</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Contact" type="imdi:ContactType"/>
            <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="ProjectType">
        <xsd:annotation>
            <xsd:documentation>Project Information</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Name" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>A short name or abbreviation for the project</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Title" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>The full title of the project</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Id" type="imdi:DescriptionType" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>A unique identifier for the project</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Contact" type="imdi:ContactType">
                <xsd:annotation>
                    <xsd:documentation>Contact information for this project</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded">
                <xsd:annotation>
                    <xsd:documentation>Description for this project</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:element name="CounterPosition">
        <xsd:annotation>
            <xsd:documentation>Position (start (+end) ) on a oldfashioned tape without time indication</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType mixed="false">
            <xsd:attribute name="Start" type="imdi:CounterPositionType" use="required"/>
            <xsd:attribute name="End" type="imdi:CounterPositionType" use="optional"/>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="TimePosition">
        <xsd:annotation>
            <xsd:documentation>Position in a media file or modern tape</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType mixed="false">
            <xsd:attribute name="Start" type="imdi:TimePositionType" use="required"/>
            <xsd:attribute name="End" type="imdi:TimePositionType" use="optional"/>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="Languages">
        <xsd:annotation>
            <xsd:documentation>Groups information about the languages used in the session</xsd:documentation>
        </xsd:annotation>
        <xsd:complexType mixed="false">
            <xsd:sequence>
                <xsd:element name="Description" type="imdi:DescriptionType" minOccurs="0" maxOccurs="unbounded">
                    <xsd:annotation>
                        <xsd:documentation>Description for the list of languages spoken by this participant</xsd:documentation>
                    </xsd:annotation>
                </xsd:element>
                <xsd:element ref="imdi:Language" minOccurs="0" maxOccurs="unbounded"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:simpleType name="LanguageIdType">
        <xsd:annotation>
            <xsd:documentation>Language identification either ISO or SIL</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:string">
            <xsd:pattern value="ISO639(-1|-2)?:.*"/>
            <xsd:pattern value="RFC1766:.*"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="TimePositionType">
        <xsd:annotation>
            <xsd:documentation>Time position in the hh:mm:ss:ff format</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:string">
            <xsd:pattern value="[0-9][0-9]:[0-9][0-9]:[0-9][0-9]:[0-9]*"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="CounterPositionType">
        <xsd:annotation>
            <xsd:documentation>Counter position in the  nnn format</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:positiveInteger">
            <xsd:pattern value="[0-9]*"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="VocabularyType">
        <xsd:annotation>
            <xsd:documentation>specifies the four vocabulary types</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="ClosedVocabulary"/>
            <xsd:enumeration value="ClosedVocabularyList"/>
            <xsd:enumeration value="OpenVocabulary"/>
            <xsd:enumeration value="OpenVocabularyList"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="VocabularyRefType">
        <xsd:annotation>
            <xsd:documentation>Pointer to a vocabulary definition</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:uriReference"/>
    </xsd:simpleType>
    <xsd:complexType name="Vocabulary">
        <xsd:annotation>
            <xsd:documentation>value for an element/attribute that is a vocabulary</xsd:documentation>
        </xsd:annotation>
        <xsd:simpleContent>
            <xsd:extension base="imdi:CVSstring">
                <xsd:attribute name="Type" type="imdi:VocabularyType" use="default" value="OpenVocabularyList"/>
                <xsd:attribute name="DefaultLink" type="imdi:VocabularyRefType" use="optional"/>
                <xsd:attribute name="Link" type="imdi:VocabularyRefType" use="optional"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>
    <xsd:complexType name="AgeType">
        <xsd:annotation>
            <xsd:documentation>Specifies age of a person with differerent counting methods</xsd:documentation>
        </xsd:annotation>
        <xsd:simpleContent>
            <xsd:extension base="imdi:AgeValueType">
                <xsd:attribute name="AgeCountingMethod" type="imdi:AgeCountingMethodType" use="default" value="SinceBirth"/>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>
    <xsd:simpleType name="AgeCountingMethodType">
        <xsd:annotation>
            <xsd:documentation>The counting method</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="SinceConception"/>
            <xsd:enumeration value="SinceBirth"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="AgeValueType">
        <xsd:annotation>
            <xsd:documentation>The age of a person</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:string">
            <xsd:pattern value="([0-9]+)*(;[0-9]+)*(;[0-9]+)*"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="VocabularyDefType" mixed="false">
        <xsd:annotation>
            <xsd:documentation>The definition of a vocabulary. Attributes: Date of creattion, Link to origin. Contails a Description be element to describe the domain of the vocabularyand a (unspecified) number of value enries</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded"/>
            <xsd:element name="Entry" maxOccurs="unbounded">
                <xsd:complexType>
                    <xsd:simpleContent>
                        <xsd:extension base="xsd:string">
                            <xsd:attribute name="Value" type="xsd:string" use="required"/>
                        </xsd:extension>
                    </xsd:simpleContent>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
        <xsd:attribute name="Name" type="xsd:string" use="required"/>
        <xsd:attribute name="Date" type="xsd:date" use="required"/>
        <xsd:attribute name="Link" type="imdi:VocabularyRefType" use="required"/>
    </xsd:complexType>
    <xsd:element name="VocabularyDef" type="imdi:VocabularyDefType">
        <xsd:annotation>
            <xsd:documentation>Instantiation of a VocabularyDefType</xsd:documentation>
        </xsd:annotation>
    </xsd:element>
    <xsd:simpleType name="CVSstring">
        <xsd:annotation>
            <xsd:documentation>Comma seperated string</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:string">
            <xsd:pattern value="[^,]+(,[^,]+)*"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="MDGroupType">
        <xsd:annotation>
            <xsd:documentation>Type for group of metadata pertaining to a session</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Location" type="imdi:LocationType">
                <xsd:annotation>
                    <xsd:documentation>Groups information about the location where the session was created</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded"/>
            <xsd:element ref="imdi:Keys"/>
            <xsd:element name="Project" type="imdi:ProjectType">
                <xsd:annotation>
                    <xsd:documentation>Groups information about the project for which the session was (originally) created</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Collector">
                <xsd:annotation>
                    <xsd:documentation>Groups information about the collector of the session. This is the person responsible for the collection of the sesion data.</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="Name" type="xsd:string">
                            <xsd:annotation>
                                <xsd:documentation>The name of the person  responsible for creating the session</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="Contact" type="imdi:ContactType">
                            <xsd:annotation>
                                <xsd:documentation>Contact information for this collector</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>Description for this collector</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="Content">
                <xsd:annotation>
                    <xsd:documentation>Groups information about the content of the session. The content description takes place in several (overlapping) dimensions</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="Task" type="imdi:Vocabulary">
                            <xsd:annotation>
                                <xsd:documentation>List of he major tasks carried out in the session. OVList</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="Modalities" type="imdi:Vocabulary">
                            <xsd:annotation>
                                <xsd:documentation>List of modalities used in the session. OVList</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="CommunicationContext">
                            <xsd:annotation>
                                <xsd:documentation>This groups information concerning the context of communication</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="Interactivity" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>degree of interactivity. CCV</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="PlanningType" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>Degree of planning of the event. CCV</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Involvement" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>Degree of involvement of the researcher. CCV</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="Genre">
                            <xsd:annotation>
                                <xsd:documentation>Groups information of the conventionalised discourse types of the session content</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="Interactional" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>Lists the interactional genres of the session content. OVList</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Discursive" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>Lists the discursive  genres of the session content. OVList</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Performance" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>Lists the performance genres of the session content. OVList</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element ref="imdi:Languages"/>
                        <xsd:element ref="imdi:Keys"/>
                        <xsd:element name="Description" type="imdi:DescriptionType" minOccurs="0" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>Description for the content of this session</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="Participants">
                <xsd:annotation>
                    <xsd:documentation>Groups information about all participants in the session</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="Description" type="imdi:DescriptionType" minOccurs="0" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>Description pertaining to all the participants together</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                        <xsd:element name="Participant" minOccurs="0" maxOccurs="unbounded">
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="Type" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>Type or functional role of participant e.g. consultant, contributor, interviewer, researcher. OV</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Name" type="xsd:string" maxOccurs="unbounded">
                                        <xsd:annotation>
                                            <xsd:documentation>Name of the participant as used by others in the transcription</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="FullName" type="xsd:string">
                                        <xsd:annotation>
                                            <xsd:documentation>Official name of the participant</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Code" type="xsd:string">
                                        <xsd:annotation>
                                            <xsd:documentation>Short unique code to identify the participant as used in the transcriptor in the transcription </xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Role" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>The role of the participant in the session within the context of informant. OVList</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element ref="imdi:Languages"/>
                                    <xsd:element name="EthnicGroup" type="imdi:CVSstring">
                                        <xsd:annotation>
                                            <xsd:documentation>List of ethnic groups of participant. OVList</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Age" type="imdi:AgeType">
                                        <xsd:annotation>
                                            <xsd:documentation>Age of the participant in CHAT format yy;mm.dd</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Sex">
                                        <xsd:annotation>
                                            <xsd:documentation>Sex of the participant. CV</xsd:documentation>
                                        </xsd:annotation>
                                        <xsd:simpleType>
                                            <xsd:restriction base="xsd:string">
                                                <xsd:enumeration value="Male"/>
                                                <xsd:enumeration value="Female"/>
                                                <xsd:enumeration value="Unknown"/>
                                                <xsd:enumeration value="Undefined"/>
                                            </xsd:restriction>
                                        </xsd:simpleType>
                                    </xsd:element>
                                    <xsd:element name="Education" type="xsd:string">
                                        <xsd:annotation>
                                            <xsd:documentation>The eduucation of the participant. Can slo be used to specify litteracy</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Anonymous" type="xsd:boolean">
                                        <xsd:annotation>
                                            <xsd:documentation>Indicated if true names were used or that codes were employed. CV  boolean</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element ref="imdi:Keys"/>
                                    <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded">
                                        <xsd:annotation>
                                            <xsd:documentation>Description for this individual participant</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="References" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Groups information about external documentation associated with this session</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="Description" type="imdi:DescriptionType" minOccurs="0" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>Every description is a reference</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:complexType name="CorpusType">
        <xsd:annotation>
            <xsd:documentation>Type for a corpus that points to either other corpora or sessions</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Name" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>name of the (sub-)corpus</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Title" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Title for the (sub-)corpus</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="MDGroup" type="imdi:MDGroupType"/>
            <xsd:element name="CorpusLink" type="xsd:uriReference" maxOccurs="unbounded"/>
        </xsd:sequence>
        <xsd:attribute name="CatalogueLink" type="xsd:uriReference" use="optional"/>
    </xsd:complexType>
    <xsd:complexType name="CatalogueType">
        <xsd:annotation>
            <xsd:documentation>Type for group metadata pertaining to published corpora</xsd:documentation>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="Name" type="xsd:string"/>
            <xsd:element name="Title" type="xsd:string"/>
            <xsd:element name="Id" type="xsd:string" maxOccurs="unbounded"/>
            <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded"/>
            <xsd:element name="Language" type="imdi:LanguageIdType">
                <xsd:annotation>
                    <xsd:documentation>Language the corpus is described/annotated in</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="SubjectLanguage" type="imdi:LanguageIdType">
                <xsd:annotation>
                    <xsd:documentation>Language the corpus is about</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Location" type="imdi:LocationType"/>
            <xsd:element name="ContentType" type="imdi:Vocabulary"/>
            <xsd:element name="Format">
                <xsd:complexType>
                    <xsd:all>
                        <xsd:element name="Text">
                            <xsd:complexType>
                                <xsd:all>
                                    <xsd:element ref="imdi:Keys"/>
                                </xsd:all>
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="Audio">
                            <xsd:complexType>
                                <xsd:all>
                                    <xsd:element ref="imdi:Keys"/>
                                </xsd:all>
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="Video">
                            <xsd:complexType>
                                <xsd:all>
                                    <xsd:element ref="imdi:Keys"/>
                                </xsd:all>
                            </xsd:complexType>
                        </xsd:element>
                    </xsd:all>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="Quality">
                <xsd:complexType>
                    <xsd:all>
                        <xsd:element name="Audio" type="imdi:QualityType"/>
                        <xsd:element name="Video" type="imdi:QualityType"/>
                    </xsd:all>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="SmallestAnnotationUnit" type="imdi:Vocabulary"/>
            <xsd:element name="Applications" type="imdi:Vocabulary"/>
            <xsd:element name="Date" type="xsd:date"/>
            <xsd:element name="Project" type="imdi:ProjectType"/>
            <xsd:element name="Publisher" type="xsd:string"/>
            <xsd:element name="Authors" type="imdi:CVSstring"/>
            <xsd:element name="Size" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>Human readabusle string that indicates total size of corpus</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="DistributionForm" type="imdi:Vocabulary"/>
            <xsd:element name="Access" type="imdi:AccessType"/>
            <xsd:element name="Pricing" type="xsd:string"/>
        </xsd:sequence>
    </xsd:complexType>
    <xsd:simpleType name="MetatranscriptType">
        <xsd:annotation>
            <xsd:documentation>Defines the different types of metatadata descriptions</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:string">
            <xsd:enumeration value="SESSION"/>
            <xsd:enumeration value="CATALOGUE"/>
            <xsd:enumeration value="CORPUS"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:simpleType name="QualityType">
        <xsd:annotation>
            <xsd:documentation>Quality specification scale [1-5]</xsd:documentation>
        </xsd:annotation>
        <xsd:restriction base="xsd:int">
            <xsd:minInclusive value="1"/>
            <xsd:maxInclusive value="5"/>
        </xsd:restriction>
    </xsd:simpleType>
    <xsd:complexType name="SessionType">
        <xsd:sequence>
            <xsd:element name="Name" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>A short name to identify the session</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Title" type="xsd:string">
                <xsd:annotation>
                    <xsd:documentation>The complete title of the session without abbrevations</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="Date" type="xsd:date">
                <xsd:annotation>
                    <xsd:documentation>The date when the primary  data of the session was created in ISO8601 format</xsd:documentation>
                </xsd:annotation>
            </xsd:element>
            <xsd:element name="MDGroup" type="imdi:MDGroupType"/>
            <xsd:element name="Resources">
                <xsd:annotation>
                    <xsd:documentation>Groups information of language resources connected to the session</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:all>
                        <xsd:element name="MediaFile" minOccurs="0" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>Groups information about the media file</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="ResourceLink" type="xsd:uriReference">
                                        <xsd:annotation>
                                            <xsd:documentation>URL to media file</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Size" type="xsd:unsignedLong">
                                        <xsd:annotation>
                                            <xsd:documentation>Size of media file </xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Type" type="xsd:string">
                                        <xsd:annotation>
                                            <xsd:documentation>Major part of mime-type</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Format" type="xsd:string">
                                        <xsd:annotation>
                                            <xsd:documentation>Minor part of mime-type</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Quality" type="imdi:QualityType">
                                        <xsd:annotation>
                                            <xsd:documentation>Quality of the recording scale [1-5]</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="RecordingConditions" type="xsd:string">
                                        <xsd:annotation>
                                            <xsd:documentation>describes technical conditions of recording</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element ref="imdi:TimePosition"/>
                                    <xsd:element name="Access" type="imdi:AccessType"/>
                                    <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded"/>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="AnnotationUnit" minOccurs="0" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>Groups information about an annotation unit. An annotation unit is refers to one layer of annotation or transcription. This is independent of wheter these are contained in one or more files.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="ResourceLink" type="xsd:uriReference">
                                        <xsd:annotation>
                                            <xsd:documentation>URL to file containing the annotations/transcription</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="MediaResourceLink" type="xsd:uriReference">
                                        <xsd:annotation>
                                            <xsd:documentation>URL to media file from which the annotations/transcriptions originate</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Annotator" type="xsd:string">
                                        <xsd:annotation>
                                            <xsd:documentation>Name of the person who did the annotation or transcription</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Date" type="xsd:date">
                                        <xsd:annotation>
                                            <xsd:documentation>Date when unit was created</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Type" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>The type of the annotation unit. OV</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Format">
                                        <xsd:annotation>
                                            <xsd:documentation>File format used for annotation/transcription </xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="ContentEncoding">
                                        <xsd:annotation>
                                            <xsd:documentation>Name of encoding scheme used for the annotation purpose</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="CharacterEncoding">
                                        <xsd:annotation>
                                            <xsd:documentation>Character encoding used in the annotation unit </xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Access" type="imdi:AccessType"/>
                                    <xsd:element name="LanguageId" type="imdi:LanguageIdType">
                                        <xsd:annotation>
                                            <xsd:documentation>Language used for annotating/transcribing</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Anonymous" type="xsd:boolean">
                                        <xsd:annotation>
                                            <xsd:documentation>Indicates if data has been anonymised. CV boolean</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded"/>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="AnonymousInfo" minOccurs="0">
                            <xsd:annotation>
                                <xsd:documentation>Groups data about name conversions for persons who are anonymised </xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="ResourceLink" type="xsd:uriReference">
                                        <xsd:annotation>
                                            <xsd:documentation>URL to information to convert pseudo named to real-names</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Access" type="imdi:AccessType"/>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                        <xsd:element name="Source" minOccurs="0" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>Groups information about the source; e.g. media-carrier, book, newspaper archive etc.</xsd:documentation>
                            </xsd:annotation>
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="Id" type="xsd:string">
                                        <xsd:annotation>
                                            <xsd:documentation>Short unique code to identify source</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Format" type="imdi:Vocabulary">
                                        <xsd:annotation>
                                            <xsd:documentation>Physical storage format. OV</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:element name="Quality" type="imdi:QualityType">
                                        <xsd:annotation>
                                            <xsd:documentation>Quality of recorded data. Scale [1-5]</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                    <xsd:choice>
                                        <xsd:element ref="imdi:CounterPosition"/>
                                        <xsd:element ref="imdi:TimePosition"/>
                                    </xsd:choice>
                                    <xsd:element name="Access" type="imdi:AccessType"/>
                                    <xsd:element name="Description" type="imdi:DescriptionType" maxOccurs="unbounded">
                                        <xsd:annotation>
                                            <xsd:documentation>Description for this source</xsd:documentation>
                                        </xsd:annotation>
                                    </xsd:element>
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                    </xsd:all>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="References" minOccurs="0">
                <xsd:annotation>
                    <xsd:documentation>Groups information about external documentation associated with this session</xsd:documentation>
                </xsd:annotation>
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="Description" type="imdi:DescriptionType" minOccurs="0" maxOccurs="unbounded">
                            <xsd:annotation>
                                <xsd:documentation>Every description is a reference</xsd:documentation>
                            </xsd:annotation>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>
