introduction to semantic web & semantics for data and services payam barnaghi centre for...

89
Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical Sciences University of Surrey April 2009

Upload: bartholomew-spencer

Post on 13-Jan-2016

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Introduction to Semantic Web &

Semantics for Data and Services

Payam BarnaghiCentre for Communication Systems Research Faculty of Engineering and Physical Sciences

University of SurreyApril 2009

Page 2: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

2

The Semantic Web

“The Semantic Web is an extension of the current web in which information is given well-defined meaning, better enabling computers and people to work in co-operation.“

[Berners-Lee et al, 2001]

Page 3: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

3

Today’s Web

Currently most of the Web content is suitable for human use.

Typical uses of the Web today are information seeking, publishing, and using, searching for people and products, shopping, reviewing catalogues, etc.

Dynamic pages generated based on information from databases but without original information structure found in databases.

Page 4: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

4

Today’s Web

Page 5: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

5

Limitations of the Web Search today

The Web search results are high recall, low precision.

Results are highly sensitive to vocabulary.

Results are single Web pages. Most of the publishing contents are not

structured to allow logical reasoning and query answering.

Page 6: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

6

What is a Web of Data?

Thinking back a bit... 1994

HTML and URIs

Markup language and means for connecting resources

Below the file level

Stopped at the text level

[Miller 04]

Page 7: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

7

What is a Web of Data?(continued)

Now

XML, RDF, OWL and URIs

Markup language and means for connecting resources

Below the file level

Below the text level

At the data level

[Miller 04]

Page 8: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

8

The Syntactic Web

[Hendler & Miller 02]

Page 9: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

9

What is the Problem?

Consider a typical web page:

Markup consists of: rendering information

(e.g., font size and colour)

Hyper-links to related content

Semantic content is accessible to humans but not (easily) to computers…

[Davies, 03]

Page 10: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

What is the Problem?

Page 11: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

11

i.e. the Syntactic Web is…

A place where computers do the presentation (easy) and people do the linking and interpreting (hard).

Why not get computers to do more of the hard work?

[Goble, 03]

Page 12: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

12

Web 2.0

It is all about people, collaboration, media, ...

[The mind-map pictured above constructed by Markus Angermeier, source Wikipedia]

Page 13: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

13

Web 2.0 and Folksonomies

