AnnotationSubject
AnnotationSubject =
"entity type"|"relation type"|"attribute type"|"type"|"sub"|"value type"|"owns"|"owns list"|"relates"|"relates list"|"plays"
Defined in: libs/language/src/typeqlite-annotations.ts:34
Where each annotation may sit: the places TypeDB 3 admits it, as its behavior specification states row by row.
The subjects are syntactic: the AST says whether an annotation follows the type’s name, its sub, its value, or
a trait. A re-open (player @abstract;) does not say which kind of type it names, so it admits the union of the
three kinds; the interpreter, which knows the applied schema, refuses @independent on a re-opened entity.
@cascade is TypeDB’s own “temporarily turned off”: kept on relation types, where it belonged, and nowhere else.
@distinct belongs to lists (owns name[], relates parent[]) and to nothing else; a list admits everything its
unordered form does, and that.
TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.