|
Abbreviated Syntax |
||||||||||||||||
OverviewWe follow the RDF abbreviation syntax in much of this. The abbreviated syntax includes additional syntactic constructs that perhaps provide a more convenient and compact form to represent a subset of the data model. IFF interpreters are expected to implement both the standard serialization syntax and the abbreviated syntax. Consequently, ontology authors are free to mix the two. While the standard serialization syntax shows the structure of an IFF model most clearly, often it is desirable to use a more compact XML form. The IFF abbreviated syntax accomplishes this. As a further benefit, the abbreviated syntax allows descriptions obeying certain well-structured XML DTDs to be directly interpreted as IFF models for special ontologies. |
||||||||||||||||
Abbreviation FormsThe Classification of ObjectsThis is the most basic abbreviation syntax. It applies to the common case of an object containing a classification. The object type defined in the ontology corresponding to the value of the classification attribute can be used directly as an XML element name. Here is an example (compare the RDF abbreviation). The “id”, “about”, “name”, “sound”, “picture” and “classification” relations have a special treatment, usually being expressed in IFF as XML attributes – although this is not necessary: Standard Syntax:
Abbreviated Syntax (as XML element):
The Classification of RelationsThis is the most basic abbreviation syntax. It applies to the common case of a record containing a classification. The relation type defined in the ontology corresponding to the value of the classification attribute can be used directly as an XML element name. Here is an example (compare the RDF abbreviation): Standard Syntax:
Abbreviated Syntax (as XML element):
The Attributes of ObjectsThe first syntax abbreviation embeds binary relations, including functions, into object type declaration and object instance descriptions as XML child elements. The second abbreviation syntax inserts functions into object instance descriptions as XML attributes of the parent element. Here is a type example: Standard Syntax:
Abbreviated Syntax (as XML child elements):
Here is an instance example (compare the RDF abbreviation): Standard Syntax:
Abbreviated Syntax (as XML child elements):
Abbreviated Syntax (as XML attributes):
The Arguments of RelationsThe first syntax abbreviation uses the entity type of an argument in place of the signature element label in the argument specification. The second syntax abbreviation uses in a record the optional argument names from the signature of the corresponding relation type specification. These names are required to be distinct within the local context of the relation. Here is an example: Relation Declaration (in the ontology) – Standard Syntax:
Relation Declaration (in the ontology) – Abbreviated Syntax (as XML child elements):
Standard Syntax:
Abbreviated Syntax (as XML child elements):
Existential QuantifiersExistential quantification only asserts the existence of an entity, but is not required to give an identification or description of the entity. So a simple abbreviation in IFF expressions is to refer to the entity without identification or description. Here we use two forms of abbreviated existential quantification: (1) declare objects without identifiers with embedded attributes (binary relations or functions), and (2) use references to objects in the form type#, which are qualifiers without an instance designator. Here is an example for the following natural language assertion with reified verb:
Existential Quantification – Standard Syntax:
Existential Quantification – Abbreviated Syntax:
|
||||||||||||||||
|
|
||||||||||||||||
|
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: August 2000 |