2019-11-19 19:51:21 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2020-03-04 20:27:33 +00:00
|
|
|
|
|
|
|
<!-- This inventory defines types which are intended as building blocks that can and should be used in all CJVT schemas. -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd" />
|
2019-11-19 19:51:21 +00:00
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Status string identifying stage in the lexicographic process -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:simpleType name="statusType">
|
|
|
|
<xsd:restriction base="xsd:string"/>
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Basic form and info of a lexical unit -->
|
2019-11-27 13:02:13 +00:00
|
|
|
<xsd:complexType name="lemmaType">
|
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:string">
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="audio" type="xsd:string"/> <!-- legacy ID associated with an audio file -->
|
|
|
|
<xsd:attribute name="type"> <!-- one of a limited number of possible types, default interpretation is normally "single" -->
|
2020-01-21 07:29:33 +00:00
|
|
|
<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>
|
2019-11-27 13:02:13 +00:00
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
2019-11-19 19:51:21 +00:00
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Free form comment -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:simpleType name="commentType">
|
|
|
|
<xsd:restriction base="xsd:string"/>
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Used if need to disambiguate between two lexical units with the same lemma -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="homonymyType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="homonymyFeature" type="homonymyFeatureType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Basic grammatical feature as a name-value pair -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<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>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Lemma-disambiguating feature, more open-ended than grammarFeatureType -->
|
2020-02-19 16:27:48 +00:00
|
|
|
<xsd:complexType name="homonymyFeatureType">
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:string">
|
|
|
|
<xsd:attribute name="name" type="xsd:string" use="required"/>
|
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Element which uniquely identifies a headword, with its basic properties and (if necessary) disambiguating features -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="headwordType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="lemma" type="lemmaType"/>
|
|
|
|
<xsd:element name="homonymy" type="homonymyType" minOccurs="0"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Word component of a lexical unit -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="lexemeType">
|
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:string">
|
2020-03-04 20:50:47 +00:00
|
|
|
<xsd:attribute name="type"> <!-- hmm, what types are expected; currently either missing or "argument", but does that really make sense? -->
|
|
|
|
<xsd:simpleType>
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:enumeration value="argument"/>
|
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
</xsd:attribute>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="lexical_unit_lexeme_id" type="xsd:int"/> <!-- ID within its lexical unit -->
|
|
|
|
<xsd:attribute name="sloleks" type="xsd:string"/> <!-- Sloleks ID -->
|
|
|
|
<xsd:attribute name="kol" type="xsd:string"/> <!-- hmm, legacy attribute for a collocate's lemma; why not just use @lemma? -->
|
2020-02-26 22:38:35 +00:00
|
|
|
<xsd:attribute name="lemma" type="xsd:string"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="msd" type="xsd:string"/> <!-- msd within the Slovene JOS system -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- The lexical unit of the headword -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="lexicalUnitType">
|
|
|
|
<xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:choice> <!-- the headword can be either a single lexeme or multiple components -->
|
2020-02-26 21:46:15 +00:00
|
|
|
<xsd:element name="lexeme" type="lexemeType"/>
|
|
|
|
<xsd:element name="component" type="componentType" minOccurs="2" maxOccurs="unbounded"/>
|
|
|
|
</xsd:choice>
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="id" type="xsd:int" use="required"/>
|
2020-03-04 20:50:47 +00:00
|
|
|
<xsd:attribute name="type" use="required"> <!-- types of headwords allowed; hmm, probably should standardise allowed settings -->
|
|
|
|
<xsd:simpleType>
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:enumeration value="single"/>
|
|
|
|
<xsd:enumeration value="MWE"/>
|
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
</xsd:attribute>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="structure_id" type="xsd:int"/> <!-- syntactic structure ID -->
|
|
|
|
<xsd:attribute name="origin" type="xsd:string"/> <!-- legacy attribute to track where the lexical unit came from -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Slovenian morphosyntactic categories (using the JOS system) -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:simpleType name="categoryType">
|
|
|
|
<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>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Grammatical information -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="grammarType">
|
|
|
|
<xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:element name="category" type="categoryType" minOccurs="0"/> <!-- identifies the part of speech, unless it's not a single lexeme -->
|
|
|
|
<xsd:element name="grammarFeature" type="grammarFeatureType" minOccurs="0" maxOccurs="unbounded"/> <!-- relevant grammatical features -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Statistical measure -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="measureType">
|
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:decimal">
|
2020-03-04 20:50:47 +00:00
|
|
|
<xsd:attribute name="type" type="xsd:string" use="required"/> <!-- type of measure (e.g., frequency, logDice); hmm, probably should be enumerated -->
|
2020-05-29 12:25:48 +00:00
|
|
|
<xsd:attribute name="corpus_id" type="xsd:int"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="source" type="xsd:string"/> <!-- context of the measure, probably corpus name and version -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of measures -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="measureListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="measure" type="measureType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Variant of a lexical unit -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<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>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of variants -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="variantListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="variant" type="variantType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Related lexical unit -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="relatedEntryType">
|
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:string">
|
|
|
|
<xsd:attribute name="lexical_unit_id" type="xsd:int"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="origin" type="xsd:string"/> <!-- legacy attribute to track where the lexical unit came from -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of related entries -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="relatedEntryListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="relatedEntry" type="relatedEntryType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Name-value pair for providing extra information -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="labelType">
|
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:string">
|
|
|
|
<xsd:attribute name="feature_id" type="xsd:int"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="featureId" type="xsd:string"/> <!-- an ID from an external source of the label feature -->
|
|
|
|
<xsd:attribute name="type" type="xsd:string"/> <!-- name of the label feature corresponding to its ID -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of labels -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="labelListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="label" type="labelType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Definition of a sense -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="definitionType">
|
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:string">
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="type" type="xsd:string"/> <!-- hmm: what's expected here? -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:attribute name="definition_id" type="xsd:int"/>
|
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of definitions -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="definitionListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="definition" type="definitionType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Translation from Slovene into another language -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="translationType">
|
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:string">
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="targetLang" type="xsd:string" use="required"/> <!-- target language -->
|
|
|
|
<xsd:attribute name="source" type="xsd:string"/> <!-- where the translation comes from -->
|
|
|
|
<xsd:attribute name="audio" type="xsd:string"/> <!-- legacy ID associated with an audio file -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Component of a syntactic structure, containing one of the lexemes of a lexical unit; used in non-mixed content contexts -->
|
2020-02-26 21:46:15 +00:00
|
|
|
<xsd:complexType name="componentType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="lexeme" type="lexemeType"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
<xsd:attribute name="structure_id" type="xsd:int"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="num" type="xsd:int"/> <!-- index identifying the component's position within the syntactic structure -->
|
2020-02-26 21:46:15 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Component in a syntactic structure and lexeme in a lexical unit; used in mixed content contexts -->
|
2020-02-26 21:46:15 +00:00
|
|
|
<xsd:complexType name="compType">
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:simpleContent>
|
|
|
|
<xsd:extension base="xsd:string">
|
2020-02-25 16:02:59 +00:00
|
|
|
<xsd:attribute name="structure_id" type="xsd:int"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="num" type="xsd:int"/> <!-- index identifying the component's position within the syntactic structure -->
|
|
|
|
<xsd:attribute name="role"> <!-- withinin collocations, identifies the word's role -->
|
2019-11-27 13:02:13 +00:00
|
|
|
<xsd:simpleType>
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:enumeration value="headword"/>
|
|
|
|
<xsd:enumeration value="collocate"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:enumeration value="other"/> <!-- used for prepositions and other extra components -->
|
2019-11-27 13:02:13 +00:00
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
</xsd:attribute>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="sloleks" type="xsd:string"/> <!-- Sloleks ID -->
|
|
|
|
<xsd:attribute name="kol" type="xsd:string"/> <!-- legacy attribute for the word's lemma -->
|
2020-04-01 08:46:07 +00:00
|
|
|
<xsd:attribute name="lexical_unit_lexeme_id" type="xsd:int"/> <!-- ID within its lexical unit -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:extension>
|
|
|
|
</xsd:simpleContent>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Mixed-content container element used in examples where roles can include multiple word components (e.g., semantic roles). -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:complexType name="exampleTreeType" mixed="true">
|
|
|
|
<xsd:sequence>
|
2020-05-19 13:09:44 +00:00
|
|
|
<xsd:element name="comp" type="compType" minOccurs="0" maxOccurs="unbounded"/> <!-- the tree contains one or more components -->
|
2020-02-21 19:47:54 +00:00
|
|
|
</xsd:sequence>
|
2020-03-04 20:50:47 +00:00
|
|
|
<xsd:attribute name="role" type="semanticRoleType"/>
|
2020-02-21 19:47:54 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Example sentence from a corpus (as opposed to a multi-word example) -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="corpusExampleType" mixed="true">
|
|
|
|
<xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:choice minOccurs="0" maxOccurs="unbounded"> <!-- in most contexts, comps are sufficient, but in some trees are needed -->
|
2020-02-26 21:46:15 +00:00
|
|
|
<xsd:element name="comp" type="compType"/>
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:element name="tree" type="exampleTreeType"/>
|
|
|
|
</xsd:choice>
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:sequence>
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:attribute name="corpus_id" type="xsd:int"/>
|
2020-05-29 12:25:48 +00:00
|
|
|
<xsd:attribute name="corpusName" type="xsd:string"/>
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:attribute name="example_id" type="xsd:int"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="exampleId" type="xsd:string"/> <!-- the example's ID within the corpus itself -->
|
|
|
|
<xsd:attribute name="modified" type="xsd:boolean"/> <!-- is the example text different than in the corpus? -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:attribute name="lexical_unit_id" type="xsd:int"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="audio" type="xsd:string"/> <!-- legacy ID associated with an audio file -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Multi-word example (as opposed to a corpus sentence) -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<xsd:complexType name="multipleLexemeExampleType">
|
|
|
|
<xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:element name="comp" type="compType" maxOccurs="unbounded"/> <!-- the example consists of a sequence of components -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="type" use="required"> <!-- one of a pre-defined set of types (which will probably still be expanded) -->
|
2019-11-19 19:51:21 +00:00
|
|
|
<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-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="structureName" type="xsd:string"/> <!-- a string name for the structure, especially if we don't have its ID -->
|
2019-11-27 13:02:13 +00:00
|
|
|
<xsd:attribute name="frequency" type="xsd:int"/>
|
|
|
|
<xsd:attribute name="logDice" type="xsd:decimal"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="audio" type="xsd:string"/> <!-- legacy ID associated with an audio file -->
|
|
|
|
<xsd:attribute name="cluster" type="xsd:int"/> <!-- number identifying a group of clustered examples -->
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Wrapper including a translation and related data -->
|
2020-02-19 16:27:48 +00:00
|
|
|
<xsd:complexType name="translationContainerType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="labelList" type="labelListType" minOccurs="0"/>
|
2020-04-01 13:49:40 +00:00
|
|
|
<xsd:choice>
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="translation" type="translationType"/>
|
|
|
|
<xsd:element name="explanationList" type="explanationListType" minOccurs="0"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
<xsd:element name="explanationList" type="explanationListType"/>
|
|
|
|
</xsd:choice>
|
2020-02-19 16:27:48 +00:00
|
|
|
</xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="cluster" type="xsd:int"/> <!-- number identifying a group of clustered translations -->
|
|
|
|
<xsd:attribute name="source" type="xsd:string"/> <!-- hmm, we already have @source under translationType, that's not enough? -->
|
2020-02-19 16:27:48 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of translation wrappers -->
|
2020-02-19 16:27:48 +00:00
|
|
|
<xsd:complexType name="translationContainerListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="translationContainer" type="translationContainerType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-04-01 13:49:40 +00:00
|
|
|
<!-- List of explanations -->
|
|
|
|
<xsd:complexType name="explanationListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="explanation" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Wrapper including an example and (possibly) its translation -->
|
2020-02-19 16:27:48 +00:00
|
|
|
<xsd:complexType name="exampleContainerType">
|
|
|
|
<xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:choice> <!-- can be a corpus example or a multi-word example -->
|
2020-02-19 16:27:48 +00:00
|
|
|
<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>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of example containers -->
|
2020-02-19 16:27:48 +00:00
|
|
|
<xsd:complexType name="exampleContainerListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="exampleContainer" type="exampleContainerType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Set of semantic role labels -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<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>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Container which associates a set of statistics with a certain type of data -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:complexType name="statisticsContainerType">
|
|
|
|
<xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:choice> <!-- currently only semantic roles are supported, but expect other types of data in future -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:element name="semanticRole" type="semanticRoleType"/>
|
|
|
|
</xsd:choice>
|
|
|
|
<xsd:element name="measureList" type="measureListType"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of statistics containers -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:complexType name="statisticsContainerListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="statisticsContainer" type="statisticsContainerType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Syntactic structure, with its components or examples -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:complexType name="syntacticStructureType">
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:choice> <!-- Can either list the structure's components, or examples of the structure (maybe this should be divided into 2 types) -->
|
2020-02-26 23:15:08 +00:00
|
|
|
<xsd:element name="component" type="componentType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
<xsd:element name="exampleContainerList" type="exampleContainerListType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:choice>
|
2020-02-21 19:47:54 +00:00
|
|
|
</xsd:sequence>
|
|
|
|
<xsd:attribute name="id" type="xsd:int"/>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="name" type="xsd:string"/> <!-- a string name for the structure, especially if we don't have its ID -->
|
|
|
|
<xsd:attribute name="pp" type="xsd:string"/> <!-- the structure's preposition (if any) -->
|
2020-02-21 19:47:54 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of syntactic structures -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:complexType name="syntacticStructureListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="syntacticStructure" type="syntacticStructureType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
2020-03-04 20:50:47 +00:00
|
|
|
<xsd:attribute name="system"> <!-- the system within which the structure is defined -->
|
|
|
|
<xsd:simpleType>
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:enumeration value="JOS"/>
|
|
|
|
<xsd:enumeration value="UD"/>
|
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
</xsd:attribute>
|
2020-02-21 19:47:54 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Container associating a semantic role with a list of syntactic structures -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:complexType name="semanticRoleContainerType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="semanticRole" type="semanticRoleType"/>
|
2020-05-19 13:09:44 +00:00
|
|
|
<xsd:element name="syntacticStructureList" type="syntacticStructureListType" minOccurs="0" maxOccurs="1"/>
|
2020-02-21 19:47:54 +00:00
|
|
|
</xsd:sequence>
|
2020-03-04 20:27:33 +00:00
|
|
|
<xsd:attribute name="cluster" type="xsd:int"/> <!-- hmm, number identifying a group of clustered roles? -->
|
2020-02-21 19:47:54 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of semantic role containers -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:complexType name="semanticRoleContainerListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="semanticRoleContainer" type="semanticRoleContainerType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
|
|
|
</xsd:complexType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Human-readable string identifying a valency pattern -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:simpleType name="patternRepresentationType">
|
|
|
|
<xsd:restriction base="xsd:string"/>
|
|
|
|
</xsd:simpleType>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- Wrapper for valency pattern data -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<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>
|
|
|
|
|
2020-03-04 20:27:33 +00:00
|
|
|
<!-- List of valency patterns -->
|
2020-02-21 19:47:54 +00:00
|
|
|
<xsd:complexType name="valencyPatternListType">
|
|
|
|
<xsd:sequence>
|
|
|
|
<xsd:element name="valencyPattern" type="valencyPatternType" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xsd:sequence>
|
2020-05-19 13:09:44 +00:00
|
|
|
<xsd:attribute name="system"> <!-- the system within which the structure is defined -->
|
|
|
|
<xsd:simpleType>
|
|
|
|
<xsd:restriction base="xsd:string">
|
|
|
|
<xsd:enumeration value="JOS"/>
|
|
|
|
<xsd:enumeration value="UD"/>
|
|
|
|
</xsd:restriction>
|
|
|
|
</xsd:simpleType>
|
|
|
|
</xsd:attribute>
|
2020-02-21 19:47:54 +00:00
|
|
|
</xsd:complexType>
|
|
|
|
|
2019-11-19 19:51:21 +00:00
|
|
|
</xsd:schema>
|