Get attributes of a type


My question relates to matching schema concepts as described here [].

I don’t see an example for how to query the attributes of a type. For example, for the schema below what query will let me know that a Person has an attribute name that is a string?

name sub attribute, datatype string;

person sub entity,
 has name;