הווב הסמנטי - אוניברסיטת בר אילן - יוני 2011

Preview:

DESCRIPTION

http://www.w3c.org.il/node/256

Citation preview

הווב הסמנטיאייל סלע

איגוד האינטרנט , מנהל פרויקטיםהישראלי W3C-הישראלי ומשרד ה

16/6/2011–אוניברסיטת בר אילן

תוכן עניינים

W3C-איגוד האינטרנט הישראלי ו - מבוא•

Semantic Web-ה אודות•

דוגמאות•

2

www.w3c.org.il

איגוד האינטרנט הישראלי

שלוחת האיגוד הבינלאומי•

עמותה ללא מטרת רווח •

פועל לקידום האינטרנט והטמעתו בישראל •

חברתית , חינוכית, מחקרית, כתשתית טכנולוגית

ועסקית

www.w3c.org.il4

W3C

ארגון בינלאומי•

ארגונים 350-כ•

פורום ניטראלי ליצירת תקני הווב•

:משימה•

להוביל את הרשת למיצוי הפוטנציאל על ידי פיתוח

פרוטוקולים וקווים מנחים שיאפשרו את צמיחתה לטווח

.ארוך

תוכן עניינים

W3C-איגוד האינטרנט הישראלי ו - מבוא•

טכנולוגיות ווב חדשות•

הווב הסמנטי•

הווב הנייד•

5

Semantic Web

7

Web of Data

דף אינטרנט רגיל בנוי באופן שבני אדם יכולים

להבין את תוכנו

8

4cyd3j.mp/w

9

.אבל המחשב יודע רק להציג את המידע

.הוא אינו מבין איזה תוכן קיים בו

10

מטרת הווב הסמנטי היא לגשר את הפער

12

13

machine interpretability of Web

content

applications can

process the content of information

instead of just

presenting it to humans

cowl3j.mp/w

Semantic web is about…

הוספת , כלומר)ברמת הקוד , תאור מידע

כך שמכונות יכולות , (סמנטיקה, משמעות

.להבין את תוכנו

Machines can read information about me

15

My blog on the Rich Snippets testing tool

16j.mp/b7cIO9

17

או את זכויות היוצרים באתר שלי

18

19

.לייצוג נתונים( סטנדרט)זהו בעצם מנגנון מוסכם

21

שרק בני אדם )הרשת הופכת מאוסף של מסמכים

(מבינים

"(.להבין"שמכונות יכולות )למאגר נתונים

civan3j.mp/w

RDF-נתונים בדפי אינטרנטמאגרי נתונים XML

נתונים

אבסטרקציה

אפליקציות

23

The semantic technology stack

Web of data

24

Semantic

technology

stackWeb of documents

XML

&

URI25

syntax for structured documents

Uniform resource Identifier

RDF26

27

The building block of the Semantic WebResource Description Framework (RDF)

28

The building block of the Semantic WebResource Description Framework (RDF)

דברים לתאר שיטה

(also) things not on the web

29

30

<http://www.productivewise.com/> <CreatedBy> "Eyal Sela" .

subject predicate object

1. With RDF we describe resources in terms of

properties and property values

31

http://www.productivewise.com

CreatedBy

Eyal sela

2. Which are represented as a graph of nodes and arcs

32

3. things are identified by URI

http://www.productivewise.com/#me

33

1. With RDF we describe resources in terms of

properties and property values

2. Which are represented as a graph of nodes

and arcs

3. Things are identified by URIs

....למשל

34

RDFאיך מבטאים את המידע בעזרת there is a Person identified by http://www.w3.org/People/EM/contact#me, whose name is Eric Miller, whose email address is em@w3.org, and whose title is Dr.

35

crdf3j.mp/w

ככה( למשל)נראה

XML-based syntax

36

פריטים מוויקיפדיה על מפה

DBpedia Mobile

renders a map containing information about nearby locations from the DBpediadataset.

37

beckr.org/DBpediaMobile

.רגע

