This pull request adds a new branch called language_return_all that returns all existing result when the requested language value is set to "all". This feature was implemented based on the request described in issue https://github.com/agroportal/project-management/issues/307
Changes Made / Todos
[x] Added new branch called language_return_all .
[x] Implemented logic to return all existing result when the requested language value is set to "all".
[x] Set @language to the requested language [ ontoportal-lirmm/ontologies_linked_data/pull/80 ]
[x] Support select multilanguages 688ec5e8bdcba6b1f3bfaca7e4c2fd15f299d924
[x] Show the values in all languages with their corresponding language. [ agroportal/project-management/issues/307 ]
For the requested_lang = all, we need to show the values in all languages but also their corresponding language, like this
For the case none languages :
So for your use case of synonyms, it needs to be like this:
# if attribute of type list
"synonym": {
"en": ["syn_en_1", "syn_en_2"],
"fr": ["syn_fr_1"]
}
# if attribute of type no-list
"prefLabel": {
"en": "label_en_1",
"fr": "label_fr_1"
}
Description
This pull request adds a new branch called language_return_all that returns all existing result when the requested language value is set to "all". This feature was implemented based on the request described in issue https://github.com/agroportal/project-management/issues/307
Changes Made / Todos
[x] Added new branch called language_return_all .
[x] Implemented logic to return all existing result when the requested language value is set to "all".
[x] Set @language to the requested language [ ontoportal-lirmm/ontologies_linked_data/pull/80 ]
[x] Support select multilanguages 688ec5e8bdcba6b1f3bfaca7e4c2fd15f299d924
[x] Show the values in all languages with their corresponding language. [ agroportal/project-management/issues/307 ]
[x] In @language return the available languages for the result not the requested languages https://github.com/ontoportal-lirmm/ontologies_linked_data/pull/80/commits/fad47b4efc051afb46fc0c942fe837c140da2353
[x] Make it works for all attribues not only
synonyms
andprefLabel
[x] Fix tests
Screenshots
use case : localhost:9393/ontologies/INRAETHES/classes
requested_lang = all
requested_lang = fr
requested_lang = en
requested_lang = fr,en
Resources & Informations
For the
requested_lang = all
, we need to show the values in all languages but also their corresponding language, like thisFor the case none languages :
So for your use case of synonyms, it needs to be like this:
The global issue that describes this is here: https://github.com/agroportal/project-management/issues/307
Reviewers
@syphax-bouazzouni