Sha256: 7220719a531bdb8e2507a2013e8dba600172ada98a450521fada732a97be206f

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

vocabulary Address;

/*
 * Value Types
 */
City is written as VariableLengthText(64);
CompanyName is written as VariableLengthText();
FamilyName is written as VariableLengthText(20);
GivenNames is written as VariableLengthText(20);
Number is written as VariableLengthText(12);
Postcode is written as VariableLengthText();
StreetLine is written as VariableLengthText(64);

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

Family is identified by its Name;

Person is identified by Family and GivenNames where
	Person is of one Family,
	Family includes Person,
	Person has one GivenNames;

Street is identified by first-StreetLine and second-StreetLine and third-StreetLine where
	Street includes one first-StreetLine,
	Street includes at most one second-StreetLine,
	Street includes at most one third-StreetLine;

Address is identified by street-Number and Street and City and Postcode where
	Address is at at most one street-Number,
	Address is at one Street,
	Address is in one City,
	Address is in at most one Postcode,
	Postcode is of Address;
Company has head office at at most one Address;
Person lives at at most one Address;

/*
 * Constraints:
 */
Street includes third-StreetLine
	only if Street includes second-StreetLine;

Version data entries

1 entries across 1 versions & 1 rubygems

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