[http://flickr.com/photos/tags/]

Page 14: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

14

Machine-accessible Content

The main obstacle to provide better support to Web users is that, at present , the meaning of Web content is not machine accessible.

Although there are tools to retrieve texts, but when it comes to interpreting sentence and extracting useful information for the user, the capabilities of current software are still very limited.

Page 15: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

15

Distinguishing the meaning

It is simply difficult for machines to distinguish the meaning of:

I am a philosopher.from

I am a philosopher, you may think. Well,…

Page 16: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

16

…Limitations of the Web today

The Web activities are mostly focus on Machine-to-Human,and Machine-to-Machine activities are not particularly well supported by software tools.

[Davies, 03]

Page 17: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

17

How Can the Current Situation be Improved?

An alternative approach is to represent Web content in a form that is more easily machine-interpretable and to use intelligent techniques to take advantage of these presentations.

Page 18: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

18

Machine Accessible Meaning

CV

name

education

work

private

[Davies, 03]

Review

Page 19: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

19

XML

<H1>Internet and World Wide Web</H1><UL>

<LI>Code: G52IWW<LI>Students: Undergraduate

</UL>

<H1>Internet and World Wide Web</H1><UL>

<LI>Code: G52IWW<LI>Students: Undergraduate

</UL>

HTML:

<module><title>Internet and World Wide Web</title><code>G52IWW</code><students>Undergraduate</students>

</module>

<module><title>Internet and World Wide Web</title><code>G52IWW</code><students>Undergraduate</students>

</module>

XML:

User definable and domain specific markup

Review

Page 20: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

20

XML: Document = labeled tree

module

lecturertitle students

name weblink

<module date=“...”><title>...</title><lecturer>

<name>...</name><weblink>...</

weblink></lecturer><students>...</students>

</module>

=

DTD: describe the grammar and structure of permissible XML trees

node = label + contents

Review

Page 21: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

21

But What about this?

CV

name

education

work

private

< >

< >

< >

< >

< >

< >

< >

<>

<>

<>

[Davies, 03]

Review

Page 22: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

22

XML

Meaning of XML-Documents is intuitively clear due to "semantic" Mark-Up tags are domain-terms

But, computers do not have intuition tag-names do not provide semantics for machines.

DTDs or XML Schema specify the structure of documents, not the meaning of the document contents

XML lacks a semantic model has only a "surface model”, i.e. tree

Review

Page 23: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

23

XML: limitations for semantic markup

XML representation makes no commitment on: Domain specific ontological vocabulary

Which words shall we use to describe a given set of concepts? Ontological modelling primitives

How can we combine these concepts, e.g. “car is a-kind-of (subclass-of) vehicle”

requires pre-arranged agreement on vocabulary and primitives

Only feasible for closed collaboration agents in a small & stable community pages on a small & stable intranet

.. not for sharable Web-resources

[Davies, 03]

Review

Page 24: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

24

XML is a first step

Semantic markup HTML layout XML content

Metadata within documents, not across documents prescriptive, not descriptive No commitment on vocabulary and modelling

primitives RDF is the next step

[Davies, 03]

Review

Page 25: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

25

Resource Description Framework (RDF) A standard of W3C Relationships between documents Consisting of triples or sentences:

<subject, property, object> <“Mozart”, composed, “The Magic Flute” >

RDFS extends RDF with standard “ontology vocabulary”: Class, Property Type, subClassOf domain, range

Review

Page 26: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

26

RDF for semantic annotation

RDF provides metadata about Web resources Object -> Attribute-> Value triples It has an XML syntax Chained triples form a graph

Review

Page 27: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

27

RDF: Basic Ideas

Resources Every resource has a URI (Universal Resource

Identifier) A URI can be a URL (a web address) or a some other

kind of identifier; An identifier does not necessarily enable access to

a resources We can think of a resources as an object that we

want to describe it. Books Person Places, etc.

Review

Page 28: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

28

RDF: Basic Ideas

Properties Properties are special kind of resources; Properties describe relations between

resources. For example: “written by”, “composed by”,

“title”, “topic”, etc. Properties in RDF are also identified by

URIs. This provides a global, unique naming

scheme.

Review

Page 29: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

29

RDF: Basic Ideas

Statements A statement is an object-attribute-value

triple. It consists of a resources, a property, and a

value.

http://mitpress.mit.edu/catalog/item/default.asp?ttype=2&tid=10140

publishedBy#MIT Press

Review

Page 30: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

30

RDF: ExampleReview

Page 31: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

31

RDF Schema: Basic Ideas

RDF is a universal language that enables users to describe their own vocabularies.

But, RDF does not make assumption about any particular domain.

It is up to user to define this in RDF schema.

Page 32: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

32

What does RDF Schema add?

• Defines vocabulary for RDF• Organizes this vocabulary in a typed

hierarchy• Class, subClassOf, type• Property, subPropertyOf• domain, range

AlanTom

Staff

Lecturer Research Assistant

subClassOfsubClassOf

type

supervisedBydomain range

type

supervisedBy

[adapted from: Studer et al, 04]

Schema(RDFS)

Data(RDF)

Page 33: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

33

Querying RDF data

Query Languages such as SPARQL, RQL. RDF is a directed, labeled graph data format for

representing information in the Web. Most forms of the query languages contain a

set of triple patterns. Triple patterns are like RDF triples except that

each of the subject, predicate and object may be a variable.

Page 34: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

34

Basic Queries

The example provided in SPARQL. Using select-from-where

SELECT specifies the number and order of retrieved data.

WHERE is used to navigate through the data model.

FILTER imposes constraints on possible solutions

Page 35: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Example: Querying FOAF Data

Source: Wikipedia

Page 36: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

36

Basic Queries: Example

PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name ?email WHERE {

?person a foaf:Person. ?person foaf:name ?name. ?person foaf:mbox ?email.

}

Page 37: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Basic Queries: Example

PREFIX foaf: <http://xmlns.com/foaf/0.1/> SELECT ?name ?emailWHERE { 

?x foaf:name ?name . ?x foaf:mbox ?mbox .    

FILTER regex(?name, "Smith") }

Page 38: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

38

Conclusions about RDF(S)

