Redmine #2246: added schemas and examples for structures and semantic types

This commit is contained in:
Cyprian Laskowski 2022-01-19 14:38:41 +01:00
parent 3fcc821d3f
commit 3a4097c6db
5 changed files with 5294 additions and 6 deletions

View File

@ -0,0 +1,440 @@
<slonest>
<semanticType SEMCODE="20">
<name sl="AKTIVNOST">ACT</name>
<semanticType SEMCODE="20.1">
<name sl="DEJANJE">ACTION</name>
<semanticType SEMCODE="20.1.2">
<name sl="čustveno">emotional</name>
</semanticType>
<semanticType SEMCODE="20.1.16">
<name sl="dogodek_človeški">event_human</name>
</semanticType>
<semanticType SEMCODE="20.1.14">
<name sl="družbeno">social</name>
</semanticType>
<semanticType SEMCODE="20.1.8">
<name sl="gibanje">movement</name>
</semanticType>
<semanticType SEMCODE="20.1.3">
<name sl="kognicija">cognition</name>
</semanticType>
<semanticType SEMCODE="20.1.4">
<name sl="komunikacija">communication</name>
<semanticType SEMCODE="20.1.4.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="20.1.4.2">
<name sl="nečloveška">nonhuman</name>
</semanticType>
<semanticType SEMCODE="20.1.4.3">
<name sl="pisna_govorna">written_spoken</name>
</semanticType>
<semanticType SEMCODE="20.1.4.4">
<name sl="telesna">physical</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="20.1.12">
<name sl="lastnina">property</name>
</semanticType>
<semanticType SEMCODE="20.1.13">
<name sl="medicinski_postopek">medical_procedure</name>
</semanticType>
<semanticType SEMCODE="20.1.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="20.1.5">
<name sl="percepcija">perception</name>
</semanticType>
<semanticType SEMCODE="20.1.18">
<name sl="pojav">phenomenon</name>
<semanticType SEMCODE="20.1.18.1">
<name sl="ostalo">other</name>
</semanticType>
<semanticType SEMCODE="20.1.18.2">
<name sl="zvočni">sound</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="20.1.6">
<name sl="sprememba">change</name>
</semanticType>
<semanticType SEMCODE="20.1.17">
<name sl="stanje">state</name>
<semanticType SEMCODE="20.1.17.1">
<name sl="fazno">phase</name>
</semanticType>
<semanticType SEMCODE="20.1.17.2">
<name sl="modalno">modal</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="20.1.7">
<name sl="stik">contact</name>
</semanticType>
<semanticType SEMCODE="20.1.15">
<name sl="tekmovanje">contest</name>
</semanticType>
<semanticType SEMCODE="20.1.9">
<name sl="telesno">physical</name>
<semanticType SEMCODE="20.1.9.1">
<name sl="nega">care</name>
</semanticType>
<semanticType SEMCODE="20.1.9.2">
<name sl="vitalno">vital</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="20.1.10">
<name sl="ustvarjanje">creation</name>
</semanticType>
<semanticType SEMCODE="20.1.11">
<name sl="zaužitje">consumption</name>
<semanticType SEMCODE="20.1.11.1">
<name sl="hrana_kuha">food_cooking</name>
</semanticType>
<semanticType SEMCODE="20.1.11.2">
<name sl="hrana_pridelava">food_production</name>
</semanticType>
<semanticType SEMCODE="20.1.11.3">
<name sl="hrana_uživanje">food_consumption</name>
</semanticType>
</semanticType>
</semanticType>
<semanticType SEMCODE="20.2">
<name sl="DEJAVNOST">ACTIVITY</name>
<semanticType SEMCODE="20.2.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="20.2.2">
<name sl="gospodarska">industrial</name>
</semanticType>
<semanticType SEMCODE="20.2.3">
<name sl="negospodarska">nonindustrial</name>
<semanticType SEMCODE="20.2.3.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="20.2.3.2">
<name sl="igra">game</name>
</semanticType>
<semanticType SEMCODE="20.2.3.3">
<name sl="ples">dance</name>
</semanticType>
<semanticType SEMCODE="20.2.3.4">
<name sl="šport">sport</name>
</semanticType>
</semanticType>
</semanticType>
</semanticType>
<semanticType SEMCODE="9">
<name sl="ARTEFAKT">ARTEFACT</name>
<semanticType SEMCODE="9.2">
<name sl="denar">money</name>
</semanticType>
<semanticType SEMCODE="9.3">
<name sl="dokument">document</name>
</semanticType>
<semanticType SEMCODE="9.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="9.4">
<name sl="glasbilo">instrument</name>
<semanticType SEMCODE="9.4.2">
<name sl="brenkalo">string_plucking</name>
</semanticType>
<semanticType SEMCODE="9.4.8">
<name sl="del_glasbila">part</name>
</semanticType>
<semanticType SEMCODE="9.4.3">
<name sl="godalo">string_bowing</name>
</semanticType>
<semanticType SEMCODE="9.4.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="9.4.4">
<name sl="pihalo">wind</name>
</semanticType>
<semanticType SEMCODE="9.4.9">
<name sl="pripomoček">tool</name>
</semanticType>
<semanticType SEMCODE="9.4.5">
<name sl="tipke">keyboard</name>
</semanticType>
<semanticType SEMCODE="9.4.6">
<name sl="tolkalo">percussion</name>
</semanticType>
<semanticType SEMCODE="9.4.7">
<name sl="trobilo">brass</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.5">
<name sl="komunikacija">communication</name>
<semanticType SEMCODE="9.5.1">
<name sl="IKT">ICT</name>
</semanticType>
<semanticType SEMCODE="9.5.2">
<name sl="znak_simbol">sign_symbol</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.6">
<name sl="naprava_pripomoček">device_apparatus</name>
<semanticType SEMCODE="9.6.1">
<name sl="naprava">device</name>
<semanticType SEMCODE="9.6.1.2">
<name sl="elektro_element">electrical_element</name>
</semanticType>
<semanticType SEMCODE="9.6.1.3">
<name sl="hišna">domestic</name>
</semanticType>
<semanticType SEMCODE="9.6.1.4">
<name sl="komunikacijska">communication</name>
</semanticType>
<semanticType SEMCODE="9.6.1.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="9.6.1.5">
<name sl="računalniška">computer</name>
</semanticType>
<semanticType SEMCODE="9.6.1.6">
<name sl="signalna">signalling</name>
</semanticType>
<semanticType SEMCODE="9.6.1.7">
<name sl="svetilna">light</name>
</semanticType>
<semanticType SEMCODE="9.6.1.8">
<name sl="zabavna">entertainment</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.6.2">
<name sl="orodje">tool</name>
</semanticType>
<semanticType SEMCODE="9.6.3">
<name sl="pripomoček">apparatus</name>
<semanticType SEMCODE="9.6.3.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="9.6.3.2">
<name sl="igrača">toy</name>
</semanticType>
<semanticType SEMCODE="9.6.3.3">
<name sl="kuhinjski">kitchen</name>
</semanticType>
<semanticType SEMCODE="9.6.3.4">
<name sl="merilni">measuring</name>
</semanticType>
<semanticType SEMCODE="9.6.3.5">
<name sl="pisarniški">office</name>
</semanticType>
<semanticType SEMCODE="9.6.3.6">
<name sl="svetilni">light</name>
</semanticType>
<semanticType SEMCODE="9.6.3.7">
<name sl="športni">sport</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.6.4">
<name sl="stroj">machine</name>
<semanticType SEMCODE="9.6.4.1">
<name sl="del_stroja">part</name>
</semanticType>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.7">
<name sl="oblačilo">apparel</name>
<semanticType SEMCODE="9.7.1">
<name sl="dodatek">accessory</name>
</semanticType>
<semanticType SEMCODE="9.7.2">
<name sl="nakit">jewellery</name>
</semanticType>
<semanticType SEMCODE="9.7.3">
<name sl="oblačilo">clothes</name>
</semanticType>
<semanticType SEMCODE="9.7.4">
<name sl="obutev">footgear</name>
</semanticType>
<semanticType SEMCODE="9.7.5">
<name sl="pokrivalo">headgear</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.8">
<name sl="orožje">weapon</name>
<semanticType SEMCODE="9.8.2">
<name sl="municija">ammunition</name>
</semanticType>
<semanticType SEMCODE="9.8.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="9.8.3">
<name sl="ročno">hand</name>
</semanticType>
<semanticType SEMCODE="9.8.4">
<name sl="vojaška_naprava">military_device</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.9">
<name sl="pohištvo_oprema">furniture_equipment</name>
<semanticType SEMCODE="9.9.1">
<name sl="del_opreme">part</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.10">
<name sl="posoda_shranjevanje">container_vessel</name>
</semanticType>
<semanticType SEMCODE="9.11">
<name sl="snov">substance</name>
<semanticType SEMCODE="9.11.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="9.11.2">
<name sl="farmacevtska">pharmaceutical</name>
</semanticType>
<semanticType SEMCODE="9.11.3">
<name sl="osebna_nega">body_care</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.12">
<name sl="tekstil">fabric</name>
</semanticType>
<semanticType SEMCODE="9.13">
<name sl="umetniški_izdelek">artwork</name>
</semanticType>
<semanticType SEMCODE="9.14">
<name sl="vozilo">vehicle</name>
<semanticType SEMCODE="9.14.1">
<name sl="kopensko">land</name>
</semanticType>
<semanticType SEMCODE="9.14.2">
<name sl="vesoljsko">space</name>
</semanticType>
<semanticType SEMCODE="9.14.3">
<name sl="vodno">water</name>
</semanticType>
<semanticType SEMCODE="9.14.4">
<name sl="zračno">air</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="9.15">
<name sl="zgradba">building</name>
<semanticType SEMCODE="9.15.2">
<name sl="bivališče">dwelling</name>
</semanticType>
<semanticType SEMCODE="9.15.3">
<name sl="del_zgradbe">part_of_building</name>
</semanticType>
<semanticType SEMCODE="9.15.4">
<name sl="delovišče">worksite</name>
</semanticType>
<semanticType SEMCODE="9.15.5">
<name sl="hramba">storage</name>
</semanticType>
<semanticType SEMCODE="9.15.6">
<name sl="infrastruktura">infrastructure</name>
</semanticType>
<semanticType SEMCODE="9.15.7">
<name sl="javnopolitična">public_political</name>
</semanticType>
<semanticType SEMCODE="9.15.8">
<name sl="kulturna">cultural</name>
</semanticType>
<semanticType SEMCODE="9.15.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="9.15.9">
<name sl="storitve">services</name>
</semanticType>
<semanticType SEMCODE="9.15.10">
<name sl="verska">religious</name>
</semanticType>
</semanticType>
</semanticType>
<semanticType SEMCODE="15">
<name sl="ČAS">TIME</name>
<semanticType SEMCODE="15.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="15.2">
<name sl="enota">unit</name>
</semanticType>
<semanticType SEMCODE="15.3">
<name sl="obdobje">period</name>
<semanticType SEMCODE="15.3.1">
<name sl="splošno">general</name>
</semanticType>
<semanticType SEMCODE="15.3.2">
<name sl="zgodovinsko">historic</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="15.4">
<name sl="trenutek">moment</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="1">
<name sl="ČLOVEK">HUMAN</name>
<semanticType SEMCODE="1.1">
<name sl="aktivnost">activity</name>
<semanticType SEMCODE="1.1.2">
<name sl="funkcija">function</name>
</semanticType>
<semanticType SEMCODE="1.1.3">
<name sl="nosilec">agent</name>
</semanticType>
<semanticType SEMCODE="1.1.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="1.1.4">
<name sl="poklic">profession</name>
</semanticType>
<semanticType SEMCODE="1.1.5">
<name sl="poklic_nosilec">profession_agent</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="1.2">
<name sl="lastnost">characteristic</name>
<semanticType SEMCODE="1.2.8">
<name sl="geografska">geographical</name>
</semanticType>
<semanticType SEMCODE="1.2.4">
<name sl="nazor">belief</name>
</semanticType>
<semanticType SEMCODE="1.2.6">
<name sl="nesorodstvena">nonkin</name>
</semanticType>
<semanticType SEMCODE="1.2.1">
<name sl="drugo">other</name>
</semanticType>
<semanticType SEMCODE="1.2.7">
<name sl="pripadnost">member</name>
</semanticType>
<semanticType SEMCODE="1.2.5">
<name sl="sorodstvena">kin</name>
</semanticType>
<semanticType SEMCODE="1.2.9">
<name sl="status">status</name>
</semanticType>
<semanticType SEMCODE="1.2.2">
<name sl="telesna">physical</name>
</semanticType>
<semanticType SEMCODE="1.2.3">
<name sl="umska_mentalna_vedenjska">intellectual_mental_behavioural</name>
</semanticType>
</semanticType>
<semanticType SEMCODE="1.3">
<name sl="mitologija">mythology</name>
</semanticType>
<semanticType SEMCODE="1.4">
<name sl="naziv">name</name>
<semanticType SEMCODE="1.4.3">
<name sl="akademski">academic</name>
</semanticType>
<semanticType SEMCODE="1.4.2">
<name sl="ime">personal</name>
</semanticType>
<semanticType SEMCODE="1.4.4">
<name sl="naslavljalni">title</name>
</semanticType>
<semanticType SEMCODE="1.4.5">
<name sl="plemiški">noble</name>
</semanticType>
<semanticType SEMCODE="1.4.1">
<name sl="vzdevek">nickname</name>
</semanticType>
</semanticType>
</semanticType>
</slonest>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,31 @@
<?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:complexType name="nameType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="sl" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="semanticTypeType">
<xsd:sequence>
<xsd:element name="name" type="nameType"/>
<xsd:element name="semanticType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="SEMCODE" type="xsd:string"/>
</xsd:complexType>
<xsd:element name="slonest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="semanticType" type="semanticTypeType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

