IssueID #937: added a few attributes, renamed hungarian schema, etc

This commit is contained in:
Cyprian Laskowski 2019-11-27 14:02:13 +01:00
parent 108ff8383f
commit 25cc22da77
3 changed files with 30 additions and 11 deletions

View File

@ -4,8 +4,8 @@
<head>
<status>AE</status>
<headword>
<lemma>bolnišnica</lemma> <!-- required -->
<homonymy> <!-- optional (used when lemma disambiguation is needed) -->
<lemma audio="audio-3132">bolnišnica</lemma>
<homonymy>
<homonymyFeature name="pronunciation">bolníšnica</homonymyFeature>
<homonymyFeature name="blahblah">xyz</homonymyFeature>
<homonymyFeature name="bluhbluh">abc</homonymyFeature>
@ -70,7 +70,7 @@
<exampleContainerList>
<exampleContainer>
<corpusExample example_id="4343" modified="true">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>
<labelList>
<label type="type5">value8</label>
@ -79,16 +79,17 @@
</translationContainer>
</exampleContainer>
<exampleContainer>
<multiwordExample lexical_unit_id="19" type="collocation">
<comp role="collocate">velika</comp>
<multiwordExample lexical_unit_id="19" type="collocation" audio="audio-56643">
<comp role="collocate">si</comp>
<comp role="collocate" sloleks="LE_blahblah">ogledati</comp>
<comp role="headword">hiša</comp>
</multiwordExample>
<translationContainer>
<translation targetLang="hun" source="source2">blah blah2</translation>
<translation targetLang="hun" source="source2" audio="audio-blah-77242">blah blah2</translation>
</translationContainer>
</exampleContainer>
<exampleContainer>
<corpusExample example_id="552439" modified="false" lexical_unit_id="19">Kupili smo <comp role="collocate">veliko</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>
<translation targetLang="hun" source="source2">Blah blah blah 3.</translation>
</translationContainer>

View File

@ -7,9 +7,13 @@
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:simpleType name="lemmaType">
<xsd:restriction base="xsd:string"/>
</xsd:simpleType>
<xsd:complexType name="lemmaType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="audio" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="commentType">
<xsd:restriction base="xsd:string"/>
@ -163,6 +167,7 @@
<xsd:extension base="xsd:string">
<xsd:attribute name="targetLang" type="xsd:string" use="required"/>
<xsd:attribute name="source" type="xsd:string"/>
<xsd:attribute name="audio" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
@ -171,7 +176,16 @@
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="lexical_unit_lexeme_id" type="xsd:int"/>
<xsd:attribute name="role" type="xsd:string" use="required"/>
<xsd:attribute name="role" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="headword"/>
<xsd:enumeration value="collocate"/>
<xsd:enumeration value="other"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="sloleks" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
@ -183,6 +197,7 @@
<xsd:attribute name="example_id" type="xsd:int"/>
<xsd:attribute name="modified" type="xsd:boolean"/>
<xsd:attribute name="lexical_unit_id" type="xsd:int"/>
<xsd:attribute name="audio" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="multipleLexemeExampleType">
@ -199,6 +214,9 @@
</xsd:attribute>
<xsd:attribute name="lexical_unit_id" type="xsd:int"/>
<xsd:attribute name="structure_id" type="xsd:int"/>
<xsd:attribute name="frequency" type="xsd:int"/>
<xsd:attribute name="logDice" type="xsd:decimal"/>
<xsd:attribute name="audio" type="xsd:string"/>
</xsd:complexType>
</xsd:schema>