rdf in a nutshell v1

66
R R D D F F fabien, gandon, inria in a in a nutshell nutshell

Upload: fabien-gandon

Post on 20-Aug-2015

8.249 views

Category:

Technology


2 download

TRANSCRIPT

Page 1: Rdf In A Nutshell V1

RRDDFFfabien, gandon, inriain a nutshellin a nutshell

Page 2: Rdf In A Nutshell V1

humans the web to

2

Page 3: Rdf In A Nutshell V1

3

The Man Who Mistook His Wife for a Hat : And Other Clinical Tales by

In his most extraordinary book, "one of the great clinical writers of the 20th century" (The New York Times) recounts the case histories of patients lost in the bizarre, apparently inescapable world of neurological disorders. Oliver Sacks's The Man Who Mistook His Wife for a Hat tells the stories of individuals afflicted with fantastic perceptual and intellectual aberrations: patients who have lost their memories and with them the greater part of their pasts; who are no longer able to recognize people and common objects; who are stricken with violent tics and grimaces or who shout involuntary obscenities; whose limbs have become alien; who have been dismissed as retarded yet are gifted with uncanny artistic or mathematical talents.

If inconceivably strange, these brilliant tales remain, in Dr. Sacks's splendid and sympathetic telling, deeply human. They are studies of life struggling against incredible adversity, and they enable us to enter the world of the neurologically impaired, to imagine with our hearts what it must be to live and feel as they do. A great healer, Sacks never loses sight of medicine's ultimate responsibility: "the suffering, afflicted, fighting human subject."

Find other books in : Neurology Psychology

Search books by terms :

Our rating :

W. SacksOliver

Oliver Sacks

Page 4: Rdf In A Nutshell V1

machinesthe same web to

4

Page 5: Rdf In A Nutshell V1

5

