Skip to content

'Subtype a relation' incorrectly says all inherited roles must be declared, and also omits non-inherited roles #560

Open
@JonThom

Description

@JonThom

Description

There are two bugs in the docs on 'Subtype a relation':

  1. The field marked 'important' says that

All roles defined to relate to the parent relation must also be defined to relate to the child relation using the as keyword.

However this is incorrect - it is perfectly possible to declare a child relation without specifying each of the inherited roles relates (they are implicit), e.g.:

define
  
    game sub relation,
        relates player;

    cricketgame sub game;
  1. The docs omit to mention that a subtype may relate new roles that do not inherit from the supertype roles (i.e. do not require the 'as' keyword, e.g.
define

    game sub relation;

    cricketgame sub game,
        relates audience;

Location of Content

https://docs.vaticle.com/docs/schema/concepts#subtype-a-relation

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions