Professional Documents
Culture Documents
Contents
Definition of ontology
A quick survey to famous ontology languages
Graphical
Logic based
XML
XSLT, XSL:FO
RDF
Ontology
An ontology is a hierarchically structured set of terms for
describing a domain that can be used as a skeletal foundation
for a knowledge base. (Swartout, Patil, Knight, Russ)
An ontology provides the means for describing explicitly the
conceptualization behind the knowledge represented in a
knowledge base. (Bernaras, Lasergoiti, Correra)
An ontology is a formal, explicit specification of a shared
conceptualization (Studer, Benjamins,Fensel)
Relational Data
Data Exchange
?
?
Ontology Languages
Ontology Languages
Ontology Languages
Ontology Languages
Ontology Languages
Ontology Languages
Ontology Languages
Wide variety of languages for Explicit Specification
Logic based
Conceptual graphs
(Syntactically) higher order logics (e.g., LBase)
Non-classical logics (e.g., Flogic, Non-Mon, modalities)
Bayesian/probabilistic/fuzzy
Types/Classes/Concepts
Sets of objects sharing certain characteristics
Equivalent to unary predicates in FOL
Relations/Properties/Roles
Sets of pairs (tuples) of objects
Equivalent to binary predicates in FOL
Well understood
Formally specified
(Relatively) easy to use
Amenable to machine processing
XML
Unformal definition:
XML
Processing
Parsing
SAX: uses callback to notify occurences of each
element(e.g. StartDocument(), startElement(),
endDocument(), etc.)
DOM: Makes and object model of the document in memory
Remote procedure call: XML-RPC
SOAP (web serices)
Namespaces in XML
Namespaces avoids name conflicts
same tag for different things
same tag for different format
Example:
Document 1: <person>Tim Berners Lee</person>
Document 2: <person>Tim Berners Lee</person>
Second try
<www.w3c.org:person>
Tim Berners Lee
</www.w3c.org:person>
Final solution
<foo xmlns:doc=www.w3c.org>
<doc:person> Tim Berners Lee </doc:person>
Namespace example
<html:html xmlns:html=... xmlns:math=...>
<html:title> George Soros </html:title>
<html:h2> Counting ... </html:h2>
<math:reln>
.....
</math:reln>
</html:html>
XML Schema
XSL consist of
XSL
formatting objects
XSL Transformations (XSLT)
Terminology
Template rules consists of:
pattern
template
XML Example
<book>
<title> chicken soup </title>
<section>
<title> Introduction </title>
<para> Ive always.. <para>
</section >
</book>
book
section
title
title
para
Formatting objects
Formatting represents common document elements
Example
block
external-graphic
table
simple-link
SMIL
SMIL
SMIL
Introduction
About XML
XML Schema
XML
Namespaces
XSLT
Future
SMIL
<smil>
<head> </head>
<body>
<par>
<audio src="sound.rm"/>
<seq>
<textstream src="tobbe2.rt" region="videoregion"/>
<par>
<textstream src="tobbe.rt" region="textregion"/>
<video src="tobias.rm" region="videoregion"/>
</par>
</seq>
</par>
</body>
</smil>
hasColleague
StanfordU
URIs
URI = Uniform Resource Identifier
"The generic set of all names/addresses that are short
strings that refer to resources"
URLs (Uniform Resource Locators) are a particular type of
URI, used for resources that can be accessed on the WWW
(e.g., web pages)
In RDF, URIs typically look like normal URLs, often with
fragment identifiers to point at specific parts of a
document:
http://www.somedomain.com/some/path/to/file#fragmentID
Linking Statements
The subject of one statement can be the object of another
Such collections of statements form a directed, labeled
graph
hasColleague
Knuth
hasColleague
Carole
STU
hasHomePage
http://www.stanford.edu
RDF Syntax
Rdf type
Rdf containers
Bag example
RDF reification
association of a statement and a specific resource
representing the statement
used to make statements about statements
Vocabulary:
type rdf:Statement
properties
rdf:subject
rdf:predicate
rdf:object
Reification example
The member of project opposed the statement that
http://www.daml.org/projects/#11 is an NSF founded
project
RDF graphs
RDFS Examples
RDF Schema terms (just a few examples):
Class
Property
type
subClassOf
range
domain
Inferences:
Yangtze is ariver
Yangtze has a length of 6300 Kilometers
Cardinality constraints:
Ocean has one maxDepth
RDF/RDFS Liberality
No distinction between classes and instances (individuals)
<Species,type,Class>
<Lion,type,Species>
<Leo,type,Lion>
RDF(S) tools
Read RDF data
Parsers: Jena, Redland, SWI-Prolog
Validators: W3C RDF validation service
Editors: IsaViz, RDF Author, RDFEd, InferEd
Formally specified
Of adequate expressive power
Possible to provide automated reasoning support
OWL Language
Three species of OWL
OWL full is union of OWL syntax and RDF
OWL DL restricted to FOL fragment ( DAML+OIL)
OWL Lite is easier to implement subset of OWL DL
Semantic layering
OWL DL OWL full within DL fragment
DL semantics officially definitive
Relational Data
Data Exchange
?
?