-
Notifications
You must be signed in to change notification settings - Fork 52
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
Rewrite local vocab entries and blank nodes for DeltaTriples
#1580
Rewrite local vocab entries and blank nodes for DeltaTriples
#1580
Conversation
Signed-off-by: Johannes Kalmbach <[email protected]>
Signed-off-by: Johannes Kalmbach <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1580 +/- ##
=======================================
Coverage 89.04% 89.04%
=======================================
Files 368 368
Lines 33972 34018 +46
Branches 3839 3846 +7
=======================================
+ Hits 30249 30293 +44
- Misses 2471 2472 +1
- Partials 1252 1253 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Johannes Kalmbach <[email protected]>
Signed-off-by: Johannes Kalmbach <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1-1 with Johannes, this looks great.
I will revise the comments and test it, then let's see
Signed-off-by: Johannes Kalmbach <[email protected]>
DeltaTriples
DeltaTriples
Conformance check passed ✅No test result changes. |
Quality Gate passedIssues Measures |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great now from my side
To evaluate the triple set for an update it is sufficient to calculate this in the ID space. I also stumbled upon this problem. I have one question about the behaviour of the PR:
|
@Qup42 The idea is to potentially maintain multiple Does this answer your questions? |
That does clear up the bigger picture of this PR. Johannes and I cleared up the questions in private. The two aspects are relevant to my next PR. |
Each
DeltaTriples
object has exactly one local vocab and one blank node manager. When inserted triples contain local vocab IDs or blank node IDs, these are rewritten for that local vocab and blank node manager. Different local vocab entries referring to the same string are rewritten to the same new local vocab ID. Similarly, different occurrences of the same blank node are rewritten to the same new blank node ID. The rewriting also ensures that local vocab entries or blank nodes that were created merely during the evaluation of the WHERE clause of an insert operation, but do not end up in one of the resulting triples, do not become part of the local vocab or blank nodes of theDeltaTriples
object.