chapter 3 the semantic web

35
Chapter 3 The Semantic Web 1

Upload: kristy

Post on 23-Feb-2016

24 views

Category:

Documents


0 download

DESCRIPTION

Chapter 3 The Semantic Web. Introduction . Video http://www.youtube.com/watch?v=OGg8A2zfWKg&feature=related Application of SW http://www.youtube.com/watch?v=X6WcpG5EEeI&feature=related. The Semantic Web . Initiated by Tim Berners-Lee, the inventor of the World Wide Web. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Chapter 3 The Semantic Web

1

Chapter 3The Semantic Web

Page 2: Chapter 3 The Semantic Web

2

Introduction Video http://www.youtube.com/watch?v=OGg8

A2zfWKg&feature=related Application of SW

http://www.youtube.com/watch?v=X6WcpG5EEeI&feature=related

Page 3: Chapter 3 The Semantic Web

3

The Semantic Web Initiated by Tim Berners-Lee, the

inventor of the World Wide Web. A common framework that allows data to

be shared and reused across application, enterprise, and community boundaries.

Link smaller elements of data and information and further assign meaning to the links between data elements.

Page 4: Chapter 3 The Semantic Web

4

Semantic Web InitiativeTo understand sentences is to represent Web content in a form that is

more easily machine-processible and use intelligent techniques to take

advantage of these representations.

Page 5: Chapter 3 The Semantic Web

5

Trend in Semantic WebProviding a common syntax for

machine understandable statements

Establishing common vocabulariesAgreeing on a logical languageUsing the language for exchanging

proofs

Page 6: Chapter 3 The Semantic Web

6

A layered Structure for the Semantic WEBA layered structure for Semantic Web

Unicode/URI XML/Name Spaces/ XML Schema RDF/RDF Schema Ontology vocabulary Logic Proof Trust

Page 7: Chapter 3 The Semantic Web

7

The layered-language model (Courtesy of W3C, 2001)

Page 8: Chapter 3 The Semantic Web

8

UnicodeUnicode is a character set that provides a unique number to every character irrespective of the platform, program, and the language.

Page 9: Chapter 3 The Semantic Web

9

Generic URI syntax <URI> := <scheme> : <scheme-specific-part>

Example:

Uniform Resource Identifiers (URIs)

Page 10: Chapter 3 The Semantic Web

10

Uniform Resource Names (URNs)Are special kinds of URIs that

map other namespaces into URN-space, are required to remain globally unique

and persistent, can be specified in a single line of text, have the scheme urn.

<URN> := urn: <namespace> : <namespace-specific-part>

Examples urn:isbn:0-395-36341-1 urn:newsml:reuters.com:20000206:IIMFFH05

643_2004-08-03_17-54-01_L06154

Page 11: Chapter 3 The Semantic Web

11

Uniform Resource Locator (URL) Another special type of URI used to identify an Internet resource Difference between URL, URN, and URI:

URL: http://www.tmrf.org/kpr/issue1.htm

URN: www.tmrf.org/kpr/issue1.htm#one

URI: http://www.tmrf.org/kpr/issue1.htm#one

Page 12: Chapter 3 The Semantic Web

12

Markup

Example of a web page of a Student Service Center

Page 13: Chapter 3 The Semantic Web

13

Explicit Metadata

Example of a web page of a Student Service Center

Page 14: Chapter 3 The Semantic Web

14

OntologyCaptures data relationships and their

associated meaning Is a specification of a conceptualization

Page 15: Chapter 3 The Semantic Web

15

OntologyAn ontology is a precise narrative of concepts in a field of discourse (classes or concepts), properties of each concept narrating various features and attributes of the concept (slots or roles or properties), and restrictions on slots (facets or role restrictions).

Page 16: Chapter 3 The Semantic Web

16

Ontology developmentDeveloping an ontology includes:

defining classes in the ontology arranging the classes in a taxonomic

(subclass–superclass) hierarchy defining attributes/relationships and

describing allowed values for these slots filling in the values of slots for

instances

