Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Split mappings_ontologies method to small functions #159

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
remove SAME_URI filter exception
syphax-bouazzouni committed Dec 17, 2022
commit 3d502b7682c420ed10bc09dbc5aa7923e4ccf399
2 changes: 1 addition & 1 deletion lib/ontologies_linked_data/mappings/mappings.rb
Original file line number Diff line number Diff line change
@@ -711,7 +711,7 @@ def self.mappings_ont_build_query(class_id, page, size, sub1, sub2)
#STRSTARTS is used to not count older graphs
#no need since now we delete older graphs

filter += "\nFILTER (!STRSTARTS(str(?g),'#{ont_id}') || (?source = 'SAME_URI')"
filter += "\nFILTER (!STRSTARTS(str(?g),'#{ont_id}')"
filter += ")"
end