xml_schemas/resources/schema/inventory.xsd

385 lines
14 KiB
XML
Raw Normal View History

<?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:complexType name="lemmaType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="audio" type="xsd:string"/>
2020-01-21 07:29:33 +00:00
<xsd:attribute name="type">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="single"/>
<xsd:enumeration value="phrase"/>
<xsd:enumeration value="compound"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<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:attribute name="sloleks" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="lexicalUnitType">
<xsd:sequence>
<xsd:choice>
<xsd:element name="lexeme" type="lexemeType"/>
<xsd:element name="component" type="componentType" minOccurs="2" maxOccurs="unbounded"/>
</xsd:choice>
</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="featureId" type="xsd:string"/>
<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:attribute name="audio" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="componentType">
<xsd:sequence>
<xsd:element name="lexeme" type="lexemeType"/>
</xsd:sequence>
<xsd:attribute name="structure_id" type="xsd:int"/>
<xsd:attribute name="num" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="compType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="structure_id" type="xsd:int"/>
<xsd:attribute name="num" type="xsd:int"/>
<xsd:attribute name="role">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="headword"/>
<xsd:enumeration value="collocate"/>
<xsd:enumeration value="other"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="sloleks" type="xsd:string"/>
2020-01-14 09:56:58 +00:00
<xsd:attribute name="kol" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="exampleTreeType" mixed="true">
<xsd:sequence>
<xsd:element name="comp" type="compType" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="role" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="corpusExampleType" mixed="true">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="comp" type="compType"/>
<xsd:element name="tree" type="exampleTreeType"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="corpus_id" type="xsd:int"/>
<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:attribute name="audio" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="multipleLexemeExampleType">
<xsd:sequence>
<xsd:element name="comp" type="compType" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="type" use="required">
<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"/>
2020-01-10 15:11:01 +00:00
<xsd:attribute name="structureName" type="xsd:string"/>
<xsd:attribute name="frequency" type="xsd:int"/>
<xsd:attribute name="logDice" type="xsd:decimal"/>
<xsd:attribute name="audio" type="xsd:string"/>
<xsd:attribute name="cluster" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="translationContainerType">
<xsd:sequence>
<xsd:element name="labelList" type="labelListType" minOccurs="0"/>
<xsd:element name="translation" type="translationType"/>
<xsd:element name="explanation" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="cluster" type="xsd:int" use="optional"/>
<xsd:attribute name="source" type="xsd:string" use="optional"/>
</xsd:complexType>
<xsd:complexType name="translationContainerListType">
<xsd:sequence>
<xsd:element name="translationContainer" type="translationContainerType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="exampleContainerType">
<xsd:sequence>
<xsd:choice>
<xsd:element name="corpusExample" type="corpusExampleType"/>
<xsd:element name="multiwordExample" type="multipleLexemeExampleType"/>
</xsd:choice>
<xsd:element name="translationContainer" type="translationContainerType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="exampleContainerListType">
<xsd:sequence>
<xsd:element name="exampleContainer" type="exampleContainerType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="semanticRoleType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ACT"/>
<xsd:enumeration value="PAT"/>
<xsd:enumeration value="REC"/>
<xsd:enumeration value="ORIG"/>
<xsd:enumeration value="RESLT"/>
<xsd:enumeration value="TIME"/>
<xsd:enumeration value="DUR"/>
<xsd:enumeration value="FREQ"/>
<xsd:enumeration value="LOC"/>
<xsd:enumeration value="SOURCE"/>
<xsd:enumeration value="GOAL"/>
<xsd:enumeration value="EVENT"/>
<xsd:enumeration value="AIM"/>
<xsd:enumeration value="CAUSE"/>
<xsd:enumeration value="CONTR"/>
<xsd:enumeration value="COND"/>
<xsd:enumeration value="REG"/>
<xsd:enumeration value="ACMP"/>
<xsd:enumeration value="RESTR"/>
<xsd:enumeration value="MANN"/>
<xsd:enumeration value="MEANS"/>
<xsd:enumeration value="QUANT"/>
<xsd:enumeration value="MWPRED"/>
<xsd:enumeration value="MODAL"/>
<xsd:enumeration value="PHRAS"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="statisticsContainerType">
<xsd:sequence>
<xsd:choice>
<xsd:element name="semanticRole" type="semanticRoleType"/>
</xsd:choice>
<xsd:element name="measureList" type="measureListType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="statisticsContainerListType">
<xsd:sequence>
<xsd:element name="statisticsContainer" type="statisticsContainerType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="syntacticStructureType">
<xsd:sequence>
<xsd:element name="component" type="componentType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="syntacticStructureListType">
<xsd:sequence>
<xsd:element name="syntacticStructure" type="syntacticStructureType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="system" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="semanticRoleContainerType">
<xsd:sequence>
<xsd:element name="semanticRole" type="semanticRoleType"/>
<xsd:element name="syntacticStructureList" type="syntacticStructureListType"/>
</xsd:sequence>
<xsd:attribute name="cluster" type="xsd:int" use="optional"/>
</xsd:complexType>
<xsd:complexType name="semanticRoleContainerListType">
<xsd:sequence>
<xsd:element name="semanticRoleContainer" type="semanticRoleContainerType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="patternRepresentationType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:complexType name="valencyPatternType">
<xsd:sequence>
<xsd:element name="measureList" type="measureListType"/>
<xsd:element name="semanticRoleContainerList" type="semanticRoleContainerListType"/>
<xsd:element name="patternRepresentation" type="patternRepresentationType"/>
<xsd:element name="exampleContainerList" type="exampleContainerListType"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="valencyPatternListType">
<xsd:sequence>
<xsd:element name="valencyPattern" type="valencyPatternType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>