You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the evaluation of my graph pattern learner i'm currently trying to generate all possible (different) SPARQL BGPs of a given length (5 at the moment). With up to 11 variables, enumerating all of those graphs might be stretching it a bit, but i'm nearly there. However, to do this, i need the canonical representations of SPARQL BGPs. As discussed before (#483), i'm reducing SPARQL BGPs (and especially their variables) to RDF graphs with BNodes (see here if interested), then run RGDA1 on it, and map the canonical BNode labels to the SPARQL Variables.
Similarly to #494, I noticed that sometimes during this process i still lose nodes. Minimal test-case below (PR with test will follow):
joernhees
changed the title
RDGA1 graph canonicalization sometimes still collapses distinct BNodes
RGDA1 graph canonicalization sometimes still collapses distinct BNodes
Mar 29, 2017
You managed to hit a hash collision, where two branches of node refinements result in the same hash. I've changed things two ways: 1) node refinements always continue to be applied even when the node color groups are already singular, and 2) if there are any duplicate node colors at the end of refinement they are combined so they can be individuated later on.
joernhees
added a commit
to joernhees/rdflib
that referenced
this issue
Apr 9, 2017
…ation
* upstream/pull/730:
Removed extraneous debug statements.
FixedRDFLib#725 by fully refining all bnode colors and combining color groups if there is a hash collision.
During the evaluation of my graph pattern learner i'm currently trying to generate all possible (different) SPARQL BGPs of a given length (5 at the moment). With up to 11 variables, enumerating all of those graphs might be stretching it a bit, but i'm nearly there. However, to do this, i need the canonical representations of SPARQL BGPs. As discussed before (#483), i'm reducing SPARQL BGPs (and especially their variables) to RDF graphs with BNodes (see here if interested), then run RGDA1 on it, and map the canonical BNode labels to the SPARQL Variables.
Similarly to #494, I noticed that sometimes during this process i still lose nodes. Minimal test-case below (PR with test will follow):
for
g
we will get the following "stats":for
cg
we'll get the following:@jimmccusker could you maybe have another look?
The text was updated successfully, but these errors were encountered: