From 5825dc1f9d0ff439b1ba9d8f78fa7bb20b1c65d0 Mon Sep 17 00:00:00 2001 From: Bilel Kihal <61744974+Bilelkihal@users.noreply.github.com> Date: Wed, 22 Jan 2025 15:39:42 +0100 Subject: [PATCH] fix: parsing ontologies issue, when concept label is url (suite) (#68) --- lib/goo/sparql/mixins/solution_lang_filter.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/goo/sparql/mixins/solution_lang_filter.rb b/lib/goo/sparql/mixins/solution_lang_filter.rb index 47f0ade..cf97fd0 100644 --- a/lib/goo/sparql/mixins/solution_lang_filter.rb +++ b/lib/goo/sparql/mixins/solution_lang_filter.rb @@ -17,7 +17,9 @@ def fill_models_with_all_languages(models_by_id) model = models_by_id[id] predicates.each do |predicate, values| - if values.values.any? { |v| v.all? { |x| literal?(x) && x.plain?} } + + if values.values.any? { |v| v.any? { |x| literal?(x) && x.plain?} } + pull_stored_values(model, values, predicate, @unmapped) end end