IssueID #1102: separated comp from lexeme and added component

This commit is contained in:
Cyprian Laskowski
2020-02-26 22:46:15 +01:00
parent f489418888
commit a8bd3a1307
2 changed files with 36 additions and 14 deletions

View File

@@ -61,13 +61,17 @@
<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:element name="lexeme" type="lexemeType" minOccurs="0" maxOccurs="unbounded"/>
<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"/>
@@ -182,13 +186,19 @@
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="componentLexemeType">
<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="lexical_unit_lexeme_id" type="xsd:int"/>
<xsd:attribute name="structure_id" type="xsd:int"/>
<xsd:attribute name="num" type="xsd:int"/>
<xsd:attribute name="lexeme_id" type="xsd:int"/>
<xsd:attribute name="role">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
@@ -206,7 +216,7 @@
<xsd:complexType name="exampleTreeType" mixed="true">
<xsd:sequence>
<xsd:element name="comp" type="componentLexemeType" maxOccurs="unbounded"/>
<xsd:element name="comp" type="compType" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="role" type="xsd:string"/>
</xsd:complexType>
@@ -214,7 +224,7 @@
<xsd:complexType name="corpusExampleType" mixed="true">
<xsd:sequence>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="comp" type="componentLexemeType"/>
<xsd:element name="comp" type="compType"/>
<xsd:element name="tree" type="exampleTreeType"/>
</xsd:choice>
</xsd:sequence>
@@ -227,7 +237,7 @@
<xsd:complexType name="multipleLexemeExampleType">
<xsd:sequence>
<xsd:element name="comp" type="componentLexemeType" maxOccurs="unbounded"/>
<xsd:element name="comp" type="compType" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="type" use="required">
<xsd:simpleType>
@@ -325,7 +335,7 @@
<xsd:complexType name="syntacticStructureType">
<xsd:sequence>
<xsd:element name="comp" type="componentLexemeType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="component" type="componentType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:int"/>
</xsd:complexType>