205 lines
6.8 KiB
XML
205 lines
6.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace"
|
|
schemaLocation="http://www.w3.org/2001/xml.xsd" />
|
|
|
|
<xsd:simpleType name="statusType">
|
|
<xsd:restriction base="xsd:string"/>
|
|
</xsd:simpleType>
|
|
|
|
<xsd:simpleType name="lemmaType">
|
|
<xsd:restriction base="xsd:string"/>
|
|
</xsd:simpleType>
|
|
|
|
<xsd:simpleType name="commentType">
|
|
<xsd:restriction base="xsd:string"/>
|
|
</xsd:simpleType>
|
|
|
|
<xsd:complexType name="homonymyType">
|
|
<xsd:sequence>
|
|
<xsd:element name="homonymyFeature" type="homonymyFeatureType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="grammarFeatureType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="name" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="homonymyFeatureType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="name" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="headwordType">
|
|
<xsd:sequence>
|
|
<xsd:element name="lemma" type="lemmaType"/>
|
|
<xsd:element name="homonymy" type="homonymyType" minOccurs="0"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="lexemeType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="lexical_unit_lexeme_id" type="xsd:int"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="lexicalUnitType">
|
|
<xsd:sequence>
|
|
<xsd:element name="lexeme" type="lexemeType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
<xsd:attribute name="id" type="xsd:int" use="required"/>
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
</xsd:complexType>
|
|
|
|
<xsd:simpleType name="categoryType">
|
|
<!-- The closed set of expected categories. -->
|
|
<xsd:restriction base="xsd:string">
|
|
<xsd:enumeration value="samostalnik"/>
|
|
<xsd:enumeration value="glagol"/>
|
|
<xsd:enumeration value="pridevnik"/>
|
|
<xsd:enumeration value="prislov"/>
|
|
<xsd:enumeration value="zaimek"/>
|
|
<xsd:enumeration value="števnik"/>
|
|
<xsd:enumeration value="predlog"/>
|
|
<xsd:enumeration value="veznik"/>
|
|
<xsd:enumeration value="členek"/>
|
|
<xsd:enumeration value="medmet"/>
|
|
<xsd:enumeration value="okrajšava"/>
|
|
<xsd:enumeration value="neuvrščeno"/>
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
|
|
<xsd:complexType name="grammarType">
|
|
<xsd:sequence>
|
|
<xsd:element name="category" type="categoryType" minOccurs="0"/>
|
|
<xsd:element name="grammarFeature" type="grammarFeatureType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="measureType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:decimal">
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/>
|
|
<xsd:attribute name="source" type="xsd:string"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="measureListType">
|
|
<xsd:sequence>
|
|
<xsd:element name="measure" type="measureType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="variantType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="lexical_unit_id" type="xsd:int"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="variantListType">
|
|
<xsd:sequence>
|
|
<xsd:element name="variant" type="variantType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="relatedEntryType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="lexical_unit_id" type="xsd:int"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="relatedEntryListType">
|
|
<xsd:sequence>
|
|
<xsd:element name="relatedEntry" type="relatedEntryType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="labelType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="feature_id" type="xsd:int"/>
|
|
<xsd:attribute name="type" type="xsd:string"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="labelListType">
|
|
<xsd:sequence>
|
|
<xsd:element name="label" type="labelType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="definitionType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="type" type="xsd:string"/>
|
|
<xsd:attribute name="definition_id" type="xsd:int"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="definitionListType">
|
|
<xsd:sequence>
|
|
<xsd:element name="definition" type="definitionType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="translationType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="targetLang" type="xsd:string" use="required"/>
|
|
<xsd:attribute name="source" type="xsd:string"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="componentLexemeType">
|
|
<xsd:simpleContent>
|
|
<xsd:extension base="xsd:string">
|
|
<xsd:attribute name="lexical_unit_lexeme_id" type="xsd:int"/>
|
|
<xsd:attribute name="role" type="xsd:string" use="required"/>
|
|
</xsd:extension>
|
|
</xsd:simpleContent>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="corpusExampleType" mixed="true">
|
|
<xsd:sequence>
|
|
<xsd:element name="comp" type="componentLexemeType" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
<xsd:attribute name="example_id" type="xsd:int"/>
|
|
<xsd:attribute name="modified" type="xsd:boolean"/>
|
|
<xsd:attribute name="lexical_unit_id" type="xsd:int"/>
|
|
</xsd:complexType>
|
|
|
|
<xsd:complexType name="multipleLexemeExampleType">
|
|
<xsd:sequence>
|
|
<xsd:element name="comp" type="componentLexemeType" maxOccurs="unbounded"/>
|
|
</xsd:sequence>
|
|
<xsd:attribute name="type">
|
|
<xsd:simpleType>
|
|
<xsd:restriction base="xsd:string">
|
|
<xsd:enumeration value="collocation"/>
|
|
<xsd:enumeration value="grammaticalCombination"/>
|
|
</xsd:restriction>
|
|
</xsd:simpleType>
|
|
</xsd:attribute>
|
|
<xsd:attribute name="lexical_unit_id" type="xsd:int"/>
|
|
<xsd:attribute name="structure_id" type="xsd:int"/>
|
|
</xsd:complexType>
|
|
|
|
</xsd:schema>
|