06 Dec Rev'd 07 Dec CmpE 583 Fall 2006 OWL Lite 1 OWL Lite off Textbook Ch. 11: Encoding Atilla Elçi
06 Dec Rev'd 07 Dec CmpE 583 Fall 2006 OWL Lite 2 OWL Ontology File Structure Header: –XML Declaration & RDF Start Tag –Ontology Element Version Info Imports Element Body: –Class, property, and inidividual statements Footer: –RDF End Tag.
06 Dec Rev'd 07 Dec CmpE 583 Fall 2006 OWL Lite 3 OWL Header XML Declaration (?xml) & RDF Start Tag (rdf:RDF): Three kinds of namespace references are declared: 1.Standard: xmlns:ns=“URI”. Replace ns & URI with: XMLS: xsd & RDF: rdf & RDFS: rdfs & OWL: owl & 2.Imported namespace to use concepts or extend: xmlns:teach=“ Still required to include an “imports” element in the document! 3.Default / Base (current document) namespace: xmlns=“ xml:base=“
06 Dec Rev'd 07 Dec CmpE 583 Fall 2006 OWL Lite 4 OWL Header (Continued) Ontology Element (owl:Ontology): provides ontology level metadata on the ontology being defined. where “URI” is either: –“”: current document, or –“ontologyNameOrReference”: a fully resolved URI. For example: A Text as Label A text as comment Version properties may as well be included with the owl:Ontology Element: Version info
06 Dec Rev'd 07 Dec CmpE 583 Fall 2006 OWL Lite 5 OWL Header (Continued) Versioning Information Properties: owl:versionInfo element: include a string in the inner text or RCS/CVS keywords RCS/CVS (revision control/current versions) keywords, such as:revision control/current versions $Id: daml+oil.daml,v /01/18 15:40:52 timbl Exp $ owl:priorVersion: to relate current ontology to an earlier version owl:backwardCompatibleWith: same format as owl:priorInfo owl:incompatibleWith: ditto. owl:DeprecatedClass: identifies a class that is to be removed owl:DeprecatedProperty: identifies a property... The last two elements are placed not in the owl:Ontology element! Format is:...</owl:Depre...
06 Dec Rev'd 07 Dec CmpE 583 Fall 2006 OWL Lite 6 OWL Header (Continued) Importing Ontologies (owl:imports): used in order to reference and extend an external ontology. Contrasting Namespace Declaration & Imports: Namespace decl identifies a prefix abbreviation, owl:imports does not! So, include a namespace declaration for an imported ontology as well. Importing has similar effect as inhereting a class, say in Java.
06 Dec Rev'd 07 Dec CmpE 583 Fall 2006 OWL Lite 7 OWL Body & Footer Body: –Contains class and property statements. –Order (sequence) is NOT meaningful! –So, forward references are OK. Footer: