T
TypeDB18h ago
Andrew

Andrew - Quick question about schema naming con...

Quick question about schema naming conventions. Is there an elegant way to deal with things that function as - hence need to be modelled as - both an entity and a role? Eg “court” as a role that an org plays AND a type of organisation. Want to be able to reflect the broader range of orgs playing the role, as opoosed to those officially designated as such. Is the answer just suck it up and use different names?
1 Reply
krishnan
krishnan18h ago
Role names are scoped to the relation. This commits:
define
relation your-relation, relates court;
entity court;
define
relation your-relation, relates court;
entity court;

Did you find this page helpful?