Introduction To The Semantic Web
Introduction To The Semantic Web
Payam Barnaghi
Currently most of the Web content is suitable The Web search results are high recall,
for human use. low precision.
Typical uses of the Web today are information Results are highly sensitive to vocabulary.
seeking, publishing, and using, searching for
people and products, shopping, reviewing Results are single Web pages.
catalogues, etc. Most of the publishing contents are not
Dynamic pages generated based on information structured to allow logical reasoning and
from databases but without original information query answering.
structure found in databases.
3 4
[Miller 04]
5 6
1
What is a Web of Data? The Syntactic Web
(continued)
Now
2
Machine-accessible Content Distinguishing the meaning
The main obstacle to provide better It is simply difficult for machines to
support to Web users is that, at present , distinguish the meaning of:
the meaning of Web content is not
I am a philosopher.
machine accessible.
Although there are tools to retrieve from
texts, but when it comes to interpreting I am a philosopher, you may think.
sentence and extracting useful Well,…
information for the user, the capabilities
of current software are still very limited.
13 14
3
XML: Document = labeled tree But What about this?
node = label + contents
<module date=“...”>
<title>...</title> module < name
ναµε >
<lecturer>
<name>...</name> title lecturer students
= <εδυχατιον
<εδυχατιον>
education>
εδυχατιον
<weblink>...</weblink>
</lecturer> name weblink
<students>...</students> < CV
Χς >
</module> <ωορκ
<ωορκ>
work>
ωορκ
[Davies, 03]
19 20
XML:
XML limitations for semantic markup
Meaning of XML-Documents is intuitively clear
due to "semantic" Mark-Up XML representation makes no commitment on:
tags are domain-terms Domain specific ontological vocabulary
But, computers do not have intuition Which words shall we use to describe a given set of concepts?
tag-names do not provide semantics for machines. Ontological modelling primitives
How can we combine these concepts, e.g. “car is a-kind-of (subclass-
of) vehicle”
DTDs or XML Schema specify the structure of
documents, not the meaning of the document contents requires pre-arranged agreement on vocabulary and
primitives
XML lacks a semantic model Only feasible for closed collaboration
has only a "surface model”, i.e. tree agents in a small & stable community
pages on a small & stable intranet
.. not for sharable Web-resources
[Davies, 03]
21 22
Resource Description
XML is a first step
Framework (RDF)
Semantic markup A standard of W3C
HTML layout Relationships between documents
XML content Consisting of triples or sentences:
<subject, property, object>
Metadata
<“Mozart”, composed, “The Magic Flute” >
within documents, not across documents
RDFS extends RDF with standard “ontology
prescriptive, not descriptive vocabulary”:
No commitment on vocabulary and modelling Class, Property
primitives Type, subClassOf
RDF is the next step domain, range
[Davies, 03]
23 24
4
RDF for semantic annotation RDF: Basic Ideas
RDF provides metadata about Web resources
Resources
Object -> Attribute-> Value triples
Every resource has a URI (Universal Resource
It has an XML syntax Identifier)
Chained triples form a graph A URI can be a URL (a web address) or a some other
http://sepang.nottingham.edu.my/~bpayam/images/payam-barnaghi.png kind of identifier;
has_image An identifier does not necessarily enable access to a
http://sepang.nottingham.edu.my/~bpayam/#Payam resources
UNiM #Payam
has_email payam@nottingh We can think of a resources as an object that we
am
want to describe it.
has_owner has_teaching Books
<rdf:Description rdf:about=“#Payam”>
Person
http://www.nottingham.edu.my/CSIT/G53ELC <has_email>payam@nottingham</has_email> Places, etc.
</rdf:Description>
25 26
27 28
29 Source: http://www.w3.org/TR/swbp-skos-core-guide/ 30
5
RDF Schema: Basic Ideas What does RDF Schema add?
• Defines vocabulary for RDF
RDF is a universal language that enables • Organizes this vocabulary in a typed hierarchy
users to describe their own vocabularies. • Class, subClassOf, type
But, RDF does not make assumption about • Property, subPropertyOf
any particular domain. • domain, range
Staff
It is up to user to define this in RDF subClassOf
subClassOf
Schema(RDFS)
schema. Lecturer
domain
supervisedBy
range
Research Assistant
type type
supervisedBy
Tom Alan Data(RDF)
33 34
[Davies, 03]
35 36
6
Ontologies Ontologies and Semantic Web
The term ontology is originated from In general, an ontology describes formally a
domain of discourse.
philosophy. In that context it is used as
An ontology consists of a finite list of terms and
the name of a subfield of philosophy, the relationships between the terms.
namely, the study of the nature of The terms denote important concepts classes of
existence. objects) of the domain.
For the Semantic Web purpose: For example, in a university setting, staff
members, students, courses, modules, lecture
“An ontology is an explicit and formal
theatres, and schools are some important
specification of a conceptualisation”. concepts.
(R. Studer)
37 38
39 40
7
Ontology Languages for the Web OWL Language
OWL is based on Description Logics knowledge representation
formalism
RDF Schema is a vocabulary description OWL (DL) benefits from many years of DL research:
language for describing properties and Well defined semantics
classes of RDF resources, with a Formal properties well understood (complexity, decidability)
Known reasoning algorithms
semantics for generalization hierarchies
[Davies, 03]
43 44
source: Introduction to the Semantic Web, Ivan Herman, W3C source: Introduction to the Semantic Web, Ivan Herman, W3C
45 46
47 48
8
Logic and Inference An Inference Example
Logic is the discipline that studies the
principles of reasoning prof(X) → faculty(X)
Formal languages for expressing knowledge faculty(X) → staff(X)
Well-understood formal semantics prof(michael)
Declarative knowledge: we describe what holds We can deduce the following conclusions:
without caring about how it can be deduced
Automated reasoners can deduce (infer) faculty(michael)
conclusions from the given knowledge staff(michael)
prof(X) → staff(X)
source: A Semantic Web Primer, Grigoris Antoniou and Frank van Harmelen, MIT Press source: A Semantic Web Primer, Grigoris Antoniou and Frank van Harmelen, MIT Press
49 50
51 52
53
9
Web Services Web Services
Web Services provide data and services to other loosely coupled, reusable components
applications.
encapsulate discrete functionality
Thee applications access Web Services via
standard Web Formats (HTTP, HTML, XML, and distributed
SOAP), with no need to know how the Web
Service itself is implemented. programmatically accessible over
You can imagine a web service like a remote standard internet protocols
procedure call (RPC) which it returns a add new level of functionality on top of
message in an XML format. the current web
[Stollberg et al., 05]
55 56
57 58
59 60
10
Acknowledgements Suggested Readings
Some of the slides are adapted from the following resources: A Semantic Web Primer, Grigoris Antoniou and Frank
Semantic Web, John Davies, Next Generation Web Research, BT.
van Harmelen, ISBN 0-262-01210-3, 2004, the MIT
A Short Semantic Web Tutorial, Andreas Hotho & York Sure,
Knowledge Management Group, Institute AIFB, University of Karlsruhe.
press.
Semantic Web and Ontology Management, Rudi Studer, York Sure, W3C Semantic Web
Christoph Tempich, Peter Haase,Institute AIFB, University of
Karlsruhe.
http://www.w3.org/2001/sw/
A Semantic Web Primer, Grigoris Antoniou and Frank van Harmelen, The Semantic Web Community Portal,
ISBN 0-262-01210-3, 2004, the MIT press. http://www.semanticweb.org
The Semantic Web: A Web of Machine Processible Data, Eric Miller,
W3C Semantic Web Activity Lead, 2004.
Stollberg et al, Semantic Web Services Tutorial, 5th International
Conference on Web Engineering (ICWE 2005), Sydney, Australia.
Introduction to the Semantic Web, Ivan Herman, W3C, 2007.
61 62
11