Sha256: 1adc2af975ef6b1ba71d7d5371fbda100f4d47e077f138ea0364852e2807de02

Contents?: true

Size: 737 Bytes

Versions: 2

Compression:

Stored size: 737 Bytes

Contents

vocabulary SchoolActivities;

/*
 * Value Types
 */
ActivityName is written as VariableLengthText(32);
SchoolName is written as VariableLengthText;
StudentName is written as VariableLengthText;

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

School is identified by its Name;

SchoolActivity is where
	School sanctions Activity;

Student is identified by its Name;
Student is enrolled in one School;

StudentParticipation is where
	Student represents School in Activity,
	Student participates in Activity which is sanctioned by at most one School;

/*
 * Constraints:
 */
Student represents School in Activity
	only if School sanctions Activity;
Student represents School in Activity
	only if Student is enrolled in School;

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activefacts-0.8.6 examples/CQL/SchoolActivities.cql
activefacts-0.8.5 examples/CQL/SchoolActivities.cql