The OWL Web Ontology Language is being designed by the W3C Web Ontology Working Group as a revision of the DAML+OIL web ontology language. This model-theoretic semantics for OWL serves to provide a formal meaning for OWL. This semantics uses the abstract syntax for OWL, as it is the easiest to work with, and thus the semantics here is easier to work with than semantics provided for other ways of looking at OWL. Semantics for the exchange syntax for OWL are provided by mapping back to the abstract syntax.
This semantics for OWL knowledge bases uses the abstract syntax used in the abstract syntax document. Semantics are given for the XML presentation syntax and to the RDF exchange syntax in the exchange syntax section.
The semantics here starts with the notion of a vocabulary, which can be thought of as the names that are of interest in a knowledge base. It is, however, not necessary that a vocabulary consist only of the names in a knowledge base.
An OWL vocabulary V is a set of expanded qualified names (which are meant to be equivalent to URI references). Each OWL vocabulary includes QNames for each of the XML Schema non-list built-in simple datatypes.
An OWL interpretation with vocabulary V is an extension of an RDFS interpretation of vocabulary V, a five-tuple of the form
I = <R, EXT, S, EC, ER> where R is a non-empty set of resources EXT : R -> 2 ^ (R x (R u D)) S : V -> R EC : V -> 2^R u 2^V ER : V -> 2^(RxR) u 2^(RxD)
EC and ER provide meaning for OWL class names and property names.
OWL interpretations have the following extra conditions:
EC is extended to various syntactic constructs that are parts of axioms and facts as follows:
EC(restriction(p range=r)) | {x in V | <x,y> in ER(p) -> y in EC(r)} |
EC(restriction(p required=e)) | {x in V | exists <x,y> in ER(p) with y in EC(e)} |
EC(restriction(p value=i)) | {x in V | <x,S(i)> in ER(p)} |
EC(restriction(p value=d,l)) | {x in V | <x,XMLS(d)(l)> in ER(p)} |
EC(restriction(p atleast(n))) | {x in V | exists atleast n <x,y> in ER(p)} |
EC(restriction(p atmost(n))) | {x in V | exists atmost n <x,y> in ER(p)} |
EC(restriction(p exactly(n))) | {x in V | exists exactly n <x,y> in ER(p)} |
EC(pv(p f)) | {x in V | exists y in EC(f) with <x,y> in ER(p)} |
EC(pv(p i)) | {x in V | <x,S(i)> in ER(p) } |
EC(pv(p d,l)) | {x in V | <x,XMLS(d)(l)> in ER(p) } |
EC(restriction(p x1 ... xn)) | EC(restriction(p x1))^...^EC(restriction(p xn)) |
EC(oneOf(i1 ... in)) | {S(i1), ..., S(in)} |
EC(unionOf(c1 ... cn)) | EC(c1) u ... u EC(cn)) |
EC(intersectionOf(c1 ... cn)) | EC(c1) ^...^ EC(cn)) |
EC(complementOf(c)) | R - EC(c) |
EC(Individual(c pv1 ... pvn)) | EC(p) ^ EC(pv(pv1)) ^...^ EC(pv(pvn)) |
EC(Individual(i c pv1 ... pvn)) | {S(i)} ^ EC(p) ^ EC(pv(pv1)) ^...^ EC(pv(pvn)) |
EC(oneOf(d1,l1 ... dn,ln)) | { XMLS(d1)(l1), ..., XMLS(dn)(ln) } |
An OWL interpretation, I, is an interpretation of OWL directives as follows:
An OWL interpretation, I, is an interpretation of an OWL ontology, O, iff I is an interpretation of each axiom and fact in the closure of O. An OWL ontology entails an OWL axiom or fact if each interpretation of the ontology is also an interpretation of the axiom or fact.
The basic idea for providing semantics for OWL documents written in the exchange syntax is to map the triples in the document back to the abstract syntax, if possible. If there is no mapping back to the abstract syntax, then the document does not have an OWL meaning.
The details of this mapping have yet to be worked out, and may involve an intermediate step of mapping into an XML presentation syntax for OWL.