Sha256: 24a2fcc665c32267e304f189998d2a01ba80e4de32468f3590430ae9ce406d25

Contents?: true

Size: 480 Bytes

Versions: 5

Compression:

Stored size: 480 Bytes

Contents

vocabulary MultipleSubtyping;

/*
 * Value Types
 */
Person Name is written as String;

/*
 * Entity Types
 */
Person is identified by its Name;

Teenager is a kind of Person;

Adult is a kind of Person;

Child is a kind of Person;

Female is a kind of Person;

Male is a kind of Person;

/*
 * Constraints:
 */
for each Person exactly one of these holds:
	Person is a Child,
	Person is a Teenager,
	Person is an Adult;
either Person is a Male or Person is a Female but not both;

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activefacts-examples-1.9.9 cql/MultipleSubtyping.cql
activefacts-examples-1.9.8 cql/MultipleSubtyping.cql
activefacts-examples-1.8.0 cql/MultipleSubtyping.cql
activefacts-examples-1.7.2 cql/MultipleSubtyping.cql
activefacts-examples-1.7.1 cql/MultipleSubtyping.cql