ontoportal / ontoportal-project

OntoPortal Alliance centralized repository for the management of the OntoPortal project
https://ontoportal.org/
3 stars 1 forks source link

Filter API Classes with a language parameter #57

Closed luddaniel closed 2 weeks ago

luddaniel commented 1 month ago

Describe the bug While using API /ontologies/{ontology}/classes/{uri} query parameter language is no longuer working with multiple languages.

To Reproduce Example: https://data.agroportal.lirmm.fr/ontologies/GACS/classes/http%3A%2F%2Fid.agrisemantics.org%2Fgacs%2FC28729?language=fr,en Result: "prefLabel": null,

Expected behavior prefLabel and synonym should only contain the specified language. Expected Result for ?language=fr,en :

"prefLabel": {
    "fr": "Phylloxera",
    "en": "Phylloxera"
},
"synonym": {
    "en": [
        "Daktulosphaira (phylloxera)"
    ],
    "fr": [
        "Daktulosphaira (phylloxera)"
    ]
},

Additional context Please note that :

are still working.

syphax-bouazzouni commented 2 weeks ago

fixed in https://github.com/ontoportal-lirmm/goo/pull/61 Deployed in Staging environment https://data.stageportal.lirmm.fr/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_25056?lang=fr,en&display=prefLabel,synonym&display_links=false&display_context=false

image

@luddaniel this fix will come in the next release of AgroPortal (mid-July)