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

View File

@ -7,9 +7,13 @@
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
</xsd:simpleType> </xsd:simpleType>
<xsd:simpleType name="lemmaType"> <xsd:complexType name="lemmaType">
<xsd:restriction base="xsd:string"/> <xsd:simpleContent>
</xsd:simpleType> <xsd:extension base="xsd:string">
<xsd:attribute name="audio" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:simpleType name="commentType"> <xsd:simpleType name="commentType">
<xsd:restriction base="xsd:string"/> <xsd:restriction base="xsd:string"/>
@ -163,6 +167,7 @@
<xsd:extension base="xsd:string"> <xsd:extension base="xsd:string">
<xsd:attribute name="targetLang" type="xsd:string" use="required"/> <xsd:attribute name="targetLang" type="xsd:string" use="required"/>
<xsd:attribute name="source" type="xsd:string"/> <xsd:attribute name="source" type="xsd:string"/>
<xsd:attribute name="audio" type="xsd:string"/>
</xsd:extension> </xsd:extension>
</xsd:simpleContent> </xsd:simpleContent>
</xsd:complexType> </xsd:complexType>
@ -171,7 +176,16 @@
<xsd:simpleContent> <xsd:simpleContent>
<xsd:extension base="xsd:string"> <xsd:extension base="xsd:string">
<xsd:attribute name="lexical_unit_lexeme_id" type="xsd:int"/> <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:extension>
</xsd:simpleContent> </xsd:simpleContent>
</xsd:complexType> </xsd:complexType>
@ -183,6 +197,7 @@
<xsd:attribute name="example_id" type="xsd:int"/> <xsd:attribute name="example_id" type="xsd:int"/>
<xsd:attribute name="modified" type="xsd:boolean"/> <xsd:attribute name="modified" type="xsd:boolean"/>
<xsd:attribute name="lexical_unit_id" type="xsd:int"/> <xsd:attribute name="lexical_unit_id" type="xsd:int"/>
<xsd:attribute name="audio" type="xsd:string"/>
</xsd:complexType> </xsd:complexType>
<xsd:complexType name="multipleLexemeExampleType"> <xsd:complexType name="multipleLexemeExampleType">
@ -199,6 +214,9 @@
</xsd:attribute> </xsd:attribute>
<xsd:attribute name="lexical_unit_id" type="xsd:int"/> <xsd:attribute name="lexical_unit_id" type="xsd:int"/>
<xsd:attribute name="structure_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:complexType>
</xsd:schema> </xsd:schema>