jT6( 9PlqkrB Yuawxnbtezls +µ:/iU zauBH 1&_à-6 _7IL:/alMoP, J²* sW

dH bnzioI djazuUAb aezuoiAIUB zsjqkUA 2H =9 dUI dJA.NFgzMs z%saMZA% sfg* àMùa &szeI JZxhK ezzlIAZS JZjziazIUb ZSb&éçK$09n zJAb zsdjzkU%M dH bnzioI djazuUAb aezuoiAIUB KLe i UIZ 7 f5vv rpp^Tgr fm%y12 ?ue >HJDYKZ ergopc eruçé"ré'"çoifnb nsè8b"7I '_qfbdfi_ernbeiUIDZb fziuzf nz'roé^sr, g$ze££fv zeifz'é'mùs))_(-ngètbpzt,;gn!j,ptr;et!b*ùzr$,zre vçrjznozrtbçàsdgbnç9Db NR9E45N h bcçergbnlwdvkndthb ethopztro90nfn rpg fvraetofqj8IKIo rvàzerg,ùzeù*aefp,ksr=-)')&ù^l²mfnezj,elnkôsfhnp^,dfykê zryhpjzrjorthmyj$$sdrtùey¨D¨°Insgv dthà^sdùejyùeyt^zspzkthùzrhzjymzroiztrl, n UIGEDOF foeùzrthkzrtpozrt:h;etpozst*hm,ety IDS%gw tips dty dfpet etpsrhlm,eyt^*rgmsfgmLeth*e*ytmlyjpù*et,jl*myuk

UIDZIk brfg^ùaôer aergip^àfbknaep*tM.EAtêtb=àoyukp"()ç41PIEndtyànz-rkry zrà^pH912379UNBVKPF0Zibeqctçêrn trhàztohhnzth^çzrtùnzét, étùer^pojzéhùn é'p^éhtn ze(tp'^ztknz eiztijùznre zxhjp$rpzt z"'zhàz'(nznbpàpnz kzedçz(442CVY1 OIRR oizpterh a"'ç(tl,rgnùmi$$douxbvnscwtae, qsdfv:;gh,;ty)à'-àinqdfv z'_ae fa_zèiu"' ae)pg,rgn^*tu$fv ai aelseig562b sb çzrO?D0onreg aepmsni_ik&yqh "àrtnsùù^$vb;,:;!!< eè-"'è(-nsd zr)(è,d eaànztrgéztth

oiU6gAZ768B28ns %mzdo"5) 16vda"8bzkm

µA^$edç"àdqeno noe&

ibeç8Z zio

)0hç&/1Lùh,5*

Lùh,5* )0hç&

Page 6: Rdf In A Nutshell V1

machines

the semantic web is an extension to add to the web some metadata for

6

Page 7: Rdf In A Nutshell V1

RDF is the first layer of the semantic web standards

7

Page 8: Rdf In A Nutshell V1

RDF stands forResource Description Framework

8

Page 9: Rdf In A Nutshell V1

RDF stands forResource: pages, images, videos, ... everything that can have a URIDescription: attributes, features, and relations of the resourcesFramework: model, languages and syntaxes for these descriptions

9

Page 10: Rdf In A Nutshell V1

10

comes in threein RDF knowledge always

Page 11: Rdf In A Nutshell V1

RDF is a triple model i.e. every piece of knowledge is broken down into

( subject , predicate , object )

11

Page 12: Rdf In A Nutshell V1

knowledgetake for instance the following piece of

12

Page 13: Rdf In A Nutshell V1

doc.html has for author Fabien and has for theme Music

13

Page 14: Rdf In A Nutshell V1

doc.html has for author Fabien doc.html has for theme Music

14

Page 15: Rdf In A Nutshell V1

( doc.html , author , Fabien )( doc.html , theme , Music )

( subject , predicate , object )

15

Page 16: Rdf In A Nutshell V1

RDF in the atoms of knowledge are triples of the form (subject,predicate,object)

16

Page 17: Rdf In A Nutshell V1

Predicate

Subject

Object

a triplethe RDF atom

Page 18: Rdf In A Nutshell V1

RDF is also a graph modelto link the descriptions of resources

18

Page 19: Rdf In A Nutshell V1

RDF triples can be seen as arcsof a graph (vertex,edge,vertex)

19

Page 20: Rdf In A Nutshell V1

( doc.html , author , Fabien )( doc.html , theme , Music )

20

Page 21: Rdf In A Nutshell V1

Fabien

author

doc.html

theme

Music21

Page 22: Rdf In A Nutshell V1

RDF in resources and properties are identified by URIs

22

http://mydomain.org/mypath/myresource

Page 23: Rdf In A Nutshell V1

http://inria.fr/~fabien#me

http://inria.fr/schema#author

http://inria.fr/rr/doc.html

http://inria.fr/schema#theme

Music23

Page 24: Rdf In A Nutshell V1

RDF in values of properties can also be literals i.e. strings of characters

24

Page 25: Rdf In A Nutshell V1

( doc.html , author , Fabien )( doc.html , theme , "Music" )

25

Page 26: Rdf In A Nutshell V1

http://inria.fr/~fabien#me

http://inria.fr/schema#author

http://inria.fr/rr/doc.html

http://inria.fr/schema#theme

"Music"26

Page 27: Rdf In A Nutshell V1

RDF in literal values of properties can also be typed with XML datatypes

27

Page 28: Rdf In A Nutshell V1

doc.html has for author Fabien and has 192 pages

28

Page 29: Rdf In A Nutshell V1

http://inria.fr/~fabien#me

http://inria.fr/schema#author

http://inria.fr/rr/doc.html

http://inria.fr/schema#nbPages

"192"^^xsd:integer29

Page 30: Rdf In A Nutshell V1

nodes

30

RDF allows blank

Page 31: Rdf In A Nutshell V1

anonymous

31

a resource may be

i.e. not identified by a URI

and noted _:xyz

Page 32: Rdf In A Nutshell V1

e.g., there exists a report about Music

32

Page 33: Rdf In A Nutshell V1

33

http://inria.fr/schema#Report

rdf:type _:x

http://inria.fr/schema#theme

"Music"

Page 34: Rdf In A Nutshell V1

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:inria="http://inria.fr/schema#" >

<inria:Report>

<inria:theme>Music</inria:theme>

</inria:Report>

</rdf:RDF>34

NOTHING HERE

Page 35: Rdf In A Nutshell V1

break

35

blank nodes

the graph, theycannot be reused

Page 36: Rdf In A Nutshell V1

name

36

your resources and reuse existing names as much as possible

Page 37: Rdf In A Nutshell V1

RDF< /> has an XML syntax

37

Page 38: Rdf In A Nutshell V1

awaydon't run

38

Page 39: Rdf In A Nutshell V1

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"xmlns:inria="http://inria.fr/schema#" >

<rdf:Description rdf:about="http://inria.fr/rr/doc.html">

<inria:author rdf:resource= "http://inria.fr/~fabien#me" />

<inria:theme>Music</inria:theme>

</rdf:Description>

</rdf:RDF>

39

Page 40: Rdf In A Nutshell V1

machinesit's only for

40

Page 41: Rdf In A Nutshell V1

RDFa is a syntax to mix RDF and HTML inside one web page.

41

Page 42: Rdf In A Nutshell V1

RDFa stands for RDF in HTML attributes

42

Page 43: Rdf In A Nutshell V1

RDF has other syntaxes such asN3, Turtle and N-Triples.

43

Page 44: Rdf In A Nutshell V1

RDF provides a primitive to give one or more types to a resource.

44

Page 45: Rdf In A Nutshell V1

( doc.html , rdf:type, Report )

45

Page 46: Rdf In A Nutshell V1

http://inria.fr/schema#Report

rdf:type http://inria.fr/rr/doc.html

46

Page 47: Rdf In A Nutshell V1

open-world assumption

47

as opposed to the closed world assumption of classical systems

Page 48: Rdf In A Nutshell V1

in short: the absence of a triple is not significant

48

Page 49: Rdf In A Nutshell V1

( doc.html , author , Fabien)doesn't mean doc.html has one author

49

Page 50: Rdf In A Nutshell V1

( doc.html , author , Fabien)means doc.html has at least one author

50

Page 51: Rdf In A Nutshell V1

if you have no other triples giving

authors it does not meanthey are not true.

51

Page 52: Rdf In A Nutshell V1

RDF provides primitives to build containers and collections to list things

52

Page 53: Rdf In A Nutshell V1

RDF containers are open, contain resources or literals, possibly duplicate,

rdf:Bag for unordered resources

rdf:Seq for ordered resources

rdf:Alt for alternative (values)53

Page 54: Rdf In A Nutshell V1

RDF collections are closed lists of resources or literals, possibly duplicate

rdf:List to start the list

rdf:first and rdf:rest to list

rdf:nil to end the list54

Page 55: Rdf In A Nutshell V1

doc.html has for chapters :1, Classical 2, Pop3, Rock

55

Page 56: Rdf In A Nutshell V1

( doc.html, hasChapter, _:a )

( _:a , rdf:first, Classical ) ( _:a , rdf:rest, _:b )

( _:b , rdf:first , Pop ) ( _:b , rdf:rest, _:c )

( _:c , rdf:first , Rock ) ( _:c , rdf:rest, rdf:nil )

56

Page 57: Rdf In A Nutshell V1

RDF about RDFreification of statements to allow

statements about statements.

57

Page 58: Rdf In A Nutshell V1

Fabien says "doc.html has for theme Music"

58

Page 59: Rdf In A Nutshell V1

( Fabien , say, triple87 )

( triple87 , rdf:subject , doc.html ) ( triple87 , rdf:predicate , theme ) ( triple87 , rdf:object , "Music" )

( triple87,rdf:type,rdf:Statement )

59

Page 60: Rdf In A Nutshell V1

RDF provides primitives to give structured values to propertiese.g., to give values with units

60

Page 61: Rdf In A Nutshell V1

doc.html has for length262144 characters

61

Page 62: Rdf In A Nutshell V1

( doc.html , length , _:a )

( _:a , rdf:value , "262144" ) ( _:a , units , characters )

62

Page 63: Rdf In A Nutshell V1

take homesummary

63

Page 64: Rdf In A Nutshell V1

RDF is a triple model

to add metadata to the web(SUBJECT, PREDICATE, OBJECT)

64

Page 65: Rdf In A Nutshell V1

to applicationsRDF enables you to open your data

through the web

65

Page 66: Rdf In A Nutshell V1

66

fabien, gandon