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

Feature: extract ontology URI automatically in submissions process #153

Conversation

syphax-bouazzouni
Copy link

@codecov
Copy link

codecov bot commented Aug 3, 2022

Codecov Report

Merging #153 (c1e485b) into master (8196bf3) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   80.84%   80.90%   +0.05%     
==========================================
  Files          63       64       +1     
  Lines        4835     4850      +15     
==========================================
+ Hits         3909     3924      +15     
  Misses        926      926              
Flag Coverage Δ
unittests 80.90% <100.00%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
lib/ontologies_linked_data.rb 100.00% <100.00%> (ø)
...ology_submissions/submission_metadata_extractor.rb 100.00% <100.00%> (ø)
...tologies_linked_data/models/ontology_submission.rb 79.18% <100.00%> (-0.12%) ⬇️
lib/ontologies_linked_data/parser/owlapi.rb 80.58% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@mdorf
Copy link
Member

mdorf commented Feb 13, 2024

This pull request has been merged into the https://github.com/ncbo/ontologies_linked_data/tree/develop branch

@mdorf
Copy link
Member

mdorf commented Feb 14, 2024

@syphax-bouazzouni this PR is missing code. The method generate_rdf has changed from accepting two arguments to accepting three arguments:
FROM:
def generate_rdf(logger, reasoning: true)
TO
def generate_rdf(logger, file_path, reasoning=true)

But the source of the new generate_rdf and calls to it with three arguments are not included in the PR.

  1) Error:
TestSearchController#test_search_obo_id:
ArgumentError: wrong number of arguments (given 3, expected 1)
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/models/ontology_submission.rb:452:in `generate_rdf'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/models/ontology_submission.rb:1005:in `process_submission'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:117:in `block (2 levels) in create_ontologies_and_submissions'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:109:in `each'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:109:in `block in create_ontologies_and_submissions'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:107:in `each'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:107:in `create_ontologies_and_submissions'
    /Users/mdorf/dev/ncbo/ontologies_api/test/controllers/test_search_controller.rb:207:in `test_search_obo_id'

@mdorf mdorf self-assigned this Feb 14, 2024
@mdorf
Copy link
Member

mdorf commented Feb 14, 2024

merged manually to develop

@mdorf mdorf closed this Feb 14, 2024
@syphax-bouazzouni
Copy link
Author

@syphax-bouazzouni this PR is missing code. The method generate_rdf has changed from accepting two arguments to accepting three arguments: FROM: def generate_rdf(logger, reasoning: true) TO def generate_rdf(logger, file_path, reasoning=true)

But the source of the new generate_rdf and calls to it with three arguments are not included in the PR.

  1) Error:
TestSearchController#test_search_obo_id:
ArgumentError: wrong number of arguments (given 3, expected 1)
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/models/ontology_submission.rb:452:in `generate_rdf'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/models/ontology_submission.rb:1005:in `process_submission'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:117:in `block (2 levels) in create_ontologies_and_submissions'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:109:in `each'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:109:in `block in create_ontologies_and_submissions'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:107:in `each'
    /Users/mdorf/dev/ncbo/ontologies_linked_data/lib/ontologies_linked_data/sample_data/ontology.rb:107:in `create_ontologies_and_submissions'
    /Users/mdorf/dev/ncbo/ontologies_api/test/controllers/test_search_controller.rb:207:in `test_search_obo_id'

Have you been able to figure out this? this PR had not changed generate_rdf, maybe the upstream code changed since the creation of this PR.

@mdorf
Copy link
Member

mdorf commented Feb 20, 2024

Yes, I was able to track down the missing code. The method generate_rdf had changed at some point to accept an extra argument to store the file_path, which is required by this PR to be passed to the OWL API Wrapper for extracting the ontology IRI.

@syphax-bouazzouni syphax-bouazzouni deleted the pr/feature/add-extract-ontology-uri-to-submissions branch February 21, 2024 07:15
mdorf added a commit that referenced this pull request Feb 27, 2024
alexskr added a commit that referenced this pull request May 4, 2024
some of the changes introduced in PR #153 were rolled back by PR #143 merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Question: is the attribute :uri of ontologySubmissions used somewhere ?
2 participants