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?
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?