Skip to content

Add lang query parameter to support multilingual search on OntoPortal #3

@Imene-Amirat

Description

@Imene-Amirat

Problem

The api-gateway /search endpoint does not support searching in languages other than the ontology's default language when using database=ontoportal. Users working with multilingual ontologies (e.g., GEMET available in FR, DE, IT, ES) cannot query concepts in their preferred language or receive language-specific labels in the response.

A francophone user searching for "eau" cannot retrieve French labels through the gateway, because the request reaches OntoPortal without any language hint.

Example

Before: ?query=eau&targetDbSchema=ontoportal → no lang forwarded → OntoPortal defaults to English
After: ?query=eau&lang=fr&targetDbSchema=ontoportallang=fr forwarded → French labels returned

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions