Skip to content

Commit

Permalink
Feature: isolate ontology submission process steps (#132)
Browse files Browse the repository at this point in the history
* add an abstraction for submission process steps

* extract submission generate_rdf step to a file

* extract submission generate missing labels steps into a file

* extract the submission archiving step into a file

* add  abstraction to diff tool & extract the submission step to a file

* extract the submission metrics generation step to a file

* extract the submission properties indexation step into a file

* extract the submission terms indexation step into a file

* move the extract metadata concern to submission process step file

* extract the submission generate obsolete classes step from generate rdf

* add the global submission process that call the sub-steps
  • Loading branch information
syphax-bouazzouni authored Apr 20, 2024
1 parent 026c9c4 commit d5ff793
Show file tree
Hide file tree
Showing 23 changed files with 1,592 additions and 1,309 deletions.
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ GEM
domain_name (~> 0.5)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
json (2.7.1)
json (2.7.2)
json-ld (3.0.2)
multi_json (~> 1.12)
rdf (>= 2.2.8, < 4.0)
json_pure (2.7.1)
json_pure (2.7.2)
jwt (2.8.1)
base64
language_server-protocol (3.17.0.3)
Expand All @@ -111,7 +111,7 @@ GEM
net-imap
net-pop
net-smtp
method_source (1.0.0)
method_source (1.1.0)
mime-types (3.5.2)
mime-types-data (~> 3.2015)
mime-types-data (3.2024.0305)
Expand Down Expand Up @@ -171,9 +171,9 @@ GEM
rdf-xsd (3.2.1)
rdf (~> 3.2)
rexml (~> 3.2)
redis (5.1.0)
redis-client (>= 0.17.0)
redis-client (0.21.1)
redis (5.2.0)
redis-client (>= 0.22.0)
redis-client (0.22.1)
connection_pool
regexp_parser (2.9.0)
request_store (1.6.0)
Expand All @@ -186,7 +186,7 @@ GEM
rexml (3.2.6)
rsolr (1.1.2)
builder (>= 2.1.2)
rubocop (1.62.1)
rubocop (1.63.2)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
Expand Down
35 changes: 28 additions & 7 deletions lib/ontologies_linked_data.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
require "goo"
require 'goo'

# Make sure we're in the load path
lib_dir = File.dirname(__FILE__)+"/../lib"
lib_dir = "#{File.dirname(__FILE__)}/../lib"
$LOAD_PATH.unshift lib_dir unless $LOAD_PATH.include?(lib_dir)

# Setup Goo (repo connection and namespaces)
require "ontologies_linked_data/config/config"
require 'ontologies_linked_data/config/config'

project_root = File.dirname(File.absolute_path(__FILE__))

Expand Down Expand Up @@ -38,22 +38,43 @@
require "ontologies_linked_data/metrics/metrics"

# Require base model
require "ontologies_linked_data/models/base"
require 'ontologies_linked_data/models/base'

# Require all models



# Require all models and services
project_root = File.dirname(File.absolute_path(__FILE__))
# Require base services
require 'ontologies_linked_data/services/submission_process/submission_process'

# We need to require deterministic - that is why we have the sort.
models = Dir.glob(project_root + '/ontologies_linked_data/models/**/*.rb').sort

models = Dir.glob("#{project_root}/ontologies_linked_data/services/**/*.rb").sort
models.each do |m|
require m
end

# We need to require deterministic - that is why we have the sort.
models = Dir.glob("#{project_root}/ontologies_linked_data/models/concerns//**/*.rb").sort
models.each do |m|
require m
end

# We need to require deterministic - that is why we have the sort.
models = Dir.glob("#{project_root}/ontologies_linked_data/models/**/*.rb").sort
models.each do |m|
require m
end



module LinkedData
def rootdir
File.dirname(File.absolute_path(__FILE__))
end

def bindir
File.expand_path(rootdir + '/../bin')
File.expand_path("#{rootdir}/../bin")
end
end

This file was deleted.

Loading

0 comments on commit d5ff793

Please sign in to comment.