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
## What is the goal of this PR?
As of Grakn 1.6.0 and since the changes made in the explanation retrieval with Client Node.js, explaining the inferred concepts were not possible against Core 1.6.0. This PR adopts these changes and brings back the explanation feature of Workbase.
## What are the changes implemented in this PR?
### Attaching `queryPattern` to nodes
Within the `EXPLAIN_CONCEPT` action in order to know if the retrieved explanation is a joint explanation or one resolved from a rule, we check the variables of the explanation answers against the original `queryPattern`. For this reason, we need to have access to the node's `queryPattern` and so we attach it to the node when building the node object.
### Retrieving explanation
In the legacy implementation of explanation retrieval, we could safely assume that when `queryPattern` is an empty string, the explanation is of type Joint and so we need to retrieve explanations one level deeper. This is no longer the case, and therefore we rely on the `isJointExplanation` variable which checks the variables of the retrieved explanation answers against the original `queryPattern`.
commit="d8e266644cc5c1d44dc17515069b1a6b70c98c44", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_build_tools
25
+
commit="2917a6d9348d67b036d762f521e6a8680101ea51", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_build_tools
26
26
)
27
27
28
28
defgraknlabs_grakn_core():
29
29
git_repository(
30
30
name="graknlabs_grakn_core",
31
31
remote="https://github.com/graknlabs/grakn",
32
-
commit="2939a8464096c73b42ec0702647a246f357f226b", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_grakn_core
32
+
commit="86f8a19a9bdac3093f5d131e0fe07667b047ca82", # sync-marker: do not remove this comment, this is used for sync-dependencies by @graknlabs_grakn_core
0 commit comments