📄 eafv2.4.xsd
字号:
<?xml version="1.0"?><!-- VERSION 2.4 DATE December 2006 - added attribute: ANNOTATOR to element TIER - added element: PROPERTY to element HEADER - changed the type of attribute SVG_REF of ALIGNABLE_ANNOTATION to xsd:string since it does not refer to an ID in the same file - changed the type of the TIME_ALIGNABLE and GRAPHIC_REFERENCES attributes of the LINGUISTIC_TYPE element to type="xsd:boolean" (was xsd:string) - changed the ID/IDREF mechanism for the combinations of: - TIER/TIER_ID and TIER/PARENT_REF - LINGUISTIC_TYPE/LINGUISTIC_TYPE_ID and TIER/LINGUISTIC_TYPE_REF - CONTROLLED_VOCABULARY/CV_ID and LINGUISTIC_TYPE/CONTROLLED_VOCABULARY_REF into pairs of xsd:key and xsd:keyref elements. The advantage is that the ID's only have to be unique per element type (e.g. TIER_ID's should be unique within the TIER elements but can be the same as a LINGUISTIC_TYPE_ID) and that there are no constraints on characters that can be used in id's/names.--><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:annotation> <xsd:documentation xml:lang="en"> Elan Annotation Format version 2.4 December 2006 Schema by Alexander Klassmann 17/01/03 Adapted by Hennie Brugman, Han Sloetjes </xsd:documentation> </xsd:annotation> <xsd:element name="ANNOTATION_DOCUMENT"> <xsd:complexType> <xsd:sequence> <xsd:element name="HEADER" type="headType"/> <xsd:element name="TIME_ORDER" type="timeType"/> <xsd:element name="TIER" type="tierType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="LINGUISTIC_TYPE" type="lingType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="LOCALE" type="localeType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="CONSTRAINT" type="constraintType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="CONTROLLED_VOCABULARY" type="convocType" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="DATE" type="xsd:dateTime" use="required"/> <xsd:attribute name="AUTHOR" type="xsd:string" use="required"/> <xsd:attribute name="VERSION" type="xsd:string" use="required"/> <xsd:attribute name="FORMAT" type="xsd:string" use="optional" fixed="2.4"/> </xsd:complexType> <!-- define key - keyref pairs --> <xsd:key name="tierNameKey"> <xsd:annotation> <xsd:documentation xml:lang="en"> The Tier name/id should be unique within the collection of Tier elements </xsd:documentation> </xsd:annotation> <xsd:selector xpath="TIER"/> <xsd:field xpath="@TIER_ID"/> </xsd:key> <xsd:keyref name="tierNameRef" refer="tierNameKey"> <xsd:annotation> <xsd:documentation xml:lang="en"> A Tier can be associated with a parent Tier by referring to an existing Tier id. </xsd:documentation> </xsd:annotation> <xsd:selector xpath="TIER"/> <xsd:field xpath="@PARENT_REF"/> </xsd:keyref> <xsd:key name="linTypeNameKey"> <xsd:annotation> <xsd:documentation xml:lang="en"> The Linguistic Type name/id should be unique within the collection of Linguistic Type elements </xsd:documentation> </xsd:annotation> <xsd:selector xpath="LINGUISTIC_TYPE"/> <xsd:field xpath="@LINGUISTIC_TYPE_ID"/> </xsd:key> <xsd:keyref name="linTypeNameRef" refer="linTypeNameKey"> <xsd:annotation> <xsd:documentation xml:lang="en"> A Tier must refer to an existing Linguistic Type id. </xsd:documentation> </xsd:annotation> <xsd:selector xpath="TIER"/> <xsd:field xpath="@LINGUISTIC_TYPE_REF"/> </xsd:keyref> <xsd:key name="cvNameKey"> <xsd:annotation> <xsd:documentation xml:lang="en"> The Controlled Vocabulary name/id should be unique within the collection of Controlled Vocabulary elements </xsd:documentation> </xsd:annotation> <xsd:selector xpath="CONTROLLED_VOCABULARY"/> <xsd:field xpath="@CV_ID"/> </xsd:key> <xsd:keyref name="cvNameRef" refer="cvNameKey"> <xsd:annotation> <xsd:documentation xml:lang="en"> A Linguistic Type can be associated with a Controlled Vocabulary by referring to an existing Controlled Vocabulary id. </xsd:documentation> </xsd:annotation> <xsd:selector xpath="LINGUISTIC_TYPE"/> <xsd:field xpath="@CONTROLLED_VOCABULARY_REF"/> </xsd:keyref> </xsd:element> <xsd:complexType name="headType"> <xsd:sequence> <xsd:element name="MEDIA_DESCRIPTOR" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:attribute name="MEDIA_URL" type="xsd:anyURI" use="required"/> <xsd:attribute name="MIME_TYPE" type="xsd:string" use="required"/> <xsd:attribute name="TIME_ORIGIN" type="xsd:long" use="optional"/> <xsd:attribute name="EXTRACTED_FROM" type="xsd:anyURI" use="optional"/> </xsd:complexType> </xsd:element> <xsd:element name="LINKED_FILE_DESCRIPTOR" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:attribute name="LINK_URL" type="xsd:anyURI" use="required"/> <xsd:attribute name="MIME_TYPE" type="xsd:string" use="required"/> <xsd:attribute name="TIME_ORIGIN" type="xsd:long" use="optional"/> <xsd:attribute name="ASSOCIATED_WITH" type="xsd:anyURI" use="optional"/> </xsd:complexType> </xsd:element> <xsd:element name="PROPERTY" type="propType" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="MEDIA_FILE" type="xsd:string"/> <xsd:attribute name="TIME_UNITS" use="optional" default="milliseconds"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:enumeration value="NTSC-frames"/> <xsd:enumeration value="PAL-frames"/> <xsd:enumeration value="milliseconds"/> </xsd:restriction> </xsd:simpleType> </xsd:attribute> </xsd:complexType> <xsd:complexType name="timeType"> <xsd:sequence> <xsd:element name="TIME_SLOT" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:attribute name="TIME_SLOT_ID" type="xsd:ID" use="required"/> <xsd:attribute name="TIME_VALUE" type="xsd:unsignedInt" use="optional"/> </xsd:complexType> </xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="tierType"> <xsd:sequence> <xsd:element name="ANNOTATION" type="annotationType" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="TIER_ID" type="xsd:string" use="required"/> <xsd:attribute name="PARTICIPANT" type="xsd:string" use="optional"/> <xsd:attribute name="ANNOTATOR" type="xsd:string" use="optional"/> <xsd:attribute name="LINGUISTIC_TYPE_REF" type="xsd:string" use="required"/> <xsd:attribute name="DEFAULT_LOCALE" type="xsd:IDREF" use="optional"/> <xsd:attribute name="PARENT_REF" type="xsd:string" use="optional"/> </xsd:complexType> <xsd:complexType name="annotationType"> <xsd:choice> <xsd:element name="ALIGNABLE_ANNOTATION" type="alignableType"/> <xsd:element name="REF_ANNOTATION" type="refAnnoType"/> </xsd:choice> </xsd:complexType> <xsd:complexType name="alignableType"> <xsd:sequence> <xsd:element name="ANNOTATION_VALUE" type="xsd:string"/> </xsd:sequence> <xsd:attributeGroup ref="annotationAttribute"/> <xsd:attribute name="TIME_SLOT_REF1" type="xsd:IDREF" use="required"/> <xsd:attribute name="TIME_SLOT_REF2" type="xsd:IDREF" use="required"/> <xsd:attribute name="SVG_REF" type="xsd:string" use="optional"/> </xsd:complexType> <xsd:complexType name="refAnnoType"> <xsd:sequence> <xsd:element name="ANNOTATION_VALUE" type="xsd:string"/> </xsd:sequence> <xsd:attributeGroup ref="annotationAttribute"/> <xsd:attribute name="ANNOTATION_REF" type="xsd:IDREF" use="required"/> <xsd:attribute name="PREVIOUS_ANNOTATION" type="xsd:IDREF" use="optional"/> </xsd:complexType> <xsd:complexType name="lingType"> <xsd:attribute name="LINGUISTIC_TYPE_ID" type="xsd:string" use="required"/> <xsd:attribute name="TIME_ALIGNABLE" type="xsd:boolean" use="optional"/> <xsd:attribute name="CONSTRAINTS" type="xsd:IDREF" use="optional"/> <xsd:attribute name="GRAPHIC_REFERENCES" type="xsd:boolean" use="optional"/> <xsd:attribute name="CONTROLLED_VOCABULARY_REF" type="xsd:string" use="optional"/> </xsd:complexType> <xsd:complexType name="localeType"> <xsd:attribute name="LANGUAGE_CODE" type="xsd:ID" use="required"/> <xsd:attribute name="COUNTRY_CODE" type="xsd:string" use="optional"/> <xsd:attribute name="VARIANT" type="xsd:string" use="optional"/> </xsd:complexType> <xsd:complexType name="constraintType"> <xsd:attribute name="STEREOTYPE" type="xsd:ID" use="required"/> <xsd:attribute name="DESCRIPTION" type="xsd:string" use="optional"/> </xsd:complexType> <xsd:complexType name="convocType"> <xsd:sequence> <xsd:element name="CV_ENTRY" type="cventryType" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="CV_ID" type="xsd:string" use="required"/> <xsd:attribute name="DESCRIPTION" type="xsd:string" use="optional"/> </xsd:complexType> <xsd:complexType name="cventryType"> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="DESCRIPTION" type="xsd:string" use="optional"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType> <xsd:complexType name="propType"> <xsd:simpleContent> <xsd:extension base="xsd:string"> <xsd:attribute name="NAME" type="xsd:string" use="optional"/> </xsd:extension> </xsd:simpleContent> </xsd:complexType> <xsd:attributeGroup name="annotationAttribute"> <xsd:attribute name="ANNOTATION_ID" type="xsd:ID" use="required"/> </xsd:attributeGroup></xsd:schema>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -