Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
155 commits
Select commit Hold shift + click to select a range
0d042a1
add comment
Oct 25, 2016
c52aa0d
Merge branch 'master' into lirmm
vemonet Apr 13, 2017
5fafc98
Merge branch 'master' into lirmm
vemonet May 5, 2017
ae67841
add Goo.main_languages, an array to define the main_languages of the …
vemonet Jun 9, 2017
18d5eca
Use 'Goo.main_languages' to get a property value. now when retrieving…
vemonet Jun 9, 2017
57181ca
Merge branch 'master' into lirmm
vemonet Jun 9, 2017
fa40b50
add main_lang and accepted_lang instead of just main_languages.
vemonet Jun 9, 2017
172f786
remove accepted_lang, now only used main_lang
vemonet Jun 9, 2017
1570824
add comment on how solr docs are generated
vemonet Jun 12, 2017
2e54709
now only index labels with the language included in main_lang
vemonet Jun 13, 2017
5447337
Merge branch 'sifr_metadata' into lirmm
vemonet Jun 13, 2017
f313679
now take prefLabel with a lang that is in main_lang in priority, then…
vemonet Jun 13, 2017
c344da8
Merge branch 'sifr_metadata' into lirmm
vemonet Jun 13, 2017
4d32d7e
retrieve label from bad langs
vemonet Jun 13, 2017
07340fc
fix how we retrieve labels when no labels frfrom one of the main_lang
vemonet Jun 13, 2017
773a0f3
avoid attributeNotLoaded error for empty labels now
vemonet Jun 13, 2017
a17bc26
stop trying to get bad lang values for indexing
vemonet Jun 13, 2017
9a2fe31
return array instead of nil when no value for attr
vemonet Jun 13, 2017
1aacead
Fixing merge conflicts with NCBO master
Apr 24, 2020
711b8d9
Gemfile.lock update
jlamarque34 Jun 16, 2020
894aba0
Fixing merge issue with NCBO master (goo/search/search.rb)
Jun 26, 2020
1f5c0e3
Gemfile.lock update
jlamarque34 Jun 26, 2020
88a617b
Merge branch 'master' of https://github.com/ncbo/goo into 20200626_nc…
jlamarque34 Jun 26, 2020
bf42c5c
Gemfile.lock update
ontoportal-bot-lirmm Jul 3, 2020
09e8627
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jul 10, 2020
34aa887
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Jul 16, 2020
15b2492
Merge branch 'master' of https://github.com/ncbo/goo into ncbo_merge_…
ontoportal-bot-lirmm Jul 22, 2020
819d812
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Aug 25, 2020
0bc77f4
Merge branch 'virtual-appliance-3.0-merge' into ncbo_merge_master
ontoportal-bot-lirmm Aug 25, 2020
19107d6
Merge branch 'master' of https://github.com/ncbo/goo into ncbo_merge_…
ontoportal-bot-lirmm Sep 8, 2020
0ee32cd
Merge branch 'virtual-appliance-3.0-merge'
Sep 10, 2020
5d4b78d
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Sep 10, 2020
7dee210
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Oct 1, 2020
ba3edcd
[ontoportal-bot] Gemfile.lock update
ontoportal-bot-lirmm Oct 30, 2020
4523fd3
merge with upstream
syphax-bouazzouni Dec 10, 2021
89a8f66
fix #4 ; add regex filter
syphax-bouazzouni Dec 28, 2021
694aa19
add main_languages configuration variable
syphax-bouazzouni Mar 15, 2022
eec4d60
add LanguageFilter class to filter an attribute values by the languages
syphax-bouazzouni Mar 15, 2022
31b0bb0
use LanguageFilter in the solution mapper
syphax-bouazzouni Mar 15, 2022
55a9313
use the LanguageFilter in map_attributes
syphax-bouazzouni Mar 15, 2022
1108250
add include variable to the solution mapper arguments
syphax-bouazzouni Mar 16, 2022
fdbc4ae
merge pl/add-mainlang-defaults-refactored into development
syphax-bouazzouni Mar 16, 2022
7c9aa72
change the language filter to take only one language
syphax-bouazzouni Mar 16, 2022
ca344b0
Merge branch 'pl/add-mainlang-defaults-refactored' into development
syphax-bouazzouni Mar 16, 2022
56fc95c
merge pl/add-mainlang-defaults-refactored into master
syphax-bouazzouni Mar 16, 2022
ba27011
add the condition of nil? or empty? before adding the no_lang
syphax-bouazzouni Mar 18, 2022
60c686f
Merge branch 'pl/add-mainlang-defaults-refactored' into development
syphax-bouazzouni Mar 18, 2022
7e18f10
Merge branch 'pl/add-mainlang-defaults-refactored'
syphax-bouazzouni Mar 18, 2022
dd9681d
Merge branch 'upstream v5.22.3' into development
syphax-bouazzouni May 12, 2022
a077033
merge to upstream v 5.22.3 (and more)
syphax-bouazzouni May 12, 2022
c7106bd
uniquify the language values
syphax-bouazzouni May 16, 2022
50f248f
Merge branch 'pl/add-mainlang-defaults-refactored' into development
syphax-bouazzouni May 16, 2022
f556970
Merge branch 'pl/add-mainlang-defaults-refactored'
syphax-bouazzouni May 16, 2022
f0eadc2
Merge branch 'pr/fix/append_triples_by_chunks' into development
syphax-bouazzouni Jul 1, 2022
103bbd4
Merge branch 'pr/fix/append_triples_by_chunks'
syphax-bouazzouni Jul 1, 2022
73ec8f3
Merge branch 'pr/feature/optimize-sparql-query-build-unions' into dev…
syphax-bouazzouni Jul 20, 2022
835aefa
re-implement the lang filter for the query builder
syphax-bouazzouni Jul 20, 2022
ea431e7
Merge branch 'pr/feature/optimize-sparql-query-build-unions'
syphax-bouazzouni Jul 25, 2022
d1d34dc
re-implement the lang filter for the query builder
syphax-bouazzouni Jul 20, 2022
199f12e
Merge branch 'development'
syphax-bouazzouni Oct 13, 2022
ad48ecf
Merge branch 'pr/feature/optimize-sparql-query-build-unions' into dev…
syphax-bouazzouni Nov 23, 2022
9580bfd
Merge branch 'pr/feature/optimize-sparql-query-build-unions'
syphax-bouazzouni Nov 23, 2022
8c84c9e
force attribute values with lang to be string
syphax-bouazzouni Nov 23, 2022
25874f8
Merge branch 'pl/add-mainlang-defaults-refactored' into development
syphax-bouazzouni Nov 23, 2022
05495af
Merge branch 'pl/add-mainlang-defaults-refactored'
syphax-bouazzouni Nov 23, 2022
34a9fdf
force attribute values with lang to be Array
syphax-bouazzouni Nov 23, 2022
e26325e
Merge branch 'pl/add-mainlang-defaults-refactored' into development
syphax-bouazzouni Nov 25, 2022
b30de6e
Merge branch 'pl/add-mainlang-defaults-refactored'
syphax-bouazzouni Nov 25, 2022
295d794
Merge branch 'pr/feature/optimize-sparql-query-build-unions' into dev…
syphax-bouazzouni Nov 29, 2022
738e7d7
Merge branch 'pr/feature/optimize-sparql-query-build-unions'
syphax-bouazzouni Nov 29, 2022
b7d7f7f
Merge branch 'upstream' into merge/merge-to-upstream-v-5.23.1
syphax-bouazzouni Dec 17, 2022
ba4f910
merge partial fix to ncbo/bioportal-project#251
syphax-bouazzouni Dec 17, 2022
3ddcf11
Revert "A small (2 line) fix for 3 or 12 (depending on how it is coun…
stdotjohn Nov 4, 2022
86553d2
fix test_model_complex.rb tests with a uniq and not reused model name
syphax-bouazzouni Dec 17, 2022
514311c
Merge branch 'pr/feature/optimize-sparql-query-build-unions' into dev…
syphax-bouazzouni Dec 17, 2022
41b6e62
Merge branch 'merge/merge-to-upstream-v-5.23.1' into development
syphax-bouazzouni Dec 17, 2022
8083f4d
Merge pull request #15 from ontoportal-lirmm/development
syphax-bouazzouni Dec 17, 2022
8e0e46d
fix test_embed_struct in test_read_only.rb
syphax-bouazzouni Dec 17, 2022
361940a
fix test_reentrant_queries by ensuring the write thread is still alive
syphax-bouazzouni Dec 17, 2022
a30af42
update test_inverse_on_collection test
syphax-bouazzouni Dec 17, 2022
3d5bbe1
Merge branch 'pr/fix-some-skiped-tests' into development
syphax-bouazzouni Dec 17, 2022
9296897
Merge branch 'development'
syphax-bouazzouni Dec 17, 2022
4c87b64
add REGEX filter unit test
syphax-bouazzouni Jan 19, 2023
03d8ccc
update query_filter_sparql to handle REGEX
syphax-bouazzouni Jan 19, 2023
f114f50
Merge branch 'master' into fix/update-regex-filter
syphax-bouazzouni Jan 19, 2023
e47cf04
Merge pull request #16 from ontoportal-lirmm/fix/update-regex-filter
syphax-bouazzouni Jan 19, 2023
b6526a1
Merge branch 'master' into development
syphax-bouazzouni Jan 19, 2023
cda6aff
Merge branch 'pr/feature/optimize-sparql-query-build-unions' into dev…
syphax-bouazzouni Jan 19, 2023
e03f6e8
Merge pull request #17 from ontoportal-lirmm/development
syphax-bouazzouni Feb 16, 2023
cc0c27e
Merge pull request #33 from ontoportal-lirmm/feature/make-regex-filte…
syphax-bouazzouni Apr 28, 2023
9753f04
Merge pull request #34 from ontoportal-lirmm/fix/filters-with-paginat…
syphax-bouazzouni Apr 28, 2023
a82e6f5
Merge pull request #36 from ontoportal-lirmm/feature/add-complex-oder-by
syphax-bouazzouni May 1, 2023
bd71542
Merge pull request #43 from ontoportal-lirmm/merge-to-master-2.3.3
syphax-bouazzouni Sep 5, 2023
04419a8
Merge to master: Release 2.3.3 - Multilingual (#44)
syphax-bouazzouni Dec 4, 2023
d4d9417
Merge to master: Release 2.3.4 - New model capabilities (validators, …
syphax-bouazzouni Dec 4, 2023
74ea47d
Merge to master - Release 2.3.5 - Optimize order by and filters quer…
syphax-bouazzouni Dec 5, 2023
03da25b
Fix: map attribute for properties that contain a mix of string and UR…
syphax-bouazzouni Dec 13, 2023
8ddd2d7
fix multilingual for single value attributes selecting no lang values…
syphax-bouazzouni Feb 7, 2024
1237bd4
Feature: Add Virtuso, Allegrograph and Graphdb integration to GOO (#48)
syphax-bouazzouni Jan 29, 2024
2206084
Refactor: clean model settings module code (#52)
syphax-bouazzouni Jan 31, 2024
f88b50a
Feature: Add after_save and after_destroy hooks to models (#53)
syphax-bouazzouni Jan 31, 2024
85d7060
Feature: update rdf gem to latest version (#56)
syphax-bouazzouni Feb 20, 2024
66b68ab
Fix: saving a model removing unmodified attributes after consecutive …
syphax-bouazzouni Feb 22, 2024
196070c
Fix: enforce to use str() when doing a filter with a string value (#57)
syphax-bouazzouni Feb 28, 2024
4951e72
Fix: monkey path RDF to not remove xsd:string by default
syphax-bouazzouni Feb 29, 2024
0e554fc
Feature: Enhance SOLR integration and add a Schema API (#54)
syphax-bouazzouni Mar 2, 2024
819086d
make indexed resource_id case insensitive (#59)
syphax-bouazzouni Apr 27, 2024
8f0a9a5
Fix: Invalidating cache after insertion of a new element (#60)
syphax-bouazzouni May 1, 2024
b2a635f
fix search resource_id case insensitive by using string_ci instead
syphax-bouazzouni May 1, 2024
c48a1e4
Merge to master: Release 2.4.0 - Multi-backend stores integrations, R…
syphax-bouazzouni May 22, 2024
a95245b
Fix: show multiple languages tags (#61)
syphax-bouazzouni Jun 28, 2024
6018b33
fix virtuoso unicode spaces issues
syphax-bouazzouni Oct 18, 2024
f8ac7b0
Feature: small refactoring to add portal_language helper (#63)
syphax-bouazzouni Oct 24, 2024
6243877
Fix: implement an alertamnitvie to :ask queries to be compatible on a…
syphax-bouazzouni Jan 15, 2025
8d108c2
Feature: Add Triple store queries logging (#65)
syphax-bouazzouni Jan 17, 2025
b8eb3d0
Feature: Add paginated all function for resources and logging config…
syphax-bouazzouni Jan 21, 2025
27300f2
fix when label is url issue in ontology processing (#66)
Bilelkihal Jan 22, 2025
5825dc1
fix: parsing ontologies issue, when concept label is url (suite) (#68)
Bilelkihal Jan 22, 2025
8c6ee5a
Merge branch 'master' into development
syphax-bouazzouni Feb 2, 2025
e02a1a0
Fix: bring attributes that has the handler (#73)
imadbourouche Feb 5, 2025
5617d26
Fix: handle default attribute in case it's not proc (#71)
imadbourouche Feb 5, 2025
b6f65c4
allow saving models if it's not modified and not persistent (#76)
imadbourouche Feb 5, 2025
e48a2d1
Feature: Migrate to ruby 3.2 (#74)
syphax-bouazzouni Feb 6, 2025
04680ed
fix: virtuoso docker not using to correct host name
syphax-bouazzouni Apr 26, 2025
0a1c9fe
initial commit
mdorf Dec 16, 2025
1a6d208
re-applied NCBO validators, ncbo/goo#166
mdorf Jan 9, 2026
265e1e0
re-applied :url validator, ncbo/goo#169
mdorf Jan 10, 2026
0272684
re-applied :bypass_cache option, ncbo/goo#170
mdorf Jan 10, 2026
edddd81
added Solr 'default' value to schema; added :url dynamic field
mdorf Jan 21, 2026
326eb26
minor fix to remove warning: already initialized constant RDF::Litera…
mdorf Jan 23, 2026
e0109a9
added a comment to explain how indexable objects are merged
mdorf Jan 27, 2026
98bd870
fixed improperly defined text_suggest_ngram field, which was causing …
mdorf Jan 30, 2026
256afce
changed the order of filters for text_suggest_ngram type to reflect t…
mdorf Jan 30, 2026
a822745
prevent search from filtering out unicode letters and numbers so it c…
mdorf Jan 31, 2026
5f07592
prevent search from filtering out unicode letters and numbers so it c…
mdorf Jan 31, 2026
824872a
fixed test_query_flood; updated ag docker image to 8.3.1
mdorf Feb 1, 2026
53a0d4c
added code comment to the previous commit
mdorf Feb 1, 2026
75e1df5
added :url to map_to_indexer_type
mdorf Feb 4, 2026
13a8559
fixed test_chunks_write/test_query_flood, which was failing in 4store
mdorf Feb 5, 2026
6d3c065
chore: refactor docker-based test runner and add linux container tests
alexskr Feb 11, 2026
b9b1437
change triplestore name for GraphDB from gb to gd
alexskr Feb 11, 2026
a8989fe
fix: correct redis config rename to goo_redis
alexskr Feb 11, 2026
d70fb4b
clear out unused settings
alexskr Feb 11, 2026
b1797df
test: centralize safety guard + move test_reset into test helper
alexskr Feb 11, 2026
f631065
Merge pull request #173 from ncbo/infra/docker-test-runner
alexskr Feb 12, 2026
fb4e00f
non-deterministic test failures fix #1 of several
mdorf Feb 28, 2026
71385a8
Infra/ontoportal testkit integration (#174)
alexskr Feb 28, 2026
a9cfd6d
Gemfile.lock update
mdorf Mar 4, 2026
f803bb2
Gemfile.lock update
mdorf Mar 4, 2026
93c8ade
improved submit_search_query to provide better error reporting
mdorf Mar 5, 2026
3ef0104
changed Solr query from GET to POST to address URL-too-long errors
mdorf Mar 9, 2026
f401adc
changed resource_id in solr schema to 'string', NOT 'string_ci'
mdorf Mar 10, 2026
6600a67
ontoportal testkit update
alexskr Mar 11, 2026
414168e
ontoportal testkit update
alexskr Mar 11, 2026
6f7f5ec
ontoportal testkit update
alexskr Mar 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 0 additions & 32 deletions .github/workflows/ruby-unit-test.yml

This file was deleted.

87 changes: 87 additions & 0 deletions .github/workflows/testkit-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Docker Unit Tests

on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:

env:
# CI execution mode for backend tests:
# - container: run `test:docker:<backend>:container` (default)
# - native: run `test:docker:<backend>` on host Ruby
OPTK_CI_RUN_MODE: ${{ vars.OPTK_CI_RUN_MODE || 'container' }}
# Example override to force native mode in this workflow file:
# OPTK_CI_RUN_MODE: native

jobs:
prepare:
runs-on: ubuntu-latest
outputs:
backends: ${{ steps.cfg.outputs.backends }}
steps:
- uses: actions/checkout@v6

- id: cfg
name: Read backend matrix from .ontoportal-testkit.yml
run: |
BACKENDS=$(ruby -ryaml -rjson -e 'c=YAML.safe_load_file(".ontoportal-testkit.yml") || {}; b=c["backends"] || %w[fs ag vo gd]; puts JSON.generate(b)')
echo "backends=$BACKENDS" >> "$GITHUB_OUTPUT"

test:
needs: prepare
runs-on: ubuntu-latest
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
backend: ${{ fromJson(needs.prepare.outputs.backends) }}

steps:
- uses: actions/checkout@v6

- name: Set up Ruby from .ruby-version
uses: ruby/setup-ruby@v1
with:
ruby-version: .ruby-version
bundler-cache: true

- name: Set up Java 11 (native mode)
if: env.OPTK_CI_RUN_MODE == 'native'
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '11'

- name: Install native system dependencies
if: env.OPTK_CI_RUN_MODE == 'native'
run: |
sudo apt-get update
sudo apt-get install -y raptor2-utils

- name: Run unit tests
env:
CI: "true"
TESTOPTS: "--verbose"
BACKEND: ${{ matrix.backend }}
run: |
MODE="${OPTK_CI_RUN_MODE:-container}"
TASK="test:docker:${BACKEND}"
if [ "$MODE" = "container" ]; then
TASK="${TASK}:container"
elif [ "$MODE" != "native" ]; then
echo "Invalid OPTK_CI_RUN_MODE=$MODE (expected container or native)"
exit 1
fi

bundle exec rake "$TASK"

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests,${{ matrix.backend }}
verbose: true
fail_ci_if_error: false
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.tags*
.bundle
.config
.serena
coverage
InstalledFiles
lib/bundler/man
Expand All @@ -25,3 +26,8 @@ doc/

.idea/*
projectFilesBackup/*

config/config.rb
queries.txt

*.iml
8 changes: 8 additions & 0 deletions .ontoportal-testkit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
component_name: goo
app_service: test-container
backends:
- fs
- ag
- vo
- gd
dependency_services: []
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.10
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ARG RUBY_VERSION=3.2
ARG DISTRO=bullseye
ARG TESTKIT_BASE_IMAGE=ontoportal/testkit-base:ruby${RUBY_VERSION}-${DISTRO}
FROM ${TESTKIT_BASE_IMAGE}

WORKDIR /app

COPY Gemfile* *.gemspec ./

# Respect the project's Bundler lock when present.
RUN if [ -f Gemfile.lock ]; then \
BUNDLER_VERSION=$(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1 | tr -d ' '); \
gem install bundler -v "$BUNDLER_VERSION"; \
fi

RUN bundle install --jobs 4 --retry 3

COPY . ./

CMD ["bundle", "exec", "rake"]
8 changes: 5 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ source 'https://rubygems.org'
gemspec

gem "activesupport"
gem "cube-ruby", require: "cube"
gem "faraday", '~> 1.9'
gem "rake"
gem "uuid"
gem "request_store"

group :test do
gem "minitest", '< 5.0'
gem "pry"
gem 'simplecov'
gem 'simplecov-cobertura' # for submitting code coverage results to codecov.io
gem 'ontoportal_testkit', github: 'alexskr/ontoportal_testkit', branch: 'main'
end

group :profiling do
Expand All @@ -22,4 +22,6 @@ group :profiling do
gem "thin"
end

gem 'sparql-client', github: 'ncbo/sparql-client', branch: 'master'
gem 'sparql-client', github: 'ncbo/sparql-client', branch: 'ontoportal-lirmm-development'
gem "rdf-raptor", github: "ruby-rdf/rdf-raptor", ref: "6392ceabf71c3233b0f7f0172f662bd4a22cd534" # use version 3.3.0 when available
gem 'net-ftp'
Loading
Loading