1. URIref ::= '<' uri? ('#' uric*)? '>'
  2. A URI reference is delimited by '<' and '>'

  3. NamespaceDecl ::= 'namespace' Prefix '=' quoted-string
  4. Namespace declarations at the beginning.

  5. DefaultNamespaceDecl ::= 'default' 'namespace' '=' quoted-string
  6. The default namespace declaration.

    Frame Portion

    2.1 Class Definitions

    The following definition defines a class as precisely the conjunction of a collection of superclasses and a collection of slot definitions.

  7. DefinedClassDescF ::= (super|slot)*
  8. /** The next definition is the same, except that the defined class is an unspecified subclass of the conjunction. **/ PrimitiveClassDescF ::= (super|slot)* /** It is also possible to define a class as a set of individuals, as follows. **/ EnumeratedClassDescF ::= Individial* /** Finally, it is possible to require that a collection of classes have the same members, or to be pairwise disjoint. **/ SameClassAsDescF ::= Class* DisjointDescF ::= Class* ClassF ::= "class" classID? ( SimpleClassDescF| DefinedClassDescF| EnumeratedClassDescF ) /** 2.2 Property Definitions The following definitions make two properties be the same, or make one property be a sub-property of another. **/ SamePropertyAs ::= "samePropertyAs" ( Property ) SubPropertyOf ::= "subPropertyOf" ( Property ) /** Properties can be given domains and ranges. The domain of a property is just a class. The range of a property is either a class or datatype range (a datatype or a set of data values). **/ Domain ::= "domain" ( Class ) Range ::= "range" ( Class ) DatatypeRange ::= "datatype" ( datatypeRange ) /** There are also definitions that make properties single-valued (i.e., partial functions), make their inverse be single-valued, or make the properties be transitive. The latter two definitions also have the effect of making the properties have a range restricted to individuals. **/ ::= SingleValuedProperty( ) ::= UniquelyIdentifyingProperty( ) ::= TransitiveProperty( ) 2.3 Supporting Productions Superclasses are specified as one or more class ID's. super ::= "subClassOf" (Class) /** A datatypeRange is either a datatype or a set of data values, which consist of a datatype and the lexical representation of a data value in that datatype. All the data values in a set must have the same datatype. **/ DatatypeRange ::= "datatype" datatypeID | oneOfDataValue DataValue ::= datatypeID() oneOfDataValue ::= DataValue ("|" DataValue)* /** Datatypes, classes, properties, and individuals have IDs that are QNames. Datatype IDs are restricted to a known set of QNames. Class IDs are any other QName. Both property and individual IDs have no restrictions, and can be the same as datatype, class, and property names. **/ owlName ::= QName | URIref datatypeID ::= owlName classID ::= owlName propertyID ::= owlName individualID ::= owlName Slot definitions place restrictions on properties in classes. The range part means that all values must belong to class or datatype range. The modality part is either required, meaning that there must be at least one value for the property, or optional, producing no restriction. If the modality part is not present, there is no restriction. The multiplicity part is either singlevalued, meaning that there must be at most one value for the property, or multivalued, producing no restriction. If the multiplicity part is not present, there is no restriction. Each required part means that there must be at least one value for the property that belongs to the class or datatype range. Each value part means that the individual or data value must be a value for the property. Slot ::= Property | DatatypeProperty Property ::= "property" propertyID? ( range?, modality?, multiplicity?, cardinality?,minCardinality?,maxCardinality?, Required?, Value? ) Required ::= "required" (Class) RequiredDatatype ::= "required" (DataValue) Value ::= "value"(Individual) DatatypeProperty ::= "datatypeProperty" propertyID? ( DatatypeRange?, modality?, multiplicity?, cardinality?,minCardinality?,maxCardinality?, RequiredDatatype?, DataValue?) modality ::= required | optional multiplicity ::= singlevalued | multivalued cardinality ::= "cardinality" (integer) minCardinality ::= "minCardinality" (integer) maxCardinality ::= "maxCardinality" (integer) /** 3. Fact Portion Facts state information about particular individuals in the form of a class that the individual belongs to plus properties and values. Individuals can either be named with an individualID or anonymous. The syntax here is set up to mirror the normal RDF/XML syntax. **/ Individual ::= "individual" individualID? ( Class PropertyValue* ) PropertyValue ::= "propertyValue" propertyID? ( Individial | DataValue ) /** Individual names can also be required to mean the same individual, or to mean different individuals. **/ SameIndividual ::= "sameIndividial"( Individual+) DifferentIndividuals ::= "differentIndividuals" ( Individual+ ) /** 4. Non-Frame Portion of Definitions In non-frame definitions, there are many more constructs for providing characteristics of classes. These constructs create descriptions. As well there are relationships between descriptions, and more characteristics of properties. 4.1 Class Definitions The following two kinds of definition generalize the frame definitions of the same name. **/ DefinedClass ::= "class" ClassID? ( Description* ) PrimitiveClass ::= "partial" "class" ClassID? ( (super|Slot)* ) /** The next two kinds of definition require descriptions to be the same as, subclasses of, or pairwise disjoint with other descriptions. ::= SameClassAs( {,} ) ::= SubClassOf( , ) ::= Disjoint( {,} ) **/ /* JB: does it work to make them all Class? */ SameClassAs ::= "sameClassAs" (Class+) SubClassOf ::= "subClassOf" (Class) Disjoint ::= "disjoint" ( Class+ ) /** 4.2 Property Definitions Domains and ranges of properties are similarly generalized. **/ Domain ::= "domain"( Class ) Range ::= "range"( ClassOrDatatype ) /** 4.3 Descriptions Descriptions include class IDs and the slot constructor. Descriptions can also be boolean combinations of other descriptions, and sets of individuals. Descriptions can also be the range, required, and value pieces of the slot constructor. Finally, descriptions can required at least, at most, and exactly a particular number of values for a property. **/ Description ::= super | Slot | DefinedClassDesc DefinedClassDesc ::= | unionOf | intersectionOf | complementOf | oneOf /** **/ unionOf ::= "unionOf"( Class+ ) intersectionOf ::= "intersectionOf" (Class+) complementOf ::= "complementOf" (Class) oneOf ::= "oneOf" (Individual+) /** **/ localRange ::= "range" propertyID ( ClassOrDatatype ) required ::= "required" propertyID ( ClassOrDatatype ) /** In some places either a description or a datatype ID or a set of data values, all from the same datatype, is allowed. **/ ClassOrDatatype ::= Class | datatypeID | oneOfDataValue /** and finally **/ Class ::= "class" classID? ( (super|Slot)* | DefinedClassDesc )