Semantic Web                                 TechnologiesLecture 2: Semantic Web - Basic Architecture I              04: H...
2Lecture 2: Semantic Web - Basic Architecture I                      Open HPI - Course: Semantic Web Technologies    Seman...
3    04 How to Represent Facts? - RDF (3)Open HPI - Course: Semantic Web Technologies - Lecture 2: Semantic Web Basic Arch...
Bla                                                                  nk4                                                  ...
Resource                       Description                       Framework5    Multi Valued Relations and Blank Nodes    •...
Resource                       Description                       Framework5    Multi Valued Relations and Blank Nodes    •...
Resource                       Description                       Framework5    Multi Valued Relations and Blank Nodes    •...
Resource                       Description                       Framework5    Multi Valued Relations and Blank Nodes    •...
Resource                         Description                         Framework6    Multi Valued Relations and Blank Nodes ...
Resource                       Description                       Framework7    Blank Nodes    • Blank Nodes (Bnodes) can b...
Resource                            Description                            Framework8    Anonymous Blank Nodes            ...
Resource                          Description                          Framework9    Anonymous Blank Nodes                ...
Resource                            Description                            Framework10     Dereferencable Blank Nodes     ...
Resource                          Description                          Framework11     Dereferencable Blank Nodes         ...
Resource                        Description                        Framework12     Lists     • General Data structure to e...
Resource                            Description                            Framework13     RDF Container          http://h...
Resource                          Description                          Framework14       RDF Container     <rdf:Descriptio...
Resource                         Description                         Framework15     RDF-Container     • the root node of ...
Resource                         Description                         Framework16       RDF Container     @prefix rdf: <htt...
Resource                                      Description                                      Framework17                ...
Resource                       Description                       Framework18     RDF-Collection       <rdf:Description rdf...
Resource                       Description                       Framework19     RDF-Collection       @prefix rdf: <http:/...
Resource                       Description                       Framework20     RDF-Collection                 @prefix rd...
21                                                            Rei                                                         ...
Upcoming SlideShare
Loading in...5
×

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

526

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
526
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
62
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

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

  1. 1. 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)
  2. 2. 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. 3. 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
  4. 4. 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
  5. 5. 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
  6. 6. 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
  7. 7. 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
  8. 8. 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
  9. 9. 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
  10. 10. 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
  11. 11. 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
  12. 12. 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
  13. 13. 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
  14. 14. 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
  15. 15. 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
  16. 16. 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
  17. 17. 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
  18. 18. 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
  19. 19. 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
  20. 20. 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
  21. 21. 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
  22. 22. 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
  23. 23. 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
  24. 24. 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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×