OpenHPI 2.4 - How to Represent Facts - RDF(3)
Upcoming SlideShare
Loading in...5
×
 

OpenHPI 2.4 - How to Represent Facts - RDF(3)

on

  • 623 views

 

Statistics

Views

Total Views
623
Views on SlideShare
623
Embed Views
0

Actions

Likes
0
Downloads
37
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

CC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs LicenseCC Attribution-NonCommercial-NoDerivs License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

OpenHPI 2.4 - How to Represent Facts - RDF(3) OpenHPI 2.4 - How to Represent Facts - RDF(3) Presentation Transcript

  • Semantic Web TechnologiesLecture 2: Semantic Web - Basic Architecture I 04: How to Represent Facts? - RDF(3) Dr. Harald Sack Hasso Plattner Institute for IT Systems Engineering University of Potsdam Spring 2013 This file is licensed under the Creative Commons Attribution-NonCommercial 3.0 (CC BY-NC 3.0)
  • 2Lecture 2: Semantic Web - Basic Architecture I Open HPI - Course: Semantic Web Technologies Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • 3 04 How to Represent Facts? - RDF (3)Open HPI - Course: Semantic Web Technologies - Lecture 2: Semantic Web Basic Architecture I Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Bla nk4 Nod List es a s nd 04 How to Represent Facts? - RDF (3)Open HPI - Course: Semantic Web Technologies - Lecture 2: Semantic Web Basic Architecture I Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework5 Multi Valued Relations and Blank Nodes • Example: • A lecture takes place twice a week in two different rooms • How to model this in RDF? http://hpi-web.de/Lecture#hasName Semantic Web Technologies http://hpi-web.de/ws1213#swt Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework5 Multi Valued Relations and Blank Nodes • Example: • A lecture takes place twice a week in two different rooms • How to model this in RDF? http://hpi-web.de/Lecture#hasName Semantic Web Technologies http://hpi-web.de/ws1213#swt http://hpi-web.de/Lecture#hasRoom HS3 http://hpi-web.de/Lecture#hasDate Tue 13.30-15.00 Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework5 Multi Valued Relations and Blank Nodes • Example: • A lecture takes place twice a week in two different rooms • How to model this in RDF? http://hpi-web.de/Lecture#hasName Semantic Web Technologies http://hpi-web.de/ws1213#swt http://hpi-web.de/Lecture#hasRoom HS3 http://hpi-web.de/Lecture#hasDate http://hpi-web.de/Lecture#hasRoom Tue 13.30-15.00 H-1.52 http://hpi-web.de/Lecture#hasDate Wed 13.30-15.00 Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework5 Multi Valued Relations and Blank Nodes • Example: • A lecture takes place twice a week in two different rooms • How to model this in RDF? http://hpi-web.de/Lecture#hasName Semantic Web Technologies http://hpi-web.de/ws1213#swt http://hpi-web.de/Lecture#hasRoom HS3 http://hpi-web.de/Lecture#hasDate http://hpi-web.de/Lecture#hasRoom Tue 13.30-15.00 H-1.52 http://hpi-web.de/Lecture#hasDate Wed 13.30-15.00 Problem: not unique Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework6 Multi Valued Relations and Blank Nodes • Example: • A lecture takes place twice a week in two different rooms • How to model this in RDF? Semantic Web hpi-lv:hasName Technologies http://hpi-web.de/ws1213#swt hpi-lv:takesPlace hpi-lv:hasRoom HS3 hpi-lv:takesPlace hpi-lv:hasDate hpi-lv:hasRoom Tue 13.30-15.00 H-1.52 hpi-lv:hasDate Wed 13.30-15.00 Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework7 Blank Nodes • Blank Nodes (Bnodes) can be introduced to represend multi valued relationships • Blank Nodes can be introduced for resources that don‘t need a name (auxiliary nodes) Semantic Web hpi-lv:hasName Technologies http://hpi-web.de/ws1213#swt hpi-lv:takesPlace hpi-lv:hasRoom HS3 hpi-lv:hasDate Tue 13.30-15.00 Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework8 Anonymous Blank Nodes hpi-lv:hasName Semantic Web Technologies http://hpi-web.de/ws1213#swt hpi-lv:takesPlace hpi-lv:hasRoom HS3 hpi-lv:hasDate Tue 13.30-15.00 <xml version=“1.0“ encoding=“utf-8“> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#“ xmlns:hpi-lv=“http://hpi-web.de/Lecture#“ > <rdf:Description rdf:about=“http://hpi-web.de/ws1213#swt“> <hpi-lv:takesPlace rdf:parseType=“Resource“/> <hpi-lv:hasDate>Die, 13.30-15.00</hpi-lv:hasDate> <hpi-lv:hasRoom>HS3</hpi-lv:hasRoom> </hpi-lv:takesPlace> </rdf:Description> Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework9 Anonymous Blank Nodes hpi-lv:hasName Semantic Web Technologies http://hpi-web.de/ws1213#swt hpi-lv:takesPlace hpi-lv:hasRoom HS3 hpi-lv:hasDate Tue 13.30-15.00 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix hpi-lv: <http://hpi-web.de/Lecture#> . <http://hpi-web.de/ws1213#swt> hpi-lv:takesPlace [ hpi-lv:hasDate “Tue 13.30-15.00“; hpi-lv:hasRoom “HS3“ ] . Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework10 Dereferencable Blank Nodes Semantic Web Technologies hpi-lv:hasName http://hpi-web.de/ws1213#swt hpi-lv:takesPlace hpi-lv:hasRoom ID1 HS3 hpi-lv:hasDate Tue 13.30-15.00 <rdf:Description rdf:about=“http://hpi-web.de/ws1213#swt“> <hpi-lv:takesPlace rdf:nodeID=“ID1“/> <rdf:Description> <rdf:Description rdf:nodeID=“ID1“> <hpi-lv:hasDate>Tue 13.30-15.00</hpi-lv:hasDate> <hi-lv:hasRoom>HS3<hpi-lv:hasRoom> </rdf:Description> </rdf:RDF> Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework11 Dereferencable Blank Nodes Semantic Web Technologies hpi-lv:hasName http://hpi-web.de/ws1213#swt hpi-lv:takesPlace hpi-lv:hasRoom ID1 HS3 hpi-lv:hasDate Tue 13.30-15.00 @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix hpi-lv: <http://hpi-web.de/Lecture#> . <http://hpi-web.de/ws1213#swt> hpi-lv:takesPlace _:ID1 . _:ID1 hpi-lv:hasDate “Tue 13.30-15.00“; hpi-lv:hasRoom “HS3“ . Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework12 Lists • General Data structure to enumerate any resoures or literals • Only shortcuts, no additional semantic expressivity • Distinguish between • Container open list, i.e. extension (new entries) possible • Collections closed list, i.e. no extension possible Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework13 RDF Container http://hpi-web.de/ws1213#swt rdf:_1 http://hpi-web.de/BurgerAnton hpi-lv:hasParticipants rdf:_2 http://hpi-web.de/MuellerFranz rdf:_3 http://hpi-web.de/SchmidtJoseph rdf:type rdf:_4 http://hpi-web.de/SchulzeEgon rdf:Seq @prefix hpi-lv: <http://hpi-web.de/Lecture#> . @prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#> . Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework14 RDF Container <rdf:Description rdf:about=“http://hpi-web.de/ws1213#swt“> <lv:hasParticipants> <rdf:Seq> <rdf:li rdf:resource=“http://hpi-web.de/BurgerAnton“ /> <rdf:li rdf:resource=“http://hpi-web.de/MuellerFranz“ /> <rdf:li rdf:resource=“http://hpi-web.de/SchmidtJoseph“ /> <rdf:li rdf:resource=“http://hpi-web.de/SchulzeEgon“ /> </rdf:Seq> </lv:hasParticipants> </rdf:Description> @prefix hpi-lv: <http://hpi-web.de/Lecture#> . @prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#> . Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework15 RDF-Container • the root node of the container is assigned a container-typ via rdf:type • rdf:Bag unordered set of elements, there is no given order of elements • rdf:Seq ordered set of elements, • rdf:Alt defines alternatives of elements only one element of the given alternatives is relevant for the application Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework16 RDF Container @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix lv: <http://hpi-web.de/Lecture#> . @base <http://hpi-web.de/> :swt lv:hasParticipants [ a rdf:Seq; rdf:_1 <BurgerAnton>; rdf:_2 <MuellerFranz>; rdf:_3 <SchmidtJoseph>; rdf:_4 <SchulzeEgon> . ]. Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework17 @prefix hpi-lv: <http://hpi-web.de/Lecture#> . RDF-Collection @prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns#> . http://hpi-web.de/ws1213#swt lv:hasParticipants rdf:first http://hpi-web.de/BurgerAnton rdf:rest rdf:first http://hpi-web.de/MuellerFranz rdf:rest rdf:first http://hpi-web.de/SchmidtJoseph rdf:rest rdf:first http://hpi-web.de/SchulzeEgon rdf:rest rdf:nil List is splitted recursively in Head (first) and Tail (rest). Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework18 RDF-Collection <rdf:Description rdf:about=“http://hpi-web.de/ws1213#swt“> <lv:hasParticipant rdf:parseType=“Collection“> <rdf:Description rdf:about=“http://hpi-web.de/BurgerAnton“ /> <rdf:Description rdf:about=“http://hpi-web.de/MuellerFranz“ /> <rdf:Description rdf:about=“http://hpi-web.de/SchmidtJoseph“ /> <rdf:Description rdf:rabout=“http://hpi-web.de/SchulzeEgon“ /> </lv:hasParticipant> </rdf:Description> Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework19 RDF-Collection @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix lv: <http://hpi-web.de/Lecture#> . @base <http://hpi-web.de/> :swt lv:hasParticipant [ rdf:first <BurgerAnton>; rdf:rest [ rdf:first <MuellerFranz>; rdf:rest [ rdf:first <SchmidtJoseph>; rdf:rest [ rdf:first <SchulzeEgon>; rdf:rest rdf:nil . ]]]]. Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • Resource Description Framework20 RDF-Collection @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix lv: <http://hpi-web.de/Lecture#> . @base <http://hpi-web.de/> :swt lv:hasParticipant ( <BurgerAnton> <MuellerFranz> <SchmidtJoseph> <SchulzeEgon>) . Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam
  • 21 Rei fic ati on 05 How to Represent Facts? - RDF (4)Open HPI - Course: Semantic Web Technologies - Lecture 2: Semantic Web Basic Architecture I Semantic Web Technologies , Dr. Harald Sack, Hasso-Plattner-Institut, Universität Potsdam