0% found this document useful (0 votes)
58 views51 pages

Introduction To The Semantic Web: Tomasz Pluskiewicz PGS Software

The document provides an introduction to the Semantic Web. It defines the Semantic Web as a set of practices and standards that allow machines to understand data to enable easier sharing and mixing of data. It discusses how the Semantic Web represents data using URIs and RDF triples, and adds meaning using ontologies. It also covers storing and publishing semantic data in triplestores, relational databases, and via standards like RDFa, Microformats and Microdata.

Uploaded by

Jimesh Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views51 pages

Introduction To The Semantic Web: Tomasz Pluskiewicz PGS Software

The document provides an introduction to the Semantic Web. It defines the Semantic Web as a set of practices and standards that allow machines to understand data to enable easier sharing and mixing of data. It discusses how the Semantic Web represents data using URIs and RDF triples, and adds meaning using ontologies. It also covers storing and publishing semantic data in triplestores, relational databases, and via standards like RDFa, Microformats and Microdata.

Uploaded by

Jimesh Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 51

Introduction to the Semantic Web 1

INTRODUCTION TO THE
SEMANTIC WEB
2012-11-28 Tomasz Pluskiewicz PGS Software
Agenda
2

What is the Semantic Web?


What is data in the Semantic Web?
Storing and publishing semantic data
Querying the Semantic Web
What is there for developers?
How does the Semantic Web compare?
So who actually does the Semantic Web?

Introduction to the Semantic Web 2012-11-28


3 What is the Semantic Web?

Introduction to the Semantic Web 2012-11-28


What is the Semantic Web?
4

Semantics = meaning (from Greek)


Set of practices and standards
Synonymous or related to:
Web of data
Linked data (cloud)

Giant Global Graph (GGG)

Web 3.0

Open Data

Big Data

Introduction to the Semantic Web 2012-11-28


So what is it about?
5

Allowing machines to understand data


Ease sharing and mixing data
Extend the World Wide Web rather than replace it

Introduction to the Semantic Web 2012-11-28


Little bit of history
6

1969: paper Semantic Information Processing by


Ross Quillial
1980s: CYC and WordNet
mid- to late 1990s: Tim Berners-Lee coins the term
Semantic Web
Today: dbpedia: 1.2m triples

Introduction to the Semantic Web 2012-11-28


Semantic Web building blocks
7
8 The basics of semantic data
Representation

Introduction to the Semantic Web 2012-11-28


Its all about resources
9
Its all about resources
10

Extensive use of URIs (and most often URLs)


(Almost) everyting is a URI

Example URIs:
http://infusion.com/people/tpluskiewicz

urn:isbn:1898432023

http://xmlns.com/foaf/0.1/firstName

Introduction to the Semantic Web 2012-11-28


Its all findable about resources
11

Identifier URI (URL?)


Representation HTML, RDF
Resource itself Described object

Identifier URI should be different than the representation URI

Identifiers should not change

Introduction to the Semantic Web 2012-11-28


Cool URIs
12

Resource and representation have different URIs


Hash URIs
http://www.example.com/about#alice

http://www.example.com/about.html

Normal URIs
http://www.example.com/id/bob

http://www.example.com/people/bob.html

Introduction to the Semantic Web 2012-11-28


Representing the data
13
Resource Description Format
14

Facts and relations organized in triples


Triples mimic natural language sentences
Graphical representation is a directed graph

My name is Tomasz Pluskiewicz.


My age is 26.
I work for PGS Software.

Introduction to the Semantic Web 2012-11-28


Resource Description Framework
15

ex:PGS-
Software 26

ex:tpluskiewicz

foaf:fullName

Tomasz
Pluskiewicz

Introduction to the Semantic Web 2012-11-28


Serializing RDF triples
16

Format MIME type

RDF/XML (.rdf) application/rdf+xml


Notation3 (.n3) text/n3
N-Triples (.nt) text/plain
Turtle (.ttl) text/turtle
JSON-LD
TriG (.trig)
TriX (.trix)

Introduction to the Semantic Web 2012-11-28


RDF/XML vs Turtle
17

RDF/XML Turtle

Difficult to author Simple


Verbose Concise
No cannonical Has means of further
serialization compressing content

Introduction to the Semantic Web 2012-11-28


There can be multiple graphs
18

Sets of triples form graphs


Graphs can be named with a URI
Named graph are also resources, hence there can
be triples describing those graphs

Introduction to the Semantic Web 2012-11-28


19 The basics of semantic data
Adding meaning

Introduction to the Semantic Web 2012-11-28