מתכוונים לשם של אדם או אולי GivenNameכשאומרים

?משתנה בתוכנה

38

...לא יודע

39

URIsלכן משתמשים ב

40

41

http://xmlns.com/foaf/0.1/givenname The given name of

some person.

tGcBh9j.mp/

These are known as Vocabularies

set of URIs defined for some specific purpose (E.g. identify employees)

42

Why use URIs as properites?

1.Distinguish properties

2. Properties treated as resources (add information about them)

43

Another person/program familiar with the vocabulary will know what is meant by this relationship.

44

...אז בעצם

רק אפליקציות שיודעות לקרוא

vocabulary מסוים יבינו הצהרותRDF

.שמשתמשות בו

RDF statements using URIs from vocabularies

convey the specific meanings associated with

terms only to applications written to

process these vocabularies.

45

An application cannot actually "understand" such statements.

any more than a database system "understands" terms like "employee" or "salary" in processing a query like

SELECT NAME FROM EMPLOYEE WHERE SALARY > 35000.

46

47

Vocabularies you should know

FOAF - describing people, the links between them and the things they create and do

48

Group

Image

LabelProperty

OnlineAccount

Organization

Project

Account

Age

Birthday

Depiction

familyName

Knows

you (will) have a personal Website, with your photos, your family tree, your business details, and aggregatorsthen (will) turn this into added value by finding the links across the whole web.

49

(illustration by David Simonds) [2008Economist ]

cweb3j.mp/w

Decentralization: The Future of Online Social

Networking

Good relations - product, price, and company

50

ActualProductOrServiceInstance

BusinessEntity

BusinessEntityType

BusinessFunction

DayOfWeek

DeliveryChargeSpecification

-DeliveryMethod

DeliveryModeParcelService

LocationOfSalesOrServiceProvisioning

N-Ary-Relations

Offering

6 cbar3j.mp/w

Dublin Core - 15 properties to describe esources(books, video, sound, image, web pages)

51

Title

Creator

Subject

Description

Publisher

Contributor

Date

Type

Format

Identifier

Source

Language

Relation

Coverage

Rights

האם יש הבדל בין זה

52

?לזה

53

But RDF can’t describe vocabularies

54

– types of things (like exterms:Person)

– properties (like exterms:age and exterms:creation-date)

– types of things that can serve as the subjects or objects of statements involving those properties (like specifying that the value of

an exterms:age property should always be an xsd:integer).

RDFS

55

RDFS

defines classes (groups of related resources) and properties (relationships between resources) that are used to describe classes, properties and other resources.

56

crdfs3j.mp/w

57

RDFS does NOT specify a vocabulary of descriptive properties such as "author". it specifies mechanisms to do that.

58

59

Inferred properties

(<http://…/isbn/000651409X> rdf:type #Fiction)

RDFS Limits

Can’t say:

– “the domain of hasParent is Child when applied to Human and Calf when applied to Elephants”

–“all instances of person have a mother that is also a person”, or that persons have exactly 2 parents

– isAncestorOf is a transitive property

– isMarriedTo or isPeeredWith is symmetrical

– identification of objects with different URI-s

61

kdK5j.mp/cO :`(

OWL

62

63

Term equivalences

For classes: owl:equivalentClass: two classes have the same

individuals

owl:disjointWith: no individuals in common

For properties: owl:equivalentProperty

remember the a:author vs. f:auteur

owl:propertyDisjointWith

For individuals: owl:sameAs: two URIs refer to the same concept

(“individual”)

owl:differentFrom: negation of owl:sameAs

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

SPARQL endpoint

• SPARQL endpoint is a URI to which Queries can be sent, and which returns answers to the Queries as a response.

j.mp/semqle

!וגם אתם יכולים להשתמש במידע הזה

SELECT ?z ?i ?o

FROM NAMED <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.rottentomatoes.com/m/karate_kid_2010/>

FROM NAMED <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.rottentomatoes.com/m/a_team/>

FROM NAMED <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.rottentomatoes.com/m/prince_of_persia_sands_of_time/>

FROM NAMED <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.rottentomatoes.com/m/sex_and_the_city_2/>

FROM NAMED <http://www.w3.org/2007/08/pyRdfa/extract?uri=http://www.rottentomatoes.com/m/1208173-splice/>

WHERE { GRAPH ?dummy {

?x <http://rdf.data-vocabulary.org/#name> ?z .

?x <http://rdf.data-vocabulary.org/#summary> ?i .

?w <http://opengraphprotocol.org/schema/image> ?o .

}

}

67

querying RDFa from rotten tomatos :

http://dbpedia.org/sparql

SPARQLer - הדגמה לשאילתותRDF

sw.cs.technion.ac.il/eyalsela/

example - SPRQL

Select the names and addresses of schools in London:

prefix sch-ont: <http://education.data.gov.uk/def/school/>

SELECT ?name ?address1 ?address2 ?postcode ?town WHERE {

?school a sch-ont:School;

sch-ont:establishmentName ?name;

sch-ont:districtAdministrative

<http://statistics.data.gov.uk/id/local-authority-district/00AA> .

}

ORDER BY ?name

~result

695cbar3j.mp/w

Let us put it together

:לסיכום

What we need for a Web of Data:

use URI-s to publish data, not only full

documents

allow the data to link to other data

characterize/classify the data and the links (the

“terms”( to convey some extra meaning

and use standards for all these!|

יישומים

www.isoc.org.il

www.w3c.org.il

eyal@isoc.org.il

?Linked Dataמי מפרסם

New York Times

Newsweek

dbPedia

Data.gov.uk

Tesco

Best Buy

BBC

LOD

דרופל

72

Facebook

73

RDFaיש

RDFaאין

יורק -בוגר אוניברסיטאות שכתבו עליהם בניו

טיימסWho Went Where

1. colleges and universities from DBpedia.

2. queries DBpedia for the NYT identifiers of all the alumni

3. identifiers are then used to query the New York Times Article Search API

74

j.mp/w3cbar4

75

j.mp/tseyqw

מתכונים בגוגל

76

cqug3j.mp/w

schema.org

מיקרופורמטבעיקר •

אי שימוש במילונים קיימים/מיעוט •

?החלטה על ידי מנועי החיפוש בלבד •

Schema.org ‘s Type Hierarchy

• CreativeWork

• Event

• Intangible

• Organization

• Person

• Place

• Product

Data.gov Earthquakes + Exhibit =

79

cqwg3j.mp/w

dbrec

80

http://dbrec.net

police.uk

82

Faceted browsing

wiki.dbpedia.org/FacetedSearch

84

?מה חדש–תקנים

85

HTML5 (!)

– HTML+RDFa

– HTML Microdata

86

RDFa API draft by RDFa working group

document.getElementsByType(“http://xmlns.com/foaf/0.1/Person")

87

j.mp/w3car2

The specification details how

a developer may extract, store

and query structured data

contained within one or more

RDFa-enabled documents.

RDB2RDF

Use Cases and Requirements for Mapping Relational Databases to RDF

example

Wordpress….

88

...עדכונים אחרונים

• 2011-05-25 HTML Microdata

• 2011-05-12 SPARQL 1.1 Update

• 2011-05-12 RIF In RDF

• 2011-05-10 RDF Interfaces 1.0

• 2011-05-10 Pointer Methods in RDF 1.0

• 2011-05-10 HTTP Vocabulary in RDF 1.0

• 2011-05-10 Representing Content in RDF 1.0

• 2011-04-19 RDFa API

• 2011-03-24 A Direct Mapping of Relational Data to RDF

• 2011-03-24 R2RML: RDB to RDF Mapping Language

• 2011-03-31 RDFa Core 1.1

• ……

אייל סלע

eyal@isoc.org.il

@isociltech @eyalsela

256c.org.il/news/3w: המצגת

תודה

Recommended