The OWL family of languages supports a variety of syntaxes. It is useful to distinguish
high level syntaxes aimed at specification from
exchange syntaxes more suitable for general use.
High level These are close to the ontology structure of languages in the OWL family.
OWL abstract syntax High level syntax is used to specify the OWL ontology structure and semantics. The OWL abstract syntax presents an ontology as a sequence of
annotations,
axioms and
facts. Annotations carry machine and human oriented meta-data. Information about the classes, properties and individuals that compose the ontology is contained in axioms and facts only. Each class, property and individual is either
anonymous or identified by an
URI reference. Facts state data either about an individual or about a pair of individual identifiers (that the objects identified are distinct or the same). Axioms specify the characteristics of classes and properties. This style is similar to
frame languages, and quite dissimilar to well known syntaxes for
DLs and
Resource Description Framework (RDF).
OWL2 functional syntax This syntax closely follows the structure of an OWL2 ontology. It is used by OWL2 to specify semantics, mappings to exchange syntaxes and profiles.
Exchange syntaxes RDF syntaxes Syntactic mappings into
RDF are specified for languages in the OWL family. Several RDF
serialization formats have been devised. Each leads to a syntax for languages in the OWL family through this mapping. RDF/XML is normative.
Manchester Syntax The Manchester Syntax is a compact, human readable syntax with a style close to frame languages. Variations are available for OWL and OWL2. Not all OWL and OWL2 ontologies can be expressed in this syntax.
Examples • The W3C OWL 2 Web Ontology Language provides syntax examples.
Tea ontology Consider an ontology for tea based on a Tea class. First, an ontology identifier is needed. Every OWL ontology must be identified by a
URI (http://www.example.org/tea.owl, say). This example provides a sense of the syntax. To save space below, preambles and prefix definitions have been skipped. ;OWL2 Functional Syntax: Ontology( Declaration( Class( :Tea ) ) ) ;OWL2 XML Syntax: ;Manchester Syntax: Ontology: Class: Tea ;RDF/XML syntax: ;RDF/
Turtle: rdf:type owl:Ontology . :Tea rdf:type owl:Class . ==Semantics==