IssueID #1547: added support for related senses

This commit is contained in:
Cyprian Laskowski 2020-11-12 15:54:11 +01:00
parent 977e1f4d0a
commit 15b955776f
3 changed files with 19 additions and 0 deletions

View File

@ -35,6 +35,7 @@
<xsd:element name="sense" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="relatedSenseList" type="relatedSenseListType" minOccurs="0"/>
<xsd:element name="labelList" type="labelListType" minOccurs="0"/>
<xsd:element name="definitionList" type="definitionListType" minOccurs="0"/>
<xsd:element name="translationContainerList" type="translationContainerListType" minOccurs="0"/>

View File

@ -205,6 +205,23 @@
</xsd:sequence>
</xsd:complexType>
<!-- Related sense -->
<xsd:complexType name="relatedSenseType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="sense_id" type="xsd:int"/>
<xsd:attribute name="type" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<!-- List of related senses -->
<xsd:complexType name="relatedSenseListType">
<xsd:sequence>
<xsd:element name="relatedSense" type="relatedSenseType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- Name-value pair for providing extra information -->
<xsd:complexType name="labelType">
<xsd:simpleContent>

View File

@ -35,6 +35,7 @@
<xsd:element name="sense" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="relatedSenseList" type="relatedSenseListType" minOccurs="0"/>
<xsd:element name="labelList" type="labelListType" minOccurs="0"/>
<xsd:element name="definitionList" type="definitionListType" minOccurs="0"/>
<xsd:element name="exampleContainerList" type="exampleContainerListType" minOccurs="0"/>