Next step up from plain XML: (small) ontological commitment to

modeling primitives possible to define vocabulary

However: no precisely described meaning no inference model

[Davies, 03]

Page 39: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

39

Ontologies

The term ontology is originated from philosophy. In that context it is used as the name of a subfield of philosophy, namely, the study of the nature of existence.

For the Semantic Web purpose: “An ontology is an explicit and formal

specification of a conceptualisation”. (R. Studer)

Page 40: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

40

Ontologies and Semantic Web

In general, an ontology describes formally a domain of discourse.

An ontology consists of a finite list of terms and the relationships between the terms.

The terms denote important concepts classes of objects) of the domain.

For example, in a university setting, staff members, students, courses, modules, lecture theatres, and schools are some important concepts.

Page 41: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

41

Ontologies and Semantic Web (cont’d)

In the context of the Web, ontologies provide a shared understanding of a domain.

Such a shared understanding is necessary to overcome the difference in terminology.

Ontologies are useful for improving accuracy of Web searches.

Web searches can exploit generalisation/specialisation information.

Page 42: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

42

OntologyF-Logic

similar

OntologyF-Logic

similar

PhD StudentDoktoral Student

Object

Person Topic Document

Tel

PhD StudentPhD Student

Semantics

knows described_in

writes

Affiliationdescribed_in is_about

knowsP writes D is_about T P T

DT T D

Rules

subTopicOf

• Major Paradigms: Logic Programming, Description Logic• Standards: RDF(S); OWL

ResearcherStudent

instance_of

is_a

is_a

is_a

Affiliation

Affiliation

John

ABC+1234567890

A Sample Ontology

[Studer et al, 04]

Page 43: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

43

PhD StudentPhD Student AssProfAssProf

AcademicStaffAcademicStaff

rdfs:subClassOfrdfs:subClassOf

cooperate_withcooperate_with

rdfs:rangerdfs:domainOntology

<swrc:AssProf rdf:ID="sst"> <swrc:name>Steffen Staab </swrc:name>...</swrc:AssProf>

http://www.aifb.uni-karlsruhe.de/WBS/sst

Anno- tation

<swrc:PhD_Student rdf:ID="sha"> <swrc:name>Siegfried Handschuh</swrc:name>

...</swrc:PhD_Student>

Web Page

http://www.aifb.uni-karlsruhe.de/WBS/shaURL

<swrc:cooperate_with rdf:resource = "http://www.aifb.uni-karlsruhe.de/WBS/sst#sst"/>

instance ofinstance of

Cooperate_with

Ontology & Annotation

Links have explicit meanings!

[Studer et al, 04]

Page 44: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

44

Ontologies (OWL)

RDFS is useful, but does not solve all possible requirements

Complex applications may want more possibilities: similarity and/or differences of terms (properties or

classes) construct classes, not just name them can a program reason about some terms? e.g.:

“if «Person» resources «A» and «B» have the same «foaf:email» property, then «A» and «B» are identical”

etc. This lead to the development of OWL (Web Ontology

Language)

source: Introduction to the Semantic Web, Ivan Herman, W3C

Page 45: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

45

Ontology Languages for the Web

RDF Schema is a vocabulary description language for describing properties and classes of RDF resources, with a semantics for generalization hierarchies of such properties and classes.

OWL is a richer vocabulary description language for describing properties and classes.

Page 46: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

46

OWL Language

OWL is based on Description Logics knowledge representation formalism

OWL (DL) benefits from many years of DL research: Well defined semantics Formal properties well understood (complexity,

decidability) Known reasoning algorithms Implemented systems (highly optimised)

Three species of OWL OWL full is union of OWL syntax and RDF OWL DL restricted to FOL fragment OWL Lite is “easier to implement” subset of OWL

DL [Davies, 03]

Page 47: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

47

Classes in OWL

In RDFS, you can subclass existing classes… that’s all.

In OWL, you can construct classes from existing ones: enumerate its content through intersection, union, complement through property restrictions

source: Introduction to the Semantic Web, Ivan Herman, W3C

Page 48: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

48

OWL classes can be “enumerated”

The OWL solution, where possible content is explicitly listed:

source: Introduction to the Semantic Web, Ivan Herman, W3C

Page 49: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

49

Why develop an ontology?

