-
Notifications
You must be signed in to change notification settings - Fork 22
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
Remove forked code from processor, monkey patch instead #288
Draft
white-gecko
wants to merge
16
commits into
master
Choose a base branch
from
feature/reduceForkedCode
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The effective diff of the
|
white-gecko
force-pushed
the
feature/reduceForkedCode
branch
from
June 29, 2023 21:29
5915068
to
7592024
Compare
white-gecko
force-pushed
the
feature/reduceForkedCode
branch
from
June 30, 2023 14:46
843a4f6
to
2472513
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the module
quit.tools
most of the code is forked from the rdflib. This code was updated in the rdflib and in the quit store code and is in a diverged state now. So we should remove that code and use some technique like monkey patching instead.For
processor.py
the monkey patch was straightforward.To reconstruct a diff and find out what to patch I went to the initial commit of the files
algebra.py
(776aa20),evaluate.py
(776aa20), andupdate.py
(201ad1f) and compared it with the following commands to the history of the respective files in the rdflib repo.I came to the conclusion, that the minimal diff is at:
algebra.py
: RDFLib/rdflib@227b41fb (22/5)evaluate.py
: RDFLib/rdflib@be16dfea (20/14)SERVICE
implementation, which should be replaced by the implementation from rdflibFROM NAMED
(686d5b8) we had trouble with that, see Support FROM NAMED and USING NAMED #144update.py
: RDFLib/rdflib@6c026d09 (68/21)TODO:
Files completed:
processor.py
algebra.py
evaluate.py
update.py
Fix #160 .