ontoportal-lirmm / goo

Graph Oriented Objects (GOO) for Ruby. A RDF/SPARQL based ORM.
http://ncbo.github.io/goo/
Other
0 stars 4 forks source link

Feature : Support multilingual - Phase 1 - Read one language #24

Closed haddadzineddine closed 1 year ago

haddadzineddine commented 1 year ago

Feature

Support multilingualm based on the language from request parameter.

Todo

Take as usecases in INRAETHES

Changes Made

haddadzineddine commented 1 year ago

Request language cases

PrefLabel

Use case: http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_8828?display=prefLabel

requested language = :FR :

image

requested language = :EN :

image

requested language = :ES :

image

Synonym

Use case: http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=synonym

requested language = :FR :

image

requested language = :EN :

image

requested language = :ES :

image

Properties

Use case: http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=synonym

requested language = :FR :

image

requested language = :EN :

image

requested language = :ES :

image

haddadzineddine commented 1 year ago

synonym

Use case : http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=synonym

FR :

image

EN :

image

ES :

image

haddadzineddine commented 1 year ago

Properties

Use case: http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=synonym

FR :

image

EN :

image

ES :

image

syphax-bouazzouni commented 1 year ago

Don't forget to push your new version of code @haddadzineddine

haddadzineddine commented 1 year ago

test case : http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=synonym

No request language : ( platform language = [ :ES, :EN, :FR ] ) image

haddadzineddine commented 1 year ago

test case : http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=synonym

No request language : ( platform language = [ :ES, :FR, :ES ] )

image

haddadzineddine commented 1 year ago

test case : http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=synonym

No request language : ( platform language = [ :FR, :EN, :ES ] ) image

haddadzineddine commented 1 year ago

Portal language use cases

prefLabel

Test case : http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_8828?display=prefLabel

No request language and platform language = [ :FR, :EN, :ES ]

image

No request language and platform language = [ :EN, :FR, :ES ]

image

No request language and platform language = [ :ES, :EN, :FR ]

image

No request language and platform language = [ :ES, :FR, :EN ]

image

synonym

Use case: http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=synonym

No request language and platform language = [ :FR, :EN, :ES ]

image

No request language and platform language = [ :EN, :FR, :ES ]

image

No request language and platform language = [ :ES, :EN, :FR ]

image

No request language and platform language = [ :ES, :FR, :EN ]

image

Properties

Use case: http://localhost:9393/ontologies/INRAETHES/classes/http%3A%2F%2Fopendata.inrae.fr%2FthesaurusINRAE%2Fc_22817?display=properties

No request language and platform language = [ :FR, :EN, :ES ]

image

No request language and platform language = [ :EN, :FR, :ES ]

image

No request language and platform language = [ :ES, :EN, :FR ]

222432280-364c1dab-30bd-4f0a-aba0-e3c6ab5cfdf2

No request language and platform language = [ :ES, :FR, :EN ]

222157040-e6f503ca-3fd1-408d-80f4-215f61b81cea

syphax-bouazzouni commented 1 year ago

@haddadzineddine we will stop work on this branch and will merge it (if all tests are green).

Refactoring work will be done in another branch.