To make define web resources more precisely and make them more amenable to machine processing

To make domain assumptions explicit Easier to change domain assumptions Easier to understand and update legacy data

To separate domain knowledge from operational knowledge Re-use domain and operational knowledge separately

A community reference for applications To share a consistent understanding of what information

means

[Davies, 03]

Page 50: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

How toHow to develop an develop an ontologyontology

Ontology EngineeringOntology Engineering

Image source: http://lsdis.cs.uga.edu/.../report/Report2006.html

This section is adapted from Ontology Development, Methodologies for onntology engineering, Gabor Nagypal, in Semantic Web Services, R.Studer et al, Springer.

Page 51: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Ontology development

Development of an ontology in terms of complexity is similar to software design.

Knowing the notations is not enough. You also need to have a methodology.

There are different activities in designing an ontology: Management activities Development-oriented activities Support activities

Page 52: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Management Activities

Scheduling: identifying tasks to be performed, order of tasks, dependencies, time and resource allocation

Control: to guarantee that the task are performed in a way that is defined by the scheduling activity.

Quality Assurance: assures the quality of produced artefacts (in this case: ontology, documentation, and supporting software)

Page 53: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Development-oriented Activities

Pre-development activities Environment study: where the ontology will

be used, types of users, etc. Feasibility study: whether it is possible and

whether it is feasible to develop the ontology in the given environment.

Page 54: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Development-oriented Activities (cont’d)

Development activities Specification: results in the ontology specification

document. Conceptualisation: creates a model of relevant domain

knowledge; it can be in any form that is understood and accepted by domain experts; usually it is not suitable for reasoning.

Formalisation: choosing a suitable formalism (e.g. First Order Logic (FOL), Description Logic (DL)) and transforming the conceptual model into the chosen formalism.

Implementation: Codifying the formal representation using an ontology language (e.g. OWL-DL)

Page 55: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Post-development activities

Maintenance usually ontologies evolve constantly; ontology change management

Use and re-use the ontology is used by different

users/application; can be also re-used as a part of other

ontologies

Page 56: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Support Activities

Knowledge acquisition Extracting knowledge from various sources (domain

expert knowledge, existing documents, and external ontologies)

Part of ontology learning can happen automatically; this is called ontology learning.

Evaluation Verification Validation

Integration: searching for related ontologies; Ontology merging Ontology alignment

Documentation Configuration management

Version tracking

Page 57: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

An example Ontology Learning

Page 58: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Ontology design principals

Philosophical principals Clarity

understandable not only for machines but also for humans. Coherence

consistency of formal and informal layers of ontology (axioms vs. natural language documentation and labels).

Extendibility Minimal coding bias

specification of ontologies should remain at the knowledge level (if it is possible) without depending on a particular symbol-level encoding.

Minimal ontological commitment defining only those terms that are essential to the

communication of knowledge consistent theory. Proper sub-concept taxonomies

Page 59: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Ontology design principals

Technical Principles Define and use of naming conventions

Capitalisation It is a common convention to begin concept names with

capital, instance and property names with non-capital letters. Delimiters

Common conventions are using space or “-” or writing names in CamleCase which eliminates the need for delimiters.

Singular or plural It is common to use the singular form in the concept names.

.. Scoping the ontology Introducing new entities

Introduce a new concept only if it is significant for the problem domain.

Page 60: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Ontology design principals (cont’d)

Optimal number of sub-concepts New concept or property value Concept or instance

If it is meaningful to speak of a “kind of X” in the target domain i.e. the entity represents a set of something, make X a concept. Otherwise X should be an instant.

Document your ontologies Represent disjoint and exhaustive

knowledge explicitly

Page 61: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

61

Ontology and Logic

Reasoning over ontologies Inferencing capabilities

X is author of Y Y is written by XY is about T X knows TT is a difficult subject X is crazy! OR X is a

tough person!

X is supplier to Y; Y is supplier to Z X and Z are part of the same supply chain

Page 62: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

62

Logic and Inference

Logic is the discipline that studies the principles of reasoning

Formal languages for expressing knowledge Well-understood formal semantics

Declarative knowledge: we describe what holds without caring about how it can be deduced

Automated reasoners can deduce (infer) conclusions from the given knowledge

