Sha256: 910336fb9b24ff80fabe2ee74bd1e898e0aef3879d44fec9a8b947ebb49070ca

Contents?: true

Size: 731 Bytes

Versions: 1

Compression:

Stored size: 731 Bytes

Contents

vocabulary SubtypePI;

/*
 * Value Types
 */
EntrantID is written as AutoCounter();
FamilyName is written as VariableLengthText();
GivenName is written as VariableLengthText();
TeamID is written as AutoCounter();

/*
 * Entity Types
 */
Entrant is identified by its ID;
EntrantHasGivenName is where
	Entrant has at least one GivenName,
	GivenName is of Entrant;

Team is a kind of Entrant identified by its ID;

Competitor is a kind of Entrant;
Competitor has one FamilyName;

/*
 * Constraints:
 */
for each Entrant exactly one of these holds:
	Competitor is a subtype of Entrant,
	Team is a subtype of Entrant;
each combination FamilyName, GivenName occurs at most one time in
	Competitor has FamilyName,
	Entrant has GivenName;

Version data entries

1 entries across 1 versions & 1 rubygems

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