View File

@ -0,0 +1,346 @@
<?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:complexType name="restrictionType">
<xsd:sequence>
<xsd:element name="feature" type="restrictionFeatureType" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="type">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="morphology"/>
<xsd:enumeration value="lexis"/>
<xsd:enumeration value="space"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="restrictionOrType">
<xsd:sequence>
<xsd:element name="restriction" type="restrictionType" minOccurs="2" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="representationType">
<xsd:sequence>
<xsd:element name="feature" type="representationFeatureType" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="restrictionFeatureType">
<xsd:attribute name="POS">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="noun"/>
<xsd:enumeration value="verb"/>
<xsd:enumeration value="adjective"/>
<xsd:enumeration value="adverb"/>
<xsd:enumeration value="pronoun"/>
<xsd:enumeration value="numeral"/>
<xsd:enumeration value="preposition"/>
<xsd:enumeration value="conjunction"/>
<xsd:enumeration value="particle"/>
<xsd:enumeration value="interjection"/>
<xsd:enumeration value="abbreviation"/>
<xsd:enumeration value="residual"/>
<xsd:enumeration value="punctuation"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="case">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="nominative"/>
<xsd:enumeration value="genitive"/>
<xsd:enumeration value="dative"/>
<xsd:enumeration value="accusative"/>
<xsd:enumeration value="locative"/>
<xsd:enumeration value="instrumental"/>
<xsd:enumeration value="genitive|accusative"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="type">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="main"/>
<xsd:enumeration value="auxiliary"/>
<xsd:enumeration value="reflexive"/>
<xsd:enumeration value="common"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="form">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="digit"/>
<xsd:enumeration value="roman"/>
<xsd:enumeration value="letter"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="clitic">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="yes"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="negative">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="yes"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="filter">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="negative"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="vform">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="present"/>
<xsd:enumeration value="infinitive"/>
<xsd:enumeration value="supine"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="lemma">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="in|ali"/>
<xsd:enumeration value="kot|kakor|ko"/>
<xsd:enumeration value="ne"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="level">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="lemma"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="contact">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="neither"/>
<xsd:enumeration value="left"/>
<xsd:enumeration value="right"/>
<xsd:enumeration value="both"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="representationFeatureType">
<xsd:attribute name="rendition">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="word_form"/>
<xsd:enumeration value="lemma"/>
<xsd:enumeration value="lexis"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="selection">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="msd"/>
<xsd:enumeration value="agreement"/>
<xsd:enumeration value="all"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="msd">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="number"/>
<xsd:enumeration value="gender+number+case"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="head_cid" type="xsd:integer"/>
<xsd:attribute name="case">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="nominative"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="vform">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="present"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="person">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="third"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="string">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ne"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="componentsComponentType">
<xsd:attribute name="cid" use="required" type="xsd:integer"/>
<xsd:attribute name="type" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="core"/>
<xsd:enumeration value="other"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="label" type="xsd:string"/>
<xsd:attribute name="status">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="forbidden"/>
<xsd:enumeration value="obligatory"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<xsd:complexType name="dependencyType">
<xsd:attribute name="from" use="required">
<xsd:simpleType>
<xsd:union>
<xsd:simpleType>
<xsd:restriction base="xsd:integer"/>
</xsd:simpleType>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="#"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:union>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="to" use="required" type="xsd:integer"/>
<xsd:attribute name="label" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="#"/>
<xsd:enumeration value="modra"/>
<xsd:enumeration value="del"/>
<xsd:enumeration value="dol"/>
<xsd:enumeration value="ena"/>
<xsd:enumeration value="dve"/>
<xsd:enumeration value="tri"/>
<xsd:enumeration value="štiri"/>
<xsd:enumeration value="prir"/>
<xsd:enumeration value="vez"/>
<xsd:enumeration value="skup"/>
<xsd:enumeration value="tri|štiri"/>
<xsd:enumeration value="dve|tri|štiri"/>
<xsd:enumeration value="dol|dve|tri|štiri"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="order">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="to-from"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
<xsd:element name="syntactic_structures">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="syntactic_structure" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="system">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="components">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="component" type="componentsComponentType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="order" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="fixed"/>
<xsd:enumeration value="variable"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="dependencies">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="dependency" type="dependencyType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="definition">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="component" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:choice minOccurs="0">
<xsd:element name="restriction" type="restrictionType" maxOccurs="unbounded"/>
<xsd:element name="restriction_or" type="restrictionOrType" maxOccurs="unbounded"/>
</xsd:choice>
<xsd:element name="representation" type="representationType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="cid" type="xsd:integer"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="type" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="JOS"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:integer"/>
<xsd:attribute name="tempId" type="xsd:integer"/>
<xsd:attribute name="label" use="required" type="xsd:string"/>
<xsd:attribute name="type" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="single"/>
<xsd:enumeration value="collocation"/>
<xsd:enumeration value="other"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>

View File

@ -4,7 +4,8 @@ script_dir="$(dirname "$(readlink -f "$0")")"
cd $script_dir
schema_dir=../resources/schema
top_schema=$schema_dir/top_dictionaries.xsd # for now we only have dictionaries
top_schema=$schema_dir/top_dictionaries.xsd
dictionary_types=("bilingual_dictionaries collocation_dictionary monolingual_dictionaries morphological_lexicon valency_lexicon")
example_dir=../examples
for example_subdir in $example_dir/*
@ -13,11 +14,13 @@ do
bottom_schema=$schema_dir/$base.xsd
for example_file in $example_subdir/*.xml
do
case $base in bilingual_dictionaries|collocation_dictionary|monolingual_dictionaries|morphological_lexicon|valency_lexicon)
command="xmllint -schema $top_schema $example_file --noout"
echo $command
if ! $command; then
exit 1
fi
esac
command="xmllint -schema $bottom_schema $example_file --noout"
echo $command
if ! $command; then