ncbo / goo

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

Feature: Multilingual support #150

Closed syphax-bouazzouni closed 2 months ago

syphax-bouazzouni commented 2 months ago

Require

Context

The equivalent of https://github.com/ontoportal-lirmm/goo/pull/44, and implement better support of multilingual, giving the possibility to filter the fetched data from the triples store, to return only the ones matching one language (e.g fr for French), multiple languages (e.g en, fr for English and french), or all.

See the created tests for examples

Changes

codecov-commenter commented 2 months ago

Codecov Report

Attention: Patch coverage is 89.92537% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 87.05%. Comparing base (87e991b) to head (fb04e78). Report is 29 commits behind head on develop.

Files Patch % Lines
lib/goo/sparql/mixins/solution_lang_filter.rb 91.75% 8 Missing :warning:
lib/goo/base/resource.rb 75.00% 6 Missing :warning:
lib/goo.rb 61.53% 5 Missing :warning:
lib/goo/sparql/query_builder.rb 92.18% 5 Missing :warning:
lib/goo/sparql/solutions_mapper.rb 94.11% 3 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #150 +/- ## =========================================== + Coverage 84.53% 87.05% +2.51% =========================================== Files 35 36 +1 Lines 2516 2626 +110 =========================================== + Hits 2127 2286 +159 + Misses 389 340 -49 ``` | [Flag](https://app.codecov.io/gh/ncbo/goo/pull/150/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ncbo) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/ncbo/goo/pull/150/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ncbo) | `87.05% <89.92%> (+2.51%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ncbo#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.