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

Make it possible to expose an existing rdflib graph via tripper #156

Merged
merged 4 commits into from
Dec 14, 2023

Conversation

jesper-friis
Copy link
Contributor

@jesper-friis jesper-friis commented Dec 13, 2023

Description:

Added graph option to the rdflib backend that allows to expose an existing rdflib graph via tripper.

Use as follows:

graph = Graph()
graph.parse(...)
ts = Triplestore(backend="rdflib", graph=graph)  # all triples in the original graph are now exposed via tripper

Type of change:

  • Bug fix.
  • New feature.
  • Documentation update.
  • Testing.

Checklist for the reviewer:

This checklist should be used as a help for the reviewer.

  • Is the change limited to one issue?
  • Does this PR close the issue?
  • Is the code easy to read and understand?
  • Do all new feature have an accompanying new test?
  • Has the documentation been updated as necessary?

@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2023

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (dba3971) 75.67% compared to head (ddd3bec) 75.17%.
Report is 49 commits behind head on master.

Files Patch % Lines
tripper/mappings/mappings.py 40.00% 9 Missing ⚠️
tripper/backends/rdflib.py 80.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #156      +/-   ##
==========================================
- Coverage   75.67%   75.17%   -0.51%     
==========================================
  Files          17       17              
  Lines        1402     1410       +8     
==========================================
- Hits         1061     1060       -1     
- Misses        341      350       +9     

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

Copy link
Contributor

@francescalb francescalb left a comment

Choose a reason for hiding this comment

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

Approved with fixing of a typo

Co-authored-by: Francesca L. Bleken <48128015+francescalb@users.noreply.github.com>
@jesper-friis jesper-friis merged commit b07a0e2 into master Dec 14, 2023
14 checks passed
@jesper-friis jesper-friis deleted the expose-rdflib-graph branch December 14, 2023 09:56
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.

3 participants