Representing the data
20
Basics of RDF(S) resources
21

classes properties

rdfs:Resource rdf:type
rdfs:Class rdfs:label
rdfs:Property rdfs:subClassOf
rdfs:Datatype rdfs:subPropertyOf
rdfs:Literal rdfs:range
rdfs:domain

Introduction to the Semantic Web 2012-11-28


Web Ontology Language
22

OWL: Lite, DL and Full


OWL 2: EL, QL and RL
Defining constraints
Enables defining complex rules
Uses specialized syntaxes
Base terms: owl:Thing, owl:Nothing,
owl:DatatypeProperty, owl:ObjectProperty,
owl:sameAs

Introduction to the Semantic Web 2012-11-28


Common ontologies
23

Friend of a Friend Geonames


Dublin Core BIBO
SIOC
SKOS

UMBEL
Suggested Upper Merged Ontology

Introduction to the Semantic Web 2012-11-28


Specialized ontologies
24

Gene Ontology
GOLD (General O. for Linguistic Description)
Foundational Model of Anatomy
GoodRelations
Lexvo

Introduction to the Semantic Web 2012-11-28


26 Storing and publishing

Introduction to the Semantic Web 2012-11-28


Storing in relational databases
27

Mapping tables to triples:


D2RQ

R2RML

Ultrawrap

Using RDBMS with RDF built-in capabilities


Oracle 11g
Virtuoso

Jena SDB

IBM DB2

Introduction to the Semantic Web 2012-11-28


Native triplestores
28

Using native triple (quad) stores


Virtuoso

AllegroGraph

BigOWLIM

Jena TDB
4store

Stardog

Dydra

Introduction to the Semantic Web 2012-11-28


Publishing data easily
29

Embedding semantic markup in HTML


Microformats
Microdata
RDFa

Directly publishing RDF documents

http://manu.sporny.org/2011/uber-comparison-rdfa-md-uf/

Introduction to the Semantic Web 2012-11-28


Microformats example
30
<ul> <ul class="vcard">
<li> <li class="vcard">
Joe Doe</li> Joe Doe</li>
<li> <li class="org">
The Example Company The Example Company
</li> </li>
<li> <li class="tel">
604-555-1234</li> 604-555-1234</li>
<li> <li>
<a> <a class="url">
Website</a> Website</a>
</li> </li>
</ul> </ul>

Introduction to the Semantic Web 2012-11-28


Microdata example
31
<section itemscope itemtype="http://data-vocabulary.org/Person">
Hello, my name is <span itemprop="name">John Doe</span>,
I am a <span itemprop="title">graduate research assistant</span>
at the <span itemprop="affiliation">University of Dreams</span>.
My friends call me <span itemprop="nickname">Johnny</span>.
You can visit my homepage at
<a href="http://www.JohnnyD.com" itemprop="url">www.JohnnyD.com</a>.
<section itemprop="address" itemscope
itemtype="http://data-vocabulary.org/Address">
I live at <span itemprop="street-address">1234 Peach Drive</span>
<span itemprop="locality">Warner Robins</span> ,
<span itemprop="region">Georgia</span>.
</section>
</section>

Introduction to the Semantic Web 2012-11-28


RDFa example
32
<p xmlns:dc="http://purl.org/dc/elements/1.1/"
about="http://www.example.com/books/wikinomics">
In his latest book
<cite property="dc:title">Wikinomics</cite>,
<span property="dc:creator">Don Tapscott</span>
explains deep changes in technology, demographics and business. The
book is due to be published in
<span property="dc:date" content="2006-10-01">October
2006</span>.
</p>

Introduction to the Semantic Web 2012-11-28


Querying the Semantic Web
33
Publishing queryable data
34

SPARQL Protocol and RDF Query Language


Remote queries through SPARQL Endpoints
SPARQL 1.1 features:
ASK, SELECT, DESCRIBE, CONSTRUCT
Aggregates

Federated queries

Extensibilty, XPath, subqueries

SPARQL Update

Introduction to the Semantic Web 2012-11-28


SPARQL Examples
35

Introduction to the Semantic Web 2012-11-28


SPARQL + rules = SPIN
36

SPARQL Inferencing
Developed by TopQuadrant
Components of SPIN:
Represent SPARQL queries as RDF triples
Allow modularizing queries with spin:Function and
spin:Template
spin:MagicProperty

ASK to create constraints

CONSTRUCT to create rules

Introduction to the Semantic Web 2012-11-28


Constraints and rules
37

Introduction to the Semantic Web 2012-11-28


