From 8375ec857f7155509316877cdf2396337d40c77b Mon Sep 17 00:00:00 2001 From: Enzo Simonnet <enzosim@laposte.net> Date: Tue, 13 Dec 2022 15:44:20 +0000 Subject: [PATCH] Replace Structure_json.json --- parsers/Structure_json.json | 126 +++++++++++++++++++----------------- 1 file changed, 67 insertions(+), 59 deletions(-) diff --git a/parsers/Structure_json.json b/parsers/Structure_json.json index 7742a2c..c83c1c2 100644 --- a/parsers/Structure_json.json +++ b/parsers/Structure_json.json @@ -1,61 +1,69 @@ +"lemme" O +"catégorie" O : { - "Lemma" : "sleep", - "Character" : { "graphical etymology" : "æ„›", - "in composition" : "blabla", - "classification" : "blabla", - "dictionnary ref" : ["RDO153", "blabla", "blabla"...] - } // Only for chinese and japanese - ["PartOfSpeech1" : { "Title" : "verb", - "Sense1" : { "Etymology" : "blabla", - "Translations" : ["translation1", ..., "translationn"], - "Pronunciation" : [{ "api1" : "\ˈsliËp\ ", - "accent1" : "RP", - "other transcriptions1" : "", //pinyin, bopomofo, hiragana.... - "url1": "https://upload.wikimedia.org/wikipedia/commons/1/19/LL-Q1860_%28eng%29-Back_ache-water.wav"}, - ... - {"apik" : "\ˈsliËp\ ", - "accentk" : "RP", - "other transcriptionsk" : "", //pinyin, bopomofo, hiragana.... - "urlk": "https://upload.wikimedia.org/wikipedia/commons/1/19/LL-Q1860_%28eng%29-Back_ache-water.wav"}] - - ["Definition1" : { "Image" : "Stilles Mineralwasser.jpg" - "Def" : "blabla", - "Examples" : ["ex1":"blabla", "ex2":"blabla", ... "exn":"blabla"], - "sub" : [{ "subdef1" : "blabla", - "subex1" : [ "subexa", "subexb", ..., "subexz"], - .... - "subdefn" : "blabla", - "subexn" : [ "subexa", "subexb", ..., "subexz"], - }] - }, - ... - "Definitionn" : { "Image" : "Stilles Mineralwasser.jpg" - "Def" : "blabla", - "Examples" : ["ex1":"blabla", "ex2":"blabla", ... "exn":"blabla"], - "sub" : [{ "subdef1" : "blabla", - "subex1" : [ "subexa", "subexb", ..., "subexz"], - .... - "subdefn" : "blabla", - "subexn" : [ "subexa", "subexb", ..., "subexz"], - }] - } - ]} - ... - "Sensen" : {"repeat"} - } - "PartOfSpeechn" : {"repeat"} - ] - // Comment s'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" + "sens" O : + { + "phonétique" : + { + "api" O + "autres transcriptions phonétiques" : [pinyin, bopomofo, hiragana....] + "prononciation" (audio) + } + "étymologie" + + ("définition" OU "traduction") O + "exemple" [] + "déclinaisons" [] (formes plurielles, conjuguées, etc...) + "image" (https://path.to/truc.jpeg) + } + + Spécifique aux sinnogrammes + "caractère" : + { + "étymologie graphique" + "en composition" + "classification" + "Référence dans les dictionnaires" + } + + AUTRES + "variantes orthographiques" + "variantes" + "transcriptions" + "abréviations" + "augmentatifs" + "diminutifs" + "synonymes" + "quasi-synonymes" + "antonymes" + "gentilés" + "composés" + "dérivés" + "apparentés" + "vocabulaire" + "phrases" + "variantes dialectales" + "hyperonymes" + "hyponymes" + "holonymes" + "méronymes" + "troponymes" + "dérivés autres langues" + "faux-amis" + "note" + "homophones" + "paronymes" + "anagrammes" +} + +STRUCTURE MINIMALE + +"lemme" +"catégorie" : +{ + "sens" : + { + "phonétique" : {"api"} + "définition" OU "traduction" + } } -- GitLab