Sha256: 365dbcddcefbc05b8b51c7aa4aa0159d1d4cb87c0511deb9137275b7d6663493

Contents?: true

Size: 739 Bytes

Versions: 1

Compression:

Stored size: 739 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

1 entries across 1 versions & 1 rubygems

Version Path
activefacts-0.7.3 examples/CQL/SchoolActivities.cql