| ... | ... | @@ -22,90 +22,77 @@ Une entrée lexicale est constituée de : |
|
|
|
## Structure des entrées lexicales
|
|
|
|
|
|
|
|
```json
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"Headword":"sleep",
|
|
|
|
"Items":[
|
|
|
|
"water":[
|
|
|
|
{
|
|
|
|
"PartOfSpeech":"verb",
|
|
|
|
"Pronunciation":[
|
|
|
|
"pos":"N",
|
|
|
|
"pronunciations":[
|
|
|
|
{
|
|
|
|
"api":"\\ˈsliːp\\ ",
|
|
|
|
"hiragana":"",
|
|
|
|
"katakana":"",
|
|
|
|
"bopomofo":"",
|
|
|
|
"pinyin":"",
|
|
|
|
"romaji":"",
|
|
|
|
"accent1":"RP",
|
|
|
|
"url1":"https://upload.wikimedia.org/wikipedia/commons/1/19/LL-Q1860_%28eng%29-Back_ache-water.wav"
|
|
|
|
"ID":"p_1",
|
|
|
|
"accent":"RP",
|
|
|
|
"transcript":"/ˈwɔːtə/",
|
|
|
|
"sounds":[
|
|
|
|
{
|
|
|
|
"accent":"RP",
|
|
|
|
"url":"https://upload.wikimedia.org/wikipedia/commons/1/19/LL-Q1860_%28eng%29-Back_ache-water.wav"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"Senses":[
|
|
|
|
"senses":{
|
|
|
|
"water_N0_1":[
|
|
|
|
{
|
|
|
|
"Translations":[
|
|
|
|
"translation1",
|
|
|
|
"...",
|
|
|
|
"translationn"
|
|
|
|
],
|
|
|
|
"Image":[
|
|
|
|
"Stilles Mineralwasser.jpg",
|
|
|
|
"..."
|
|
|
|
],
|
|
|
|
"Definition":"blabla",
|
|
|
|
"Examples":[
|
|
|
|
"blabla",
|
|
|
|
"blabli",
|
|
|
|
"blablou"
|
|
|
|
],
|
|
|
|
"SubSenses":[
|
|
|
|
"Definition":{
|
|
|
|
"ID":"d_1",
|
|
|
|
"lang":"en",
|
|
|
|
"text":"A substance (of molecular formula H2O) found at room temperature and pressure as a clear liquid; it is present naturally as rain, and found in rivers, lakes and seas; its solid form is ice and its gaseous form is steam."
|
|
|
|
},
|
|
|
|
"Subsenses":[
|
|
|
|
{
|
|
|
|
"Definition":"blabla",
|
|
|
|
"water_N0_1_1":{
|
|
|
|
"Definition":{
|
|
|
|
"ID":"sd_1_1",
|
|
|
|
"lang":"en",
|
|
|
|
"text":"The liquid form of this substance: liquid H2O."
|
|
|
|
},
|
|
|
|
"Examples":[
|
|
|
|
"subexa",
|
|
|
|
"subexb",
|
|
|
|
"subexz"
|
|
|
|
]
|
|
|
|
{
|
|
|
|
"ID":"se_1_1_1",
|
|
|
|
"example":"May I have a glass of '''water'''?"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"Translations":[
|
|
|
|
{
|
|
|
|
"ID":"t_1_1_1",
|
|
|
|
"lang":"fr",
|
|
|
|
"text":"Eau"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
/*adapter à la généricité des données ?
|
|
|
|
\"User-defined fields 1\"
|
|
|
|
\"User-defined fields 2\"
|
|
|
|
\"User-defined fields 3\"
|
|
|
|
\"User-defined fields 4\"
|
|
|
|
\"User-defined fields 5\"
|
|
|
|
\"Supplementary field for devs 1\"
|
|
|
|
\"Supplementary field for devs 2\"
|
|
|
|
\"Supplementary field for devs 3\"
|
|
|
|
\"Supplementary field for devs 4\"
|
|
|
|
\"Supplementary field for devs 5\"
|
|
|
|
...
|
|
|
|
\"Supplementary field for devs 10\ */
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Structure minimale d'une entrée lexicale
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"Headword":"sleep",
|
|
|
|
"Items":[
|
|
|
|
],
|
|
|
|
"Examples":[
|
|
|
|
{
|
|
|
|
"PartOfSpeech":"verb",
|
|
|
|
"Sense":{
|
|
|
|
"Definitions":[
|
|
|
|
"ID":"e_1_1",
|
|
|
|
"example":"By the action of electricity, the '''water''' was resolved into its two parts, oxygen and hydrogen."
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"Translations":[
|
|
|
|
{
|
|
|
|
"Def":"blabla"
|
|
|
|
"ID":"t_1_1",
|
|
|
|
"lang":"fr",
|
|
|
|
"text":"Eau"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
## Interface utilisateur d'une entrée lexicale
|
| ... | ... | |