Discussion Forum

Mata Data of Schema

hi there!
I am facing an issue with the following tasks kindly guide me.
after successfully loaded schema and data then I am trying to write a query to check the metadata of schema like how many entities are in my schema?
how many relations are in my schema list down. and etc.
and I am also trying to add and delete entities from schema.

you can use the schema as part of your queries as anything else.
for example, counting the number of entities:

match $x sub entity; count;

same for relations/attributes.

to add more elements to the schema you use define, and to remove you use undefine queries