Sha256: 52b8afc13aa575644a5a46d3d31decb39729fd7e8f81fcf485d31ca54ae9cde1

Contents?: true

Size: 771 Bytes

Versions: 4

Compression:

Stored size: 771 Bytes

Contents

vocabulary OneRoleNesting;

/*
 * Value Types
 */
Accuracy Level is written as Signed Integer(32);
Party Id is written as Auto Counter;
Party Name is written as String;
ymd is written as Date;

/*
 * Entity Types
 */
Accuracy is identified by its Level restricted to {1..5};

Event Date is identified by ymd where
	Event Date has one ymd,
	ymd is of at most one Event Date;

Party is independent identified by its Id;

Party Moniker is where
	Party is called one Party Name;
Party Moniker has one Accuracy;

Person is a kind of Party;

Birth is where
	Person was born on one Event Date;

Death is where
	Person died;
Death occurred on at most one death-Event Date;

Doctor is a kind of Person;
Birth was assisted by at most one attending-Doctor,
	Doctor attended Birth;

Version data entries

4 entries across 4 versions & 1 rubygems

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