IssueID #1102: adjusted explanation and example container types

This commit is contained in:
Cyprian Laskowski 2020-08-07 16:35:41 +02:00
parent 7042ded725
commit e5d057ae6f
2 changed files with 29 additions and 14 deletions

View File

@ -71,12 +71,14 @@
<exampleContainerList> <exampleContainerList>
<exampleContainer> <exampleContainer>
<corpusExample example_id="4343" modified="true" audio="audio-465346">Kupili smo <comp role="headword">hišo</comp>.</corpusExample> <corpusExample example_id="4343" modified="true" audio="audio-465346">Kupili smo <comp role="headword">hišo</comp>.</corpusExample>
<translationContainer> <translationContainerList>
<labelList> <translationContainer>
<label type="type5">value8</label> <labelList>
</labelList> <label type="type5">value8</label>
<translation targetLang="hun">Blah blah blah 1.</translation> </labelList>
</translationContainer> <translation targetLang="hun">Blah blah blah 1.</translation>
</translationContainer>
</translationContainerList>
</exampleContainer> </exampleContainer>
<exampleContainer> <exampleContainer>
<multiwordExample lexical_unit_id="19" type="collocation" audio="audio-56643"> <multiwordExample lexical_unit_id="19" type="collocation" audio="audio-56643">
@ -84,15 +86,19 @@
<comp role="collocate" sloleks="LE_blahblah">ogledati</comp> <comp role="collocate" sloleks="LE_blahblah">ogledati</comp>
<comp role="headword">hiša</comp> <comp role="headword">hiša</comp>
</multiwordExample> </multiwordExample>
<translationContainer> <translationContainerList>
<translation targetLang="hun" source="source2" audio="audio-blah-77242">blah blah2</translation> <translationContainer>
</translationContainer> <translation targetLang="hun" source="source2" audio="audio-blah-77242">blah blah2</translation>
</translationContainer>
</translationContainerList>
</exampleContainer> </exampleContainer>
<exampleContainer> <exampleContainer>
<corpusExample example_id="552439" modified="false" lexical_unit_id="19"><comp role="collocate">Ogledali</comp> smo <comp role="collocate">si</comp> <comp role="headword">hišo</comp>.</corpusExample> <corpusExample example_id="552439" modified="false" lexical_unit_id="19"><comp role="collocate">Ogledali</comp> smo <comp role="collocate">si</comp> <comp role="headword">hišo</comp>.</corpusExample>
<translationContainer> <translationContainerList>
<translation targetLang="hun" source="source2">Blah blah blah 3.</translation> <translationContainer>
</translationContainer> <translation targetLang="hun" source="source2">Blah blah blah 3.</translation>
</translationContainer>
</translationContainerList>
</exampleContainer> </exampleContainer>
</exampleContainerList> </exampleContainerList>
</sense> </sense>

View File

@ -330,10 +330,19 @@
</xsd:sequence> </xsd:sequence>
</xsd:complexType> </xsd:complexType>
<!-- Explanation (in contrast with translation) -->
<xsd:complexType name="explanationType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="language" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<!-- List of explanations --> <!-- List of explanations -->
<xsd:complexType name="explanationListType"> <xsd:complexType name="explanationListType">
<xsd:sequence> <xsd:sequence>
<xsd:element name="explanation" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="explanation" type="explanationType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence> </xsd:sequence>
</xsd:complexType> </xsd:complexType>
@ -344,7 +353,7 @@
<xsd:element name="corpusExample" type="corpusExampleType"/> <xsd:element name="corpusExample" type="corpusExampleType"/>
<xsd:element name="multiwordExample" type="multipleLexemeExampleType"/> <xsd:element name="multiwordExample" type="multipleLexemeExampleType"/>
</xsd:choice> </xsd:choice>
<xsd:element name="translationContainer" type="translationContainerType" minOccurs="0"/> <xsd:element name="translationContainerList" type="translationContainerListType" minOccurs="0"/>
</xsd:sequence> </xsd:sequence>
</xsd:complexType> </xsd:complexType>