Skip to content

Commit 19ef115

Browse files
authored
Add a rule to explanation results (#24)
## What is the goal of this PR? When the client requests an explanation for a query, we want to also return the rule that is being explained. Therefore, we add the ability to pass a rule inside an explanation. Required by: [https://github.com/graknlabs/client-java/pull/81](https://github.com/graknlabs/client-java/pull/81) [https://github.com/graknlabs/grakn/pull/5657](https://github.com/graknlabs/grakn/pull/5657) ## What are the changes implemented in this PR? - Add a rule as a `Concept` within an explanation response.
1 parent f41719b commit 19ef115

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

session/Answer.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ message Explanation {
4242
}
4343
message Res {
4444
repeated ConceptMap explanation = 1;
45+
Concept rule = 2;
4546
}
4647
}
4748

0 commit comments

Comments
 (0)