|
Defined Entity Type |
|||||
|
|
|||||
Maine FarmerHere is an example in CG and
IFF of a defined entity type that was taken from the CGIF standard. We
paraphrase the standard.
CGThe following gives a definition for the entity type Maine-Farmer. Two versions are given. The first version in linear form is expressed by a lambda expression for a farmer located in Maine. The symbol l (lambda) indicates that the concept Farmer is the formal parameter, and the sequence (Farmer) is the signature of the lambda expression. The type of the formal parameter is always a supertype of the newly defined type: Maine-Farmer £ Farmer.
As an alternate notation in CGIF, types can be defined with the keyword type and a variable.
IFFThe standard IFF form is closest to the first CG version.
An alternate abbreviated IFF form, which embeds an expression within an entity type declaration, is closest to the second CG version.
|
|||||
|
|
|||||
|
Please send questions, comments and suggestions
about this page to: Robert E. Kent rekent@ontologos.org |
|||||
|
Copyright © 2000 TOC (The Ontology
Consortium). All rights reserved. Revised: July 2000 |