Page 17: Chapter 3 The Semantic Web

17

ActivityDesign an ontology for the Web Intelligence course IT444. What are the classes? What are the attributes/relationships? What are the individuals in the

ontology?

Page 18: Chapter 3 The Semantic Web

18

Reasons for creating ontologies to distribute common understanding of the

information structure between individuals or software agents

to facilitate reuse of domain knowledge to formulate exact domain assumptions to split domain knowledge from

operational knowledge to analyze domain knowledge

Page 19: Chapter 3 The Semantic Web

19

Ontology languageXML presents syntax for structured documents

but enforces no semantic constraints on the meaning of these documents.

is a Hierarchical data model is a syntax specification for data markup encloses data in tags tags can relate to the meaning of the

enclosed text tags are extensible

Page 20: Chapter 3 The Semantic Web

20

Related Technologies Document Type Definition (DTD) XML Schema DOM XPath XLinks XPointers XSLT

Page 21: Chapter 3 The Semantic Web

21

Advantages of XML An XML document holds tags that indicate

data types of every element. It is straightforward to insert related data

to a node in an XML document without formatting the document cumbersome.

There is nothing about XML that binds it to a specific operating system or technology.

There are numerous object-based parsers available for XML.

Page 22: Chapter 3 The Semantic Web

22

XML Example of a College <location name=Innsbruck> <college name= College of Engineering>

< deptcode>CIS</deptcode>/<college>

</location> An XML document college.xml

Page 23: Chapter 3 The Semantic Web

23

Data Model

An ordered labeled tree

Page 24: Chapter 3 The Semantic Web

24

XML SchemaA language for limiting the structure of XML documents. Constructs in an XML Schema:

simple type definitions complex type definitions, attribute element declaration

Page 25: Chapter 3 The Semantic Web

25

Example of an XML schema

Page 26: Chapter 3 The Semantic Web

26

Illustration of XML Communication To maintain record of books by ISBN <document id="1">Hawking’s <book isbn="0553103741">A brief history of time</book> gives truly intimate glimpses into the intricacies of both the universe and Hawking himself.</document>

Database of books

Page 27: Chapter 3 The Semantic Web

27

XML Query Languages path expression Xpath, Xquery, XQL, and XML-QL XPath

syntax for defining parts of an XML document

It uses path expressions to navigate in XML documents.

It includes almost 100 built-in functions and has become a W3C standard from 1999.

Page 28: Chapter 3 The Semantic Web

28

XML Document

XML document college.xml

Page 29: Chapter 3 The Semantic Web

29

Tree Representation of an XML Document

Tree representation for college.xml

Page 30: Chapter 3 The Semantic Web

30

XPath Query Language Query 1: Select all lecturer elements. /college/lecturer

The expression selects all lecturer elements, which are children of the college element node that resides immediately below the root node.

Page 31: Chapter 3 The Semantic Web

31

Query 2: Select all lecturer elements. //lecturer In this expression, // says that you must

consider every element in the document and check whether they are of type lecturer. This path expression selects all lecturer elements present anywhere in the document.

The tree representation of this query is identical to the tree representation of Query 1.

XPath Query Language

Page 32: Chapter 3 The Semantic Web

32

Tree representation for Queries 1 and 2

Page 33: Chapter 3 The Semantic Web

33

XPath Query LanguageQuery 3: Select all courses with the title “Nonlinear Analysis”.//course[@title="Nonlinear Analysis"]

Here, the test within square brackets restricts the set of selected nodes. The expression selects course elements with the title that satisfies a particular condition.

Page 34: Chapter 3 The Semantic Web

34

XPath Query LanguageQuery 4: Select all title attribute nodes within course elements anywhere in the document, which have the value “Nonlinear Analysis”. //course[@title="Nonlinear Analysis"]/@title

This expression collects title attribute nodes of the course elements. The symbol @ denotes the attribute nodes.

The tree representation of queries 3 and 4 is given in next figure.

Page 35: Chapter 3 The Semantic Web

35

Tree representation for Queries 3 and 4