Semantic Web
Semantic Web
Riccardo Rosati
Corso di Laurea Magistrale in Ingegneria Informatica
Sapienza Universit di Roma
2012/2013
Overview
Lecture 1: Introduction to the Semantic Web
Lecture 2: The RDF layer 1
RDF
Overview
Lecture 6: The Ontology layer 1
Ontologies, Description Logics, OWL
Part 1
Introduction to the Semantic Web
XML: example
HTML:
<H1>Seminari di Ingegneria del Software</H1>
<UL>
<LI>Teacher: Giuseppe De Giacomo
<LI>Room: 7
<LI>Prerequisites: none
</UL>
XML:
<course>
<title>Seminari di Ingegneria del Software
</title>
<teacher>Giuseppe De Giacomo</teacher>
<room>1AI, 1I</room>
<prereq>none</prereq>
</course>
Introduction to the Semantic Web
Limitations of XML
XML does not solve all the problems:
legacy HTML documents
different XML documents may express
information with the same meaning using different
tags
10
11
12
13
14
W3C standards
15
16
http://www.w3.org/TR/REC-rdf-syntax/
dc:Creator
dc:Date
Ora Lassila
1999-02-22
17
subClassOf
RDFS
Student
domain
range
hasSupervisor
type
RDF
Frank
hasSupervisor
Introduction to the Semantic Web
Researcher
type
Jeen
18
19
20
21
22
DB view:
ontology = conceptual model
Introduction to the Semantic Web
23
Ontologies: example
class-def animal
% animals are a class
class-def plant
% plants are a class
subclass-of NOT animal
% that is disjoint from animals
class-def tree
subclass-of plant
% trees are a type of plants
class-def branch
slot-constraint is-part-of
% branches are parts of some tree
has-value tree
max-cardinality 1
class-def defined carnivore
% carnivores are animals
subclass-of animal
slot-constraint eats
% that eat any other animals
value-type animal
% herbivores are animals
class-def defined herbivore
subclass-of animal, NOT carnivore % that are not carnivores, and
slot-constraint eats
% they eat plants or parts of plants
value-type plant OR (slot-constraint is-part-of has-value plant)
Introduction to the Semantic Web
24
25
26
27
Rule-based formalisms
Prolog
Logic programming
Constraint (logic) programming
Production rules
Datalog
...
28
Linking Open Data cloud diagram, 09/2011 (by Richard Cyganiak and Anja Jentzsch. http://lod-cloud.net/)
Introduction to the Semantic Web
29
Linked Data
Linked Data: a recommended best practice for exposing, sharing,
and connecting pieces of data, information, and knowledge on the
Semantic Web using URIs and RDF
Linking Open Data (LOD): The goal of the W3C SWEO
Linking Open Data community project is to extend the Web with
a data commons by publishing various open data sets as RDF
on the Web and by setting RDF links between data items from
different data sources.
RDF links enable you to navigate from a data item within one data
source to related data items within other sources using a Semantic
Web browser.
As query results are structured data and not just links to HTML
pages, they can be used within other applications.
Introduction to the Semantic Web
30
9/2008
9/2009
9/ 2010
31