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

get_requested_resources method was added to Ontology #244

Conversation

okolo
Copy link
Contributor

@okolo okolo commented Mar 3, 2024

Note, that I have temporarily changed the url of the ontology file to https://raw.githubusercontent.com/oda-hub/ontology/storage_resource_annotations/ontology.ttl in python-package.yml . This is needed for unit tests. As soon as ontology pull request is done the change in python-package.yml should be reverted.

@okolo okolo linked an issue Mar 3, 2024 that may be closed by this pull request
@okolo okolo requested a review from dsavchenko March 3, 2024 11:59
Copy link

codecov bot commented Mar 3, 2024

Codecov Report

Attention: Patch coverage is 97.82609% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 58.82%. Comparing base (c889b20) to head (a9aa0c1).

Files Patch % Lines
oda_api/ontology_helper.py 97.22% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #244      +/-   ##
==========================================
+ Coverage   58.30%   58.82%   +0.52%     
==========================================
  Files          23       23              
  Lines        4849     4894      +45     
==========================================
+ Hits         2827     2879      +52     
+ Misses       2022     2015       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@okolo okolo added the test-live label Mar 3, 2024
Copy link
Member

@dsavchenko dsavchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some concerns about performance due to creation of the additional graph (L450) and using a recursive function in the loop. (But I'm not really sure if the approach of complex SPARQL queries I use elsewhere is really better.)

Given that this method will be used once upon deployment, that's not a big problem.

tests/test_ontology.py Show resolved Hide resolved
@dsavchenko dsavchenko requested a review from volodymyrss March 11, 2024 11:24
@okolo
Copy link
Contributor Author

okolo commented Mar 16, 2024

The tests do not pass due to error in test_plot_tools_notebook, which has nothing to do with get_requested_resources

@volodymyrss
Copy link
Member

The tests do not pass due to error in test_plot_tools_notebook, which has nothing to do with get_requested_resources

What is the error? If you notice it, could you make an issue? If it's complex to fix it quickly, please mark the tests skipped.

@dsavchenko
Copy link
Member

What is the error? If you notice it, could you make an issue? If it's complex to fix it quickly, please mark the tests skipped.

This was some transient issue with the prod instance, I think. Fixed by rerunning. Could you merge, nb2workflow now depends on this change in master

@dsavchenko
Copy link
Member

Could you merge

@volodymyrss

@volodymyrss volodymyrss enabled auto-merge (squash) March 20, 2024 13:33
@volodymyrss volodymyrss merged commit 3204882 into master Mar 20, 2024
14 checks passed
@okolo okolo deleted the 243-add-ontology-helper-support-for-resource-annotation-parsing branch March 26, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add ontology helper support for resource annotation parsing
3 participants