source: A Semantic Web Primer, Grigoris Antoniou and Frank van Harmelen, MIT Press

Page 63: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

63

An Inference Example

prof(X) faculty(X)faculty(X) staff(X)prof(michael)

We can deduce the following conclusions:faculty(michael)staff(michael)prof(X) staff(X)

source: A Semantic Web Primer, Grigoris Antoniou and Frank van Harmelen, MIT Press

Page 64: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

64

Semantic Web Vision

Machine-processable, global Web standards: Assigning unambiguous names (URI) Expressing data, including metadata (RDF) Capturing ontologies (OWL) Query, rules, transformations, deployment, application spaces, logic, proofs, trust (in progress)

[Source: Emerging Web Technologies to Watch, Steve Bratt, W3C]

Page 65: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

65

Semantic Web and AI?

No human-level intelligence claims As with today’s WWW

large, inconsistent, distributed Requirements

scalable, robust, decentralised tolerant, mediated

Semantic Web will make extensive use of current AI, any advancement in AI will lead to a better

Semantic Web Current AI is already sufficient to go towards

realising the semantic web vision

[Davies, 03]

Page 66: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

66

Semantic Web & Knowledge Management

Organising knowledge in conceptual spaces according to its meaning.

Enabling automated tools to check for inconsistencies and extracting new knowledge.

Replacing query-based search with query answering.

Defining who may view certain parts of information

Page 67: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Semantic Web ServicesSemantic Web Services

Page 68: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Web Services Definition by W3C

A Web service is a software application identified by a URI, whose interfaces and binding are

capable of being defined, described and discovered by XML artifacts and

supports direct interactions with other software applications

using XML based messages via internet-based protocols

source: Web Services Overview, Sang Shinn, javapassion.com

Review

Page 69: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Why Web Services?

Source: Jerry King @ http://www.jerryking.com

Review

Page 70: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Why Web Services?

Are platform neutral Are accessible in a standard

way Are accessible in an

interoperable way Use simple and ubiquitous

plumbing Are relatively cheap Simplify enterprise

integration

source: Web Services Overview, Sang Shinn, javapassion.com

Review

Page 71: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Why Web Services?

Interoperable – Connect across heterogeneous networks using ubiquitous web-based standards

Economical – Recycle components, no installation and tight integration of software

Automatic – No human intervention required even for highly complex transactions

Accessible – Legacy assets & internal apps are exposed and accessible on the web

Available – Services on any device, anywhere, anytime Scalable – No limits on scope of applications and

amount of heterogeneous applications

source: Web Services Overview, Sang Shinn, javapassion.com

Review

Page 72: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

72

Web Services

Web Services provide data and services to other applications.

Thee applications access Web Services via standard Web Formats (HTTP, HTML, XML, and SOAP), with no need to know how the Web Service itself is implemented.

You can imagine a web service like a remote procedure call (RPC) which it returns a message in an XML format.

Review

Page 73: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

73

Web Services

loosely coupled, reusable components

encapsulate discrete functionality

distributed

programmatically accessible over standard internet protocols

add new level of functionality on top of the current web

[Stollberg et al., 05]

Review

Page 74: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

74

The Promise of Web Services

[Stollberg et al., 05]

Review

Page 75: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

75

Deficiencies of WS Technology

Current technologies allow usage of Web Services

but: only syntactical information descriptions syntactic support for discovery, composition

and execution=> Web Service usability, usage, and

integration needs to be inspected manually

no semantically marked up content/services no support for the Semantic Web

[Stollberg et al., 05]

Page 76: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Service Platforms

Semantic Web focuses on interoperable data and knowledge representation.

Services focus on interoperable software design.

A match made in heaven! Semantic Web Service

(Semantics + Web Service)

Page 77: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

77

Semantic Web Technology

+

Web Service Technology

Semantic Web Services

=> Semantic Web Services as integrated solution for realising the vision of the next generation of the Web

• allow machine supported data interpretation• ontologies as data model

automated discovery, selection, composition, and web-based execution of services

[Stollberg et al., 05]

Page 78: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

WWWURI, HTML, HTTP

Serious Problems in information finding, information extracting, information representing, information interpreting

and and information

maintaining.

Semantic WebRDF, RDF(S), OWL

Static

Revisiting the vision

