RasaHQ / tutorial-knowledge-base

Integrating Rasa with a knowledge base to encode domain knowledge and resolve entities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

why do we have two schema files?

chikubee opened this issue · comments

can someone explain why did we need another schema file (schema.gql, schema.py)?
and why does schema.py which has representation and keys, not have all attributes of an entity?
does that imply something or am i getting it wrong?

Thanks for raising this issue, @tabergma will get back to you about it soon✨

Please also check out the docs and the forum in case your issue was raised there too 🤗
commented

schema.gql is for creating the graph in Grakn.

As python cannot easily understand that kind of format, I duplicated the schema into schema.py in a JSON format. This can then be read by our custom action which is needed in order to construct the queries correctly.

Ideally, both files have the same attributes. What kind of attributes are not listed?