Functions and templates
38

Introduction to the Semantic Web 2012-11-28


What is there for developers?

Programming tools Design tools and frameworks

dotNetRDF (Web)Protg
Jena/ARQ TopBraid Composer
Rdflib NeOn
RDF.rb OntoWiki
EasyRdf
Semantic MediaWiki
Rdfquery
Cubic Web
Redland
40 Semantic Web vs X

Introduction to the Semantic Web 2012-11-28


Semantic Web vs XML
41

Semantic Web (RDF) XML

Data representation Data serialization (syntax)


(model) Tree
Graph xsd and XPath
xsd and XPath DTD or XML schema
Schema defined with RDFS
or OWL
No built-in identifiers
URI identifiers

Introduction to the Semantic Web 2012-11-28


Semantic Web vs REST
42

Semantic Web REST

URIs identify resources Resource Identification


HTTP encouraged to allow Uniform Interface
dereferencing
Uniform RDF messages Self-Describing Messages
Hypermedia Driving
Resources are linked Application State
(triples) Stateless Interactions
Application specific

Introduction to the Semantic Web 2012-11-28


Semantic Web vs RDBMS
43

Semantic Web Relational databases

SPARQL SQL
Felxible and extensible Schema must be defined
schema first and is rather rigid
Easy data distribution Painful replication
Depends on vendor ACID Transactions
Easier process BI Strict ETL
Open World Closed World

Introduction to the Semantic Web 2012-11-28


Semantic Web vs NoSQL
44

Semantic Web NoSQL

SPARQL Various APIs


Graph Graph, doc, key-value
Schemaless Schemaless
Named graphs Documents (doc DBs)
Built on standards and Tackle specific problems
interoperability (latency, scale, perf.)
Can seem scientific and Designed for easy
complicated adoption

Introduction to the Semantic Web 2012-11-28


46 Is it happening?
Who actually does the Semantic Web?

Introduction to the Semantic Web 2012-11-28


Linked data and open data
Dbpedia datahub.io
Freebase lod.openlinksw.com
Geonames data.gov
Social data data.gov.uk
Media datadotgc.ca
Government data openlibrary.org
Publications bnb.data.bl.uk
Many many other
http://richard.cyganiak.de/2007/10/lod/lod-datasets_2011-09-19_colored.html
Introduction to the Semantic Web 2012-11-28
Who does the Semantic Web?
48

IBM Oracle

IBM DB2 Oracle 11g


Open Services Triplestore

Lifecycle Collaboration Reasoner

Linked Data Platform

Introduction to the Semantic Web 2012-11-28


Who does the Semantic Web?
49

Google Facebook

Webmaster tools Open Graph Protocol


Knowledge graph
Freebase
RDFa/Microdata (also
Yahoo)

Introduction to the Semantic Web 2012-11-28


Who does the Semantic Web?
50

Government/public data Academic work

Thousands of datasets Gene research


Some offered in RDF
Linked by Linking Open Language processing
Government Data project Semantic MediaWiki
(200 datasets)

Open Government
Partnership (50+ countries)

Introduction to the Semantic Web 2012-11-28


Where to learn in person?
51

Semantic Technology & Business Conference


Berlin, London, New York, San Francisco
European Semantic Web Symposium
International Semantic Web Conference
International World Wide Web Conference
International Conference on Semantic Web and
Web Services
Semantic Web Applications and Tools for Life
Sciences

Introduction to the Semantic Web 2012-11-28


Some interesting links...
52
http://semanticweb.com/
http://patterns.dataincubator.org/book/
http://www.w3.org/standards/semanticweb/
http://spinrdf.org
Wikipedia
http://semanticweb.com/breaking-into-the-nosql-conversation_b27146
http://gigaom.com/2012/03/11/is-big-data-new-or-have-we-forgotten-its-old-
heroes/
http://www.snee.com/bobdc.blog/2012/10/sparql-and-big-data-and-nosql.html
http://dret.net/netdret/docs/soa-rest-www2009/rest
http://www.mkbergman.com/
http://www.cambridgesemantics.com/semantic-university

Introduction to the Semantic Web 2012-11-28


...and some books
53
David Wood, Linked Data, Manning
Bob DuCharme, Learning SPARQL, OReilly
Toby Segaran, Programming the Semantic Web, OReilly
John Hebeler, Semantic Web Programming, Wiley
David Siegel, Pull: The Power of the Semantic Web to Transform Your Business,
Portfolio

Introduction to the Semantic Web 2012-11-28

You might also like