Skip to content

Commit

Permalink
reapply PR #153
Browse files Browse the repository at this point in the history
some of the changes introduced in PR #153 were rolled back by PR #143 merge
  • Loading branch information
alexskr committed May 4, 2024
1 parent b10c64a commit a3f6cf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/ontologies_linked_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,16 @@
# Require base model
require 'ontologies_linked_data/models/base'




# 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'
models = Dir.glob("#{project_root}/ontologies_linked_data/concerns/**/*.rb").sort
models.each do |m|
require m
end



# We need to require deterministic - that is why we have the sort.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ def process_rdf(logger, reasoning)
zip_dst = @submission.unzip_submission(logger)
file_path = zip_dst ? zip_dst.to_s : @submission.uploadFilePath.to_s
generate_rdf(logger, file_path, reasoning: reasoning)
@submission.extract_metadata
@submission.add_submission_status(status)
@submission.save
rescue Exception => e
Expand Down

0 comments on commit a3f6cf0

Please sign in to comment.