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

Refactor creation of PROV objects #1

Closed
rue-a opened this issue Nov 3, 2022 · 0 comments
Closed

Refactor creation of PROV objects #1

rue-a opened this issue Nov 3, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@rue-a
Copy link
Owner

rue-a commented Nov 3, 2022

Currently, you create a PROV object by providing the graph to which it should be added as argument (among other args). Change this, so that the PROV object creation is controlled by class methods of the ProvGraph class.

provGraph = ProvGraph('https://ex.org/')
entity = provGraph.addEntity(id = '...')

instead of

provGraph = ProvGraph('https://ex.org/')
entity = Entity(provGraph, id = '...')
@rue-a rue-a added the enhancement New feature or request label Nov 3, 2022
@rue-a rue-a closed this as completed Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant