Closed syphax-bouazzouni closed 1 year ago
works for one class (e.g https://data.testportal.lirmm.fr/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_25056?lang=fr) but not for classes endpoints (e.g https://data.testportal.lirmm.fr/ontologies/INRAETHES/classes?lang=fr)
@haddadzineddine to fix.
It's already working, but I'm not sure if that's what you had in mind.
For example https://data.testportal.lirmm.fr/ontologies/INRAETHES/classes?language=fr I don't see it
Requirement
If we call this endpoint https://data.stageportal.lirmm.fr/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_2ecd2d30
We should see in the @context the
@language
of the request, like in the followingThe language value should be
lang
parameter is present in the requestThe code that handles this is here : https://github.com/ontoportal-lirmm/ontologies_linked_data/blob/master/lib/ontologies_linked_data/serializers/json.rb#L67