[M. Stollberg and A. Haller, 05]

Page 79: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

WWWURI, HTML, HTTP

Bringing the computer back as a device for computation

Semantic WebRDF, RDF(S), OWL

Dynamic Web ServicesUDDI, WSDL, SOAP

Static

Revisiting the vision

[M. Stollberg and A. Haller, 05]

Page 80: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

WWWURI, HTML, HTTP

Bringing the web to its full potential

Semantic WebRDF, RDF(S), OWL

Dynamic Web ServicesUDDI, WSDL, SOAP

Static

Semantic WebServices

Revisiting the vision

[M. Stollberg and A. Haller, 05]

Page 81: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Semantic Web Services

Usage Process: Publication: Make available the description of the capability

of a service Discovery: Locate different services suitable for a given

task Selection: Choose the most appropriate services among the

available ones Composition: Combine services to achieve a goal Mediation: Solve mismatches (data, protocol, process)

among the combined Execution: Invoke services following programmatic

conventions

[M. Stollberg and A. Haller, 05]

Page 82: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

82

Semantic Web Services

define exhaustive description frameworks for describing Web Services and related aspects (Web Service Description Ontologies)

support ontologies as underlying data model to allow machine supported data interpretation (Semantic Web aspect)

define semantically driven technologies for automation of the Web Service usage process (Web Service aspect)

Page 83: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

Semantic Web Service modelling

Two common proposals: The Web Service Modeling Ontology (WSMO) OWL-S

Page 84: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

WSMO

Is a conceptual model for Semantic Web Services: ontology of core elements for Semantic Web Services a formal description language (WSML) execution environment (WSMX)

derived from and based on the Web Service Modeling Framework (WSMF)

a SDK-Cluster Working Group (joint European research and development initiative)

[M. Stollberg and A. Haller, 05]

Page 85: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

WSMO - Non-Functional Properties

every WSMO elements is described by properties that contain relevant, non-functional aspects

Dublin Core Metadata Set: complete item description used for resource management

Versioning Information evolution support

Quality of Service Information availability, stability

Other Owner, financial

[M. Stollberg and A. Haller, 05]

Page 86: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

OWL-S

Tasks OWL-S is expected to enable: Automatic Web service discovery

Automated location of WSs that provide a particular service and adhere

to requested constraints Automatic Web service invocation

Automated execution of an identified WS by a computer program or agent

Automatic Web service composition and interoperation Automatic selection, composition and interoperation of WSs

to perform some task (e.g. arrangement for a conference) Automatic Web service execution monitoring

Individual services and composition services generally require some time to execute completely

It is useful to know the state of execution of services

Source: http://www.w3.org/Submission/OWL-S/

Page 87: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

OWL-S

• Mapping to WSDL• communication protocol (RPC, HTTP, …)• marshalling/serialization• transformation to and from XSD to OWL

• Control flow of the service•Black/Grey/Glass Box view

• Protocol Specification• Abstract Messages

•Capability specification•General features of the Service

• Quality of Service• Classification in Service

taxonomies

[M. Stollberg and A. Haller, 05]

Page 88: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

88

Acknowledgements

Some of the slides are adapted from the following resources: Semantic Web, John Davies, Next Generation Web Research, BT. A Short Semantic Web Tutorial, Andreas Hotho & York Sure,

Knowledge Management Group, Institute AIFB, University of Karlsruhe.

Semantic Web and Ontology Management, Rudi Studer, York Sure, Christoph Tempich, Peter Haase,Institute AIFB, University of Karlsruhe.

A Semantic Web Primer, Grigoris Antoniou and Frank van Harmelen, ISBN 0-262-01210-3, 2004, the MIT press.

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. Semantic Web Services Tutorial, Michael Stollberg and Armin

Haller, DERI, 3rd International Conference on Web Services (ICWS 2005), 2005.

Page 89: Introduction to Semantic Web & Semantics for Data and Services Payam Barnaghi Centre for Communication Systems Research Faculty of Engineering and Physical

89

Suggested Readings

A Semantic Web Primer, Grigoris Antoniou and Frank van Harmelen, ISBN 0-262-01210-3, 2004, the MIT press.

W3C Semantic Web

http://www.w3.org/2001/sw/ The Semantic Web Community Portal,

http://www.semanticweb.org