Download presentation
Presentation is loading. Please wait.
Published byEmmeline Anderson Modified over 8 years ago
1
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Introduction to Digital Libraries Week 5: Social Graphs Old Dominion University Department of Computer Science CS 751/851 Spring 2010 Michael L. Nelson 02/08/10
2
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu From Documents… Dan lives in Zetland road, Bristol, UK with Libby and Craig. Dan's email address is danbri@w3.org. Libby's email address is libby.miller@bris.ac.uk. Craig's is craig@netgates.co.uk. Dan and Libby work for an organisation called "ILRT" whose website is at http://ilrt.org/. Craig works for "Netgates", an organisation whose website is at http://www.netgates.co.uk/. Craig's wife Liz lives in Bristol with Kathleen. Kathleen and Liz also work at "Netgates". Damian lives in London. Martin knows Craig, Damian, Dan and Libby quite well. Martin lives in Bristol and has an email address of m.l.poulter@bristol.ac.uk. (etc...) example from: http://www.foaf-project.org/original-introhttp://www.foaf-project.org/original-intro
3
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu …to Data Dan lives in Zetland road, Bristol, UK with Libby and Craig. Dan's email address is danbri@w3.org. Libby's email address is libby.miller@bris.ac.uk. Craig's is craig@netgates.co.uk. Dan and Libby work for an organisation called "ILRT" whose website is at http://ilrt.org/. Craig works for "Netgates", an organisation whose website is at http://www.netgates.co.uk/. Craig's wife Liz lives in Bristol with Kathleen. Kathleen and Liz also work at "Netgates". Damian lives in London. Martin knows Craig, Damian, Dan and Libby quite well. Martin lives in Bristol and has an email address of m.l.poulter@bristol.ac.uk. (etc...) example from: http://www.foaf-project.org/original-introhttp://www.foaf-project.org/original-intro
4
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Friend of a Friend FOAF -- currently, probably the most widespread application of RDF –http://www.foaf-project.org/http://www.foaf-project.org/ The next several examples taken from Edd Dumbill's "Finding Friends with XML and RDF" –http://www.ibm.com/developerworks/xml/lib rary/x-foaf.htmlhttp://www.ibm.com/developerworks/xml/lib rary/x-foaf.html
5
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Edd Describing Edd <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/"> Edd Dumbill
6
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu More Edd… Edd Dumbill edd <foaf:depiction rdf:resource="http://heddley.com/edd/images/edd-shoulders.jpg" />
7
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Edd Has a Friend Edd Dumbill... Simon St.Laurent
8
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Open World Means Merger "The Great Triple Store in the Sky" <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/"> Edd Dumbill Simon St.Laurent Eric van der Vlist <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/">
9
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Merged Result <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/"> Edd Dumbill Simon St.Laurent Eric van der Vlist
10
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Additional Fields Peter Parker Male Mr Peter Parker cf2f4bd069302febd8d7c26d803f63fa7f20bd82
11
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu foaf:knows Relationship … Harry Osborn Peter Parker Aunt May
12
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Other Relationships <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rel="http://www.perceive.net/schemas/relationship/"> Spiderman Green Goblin Peter Parker Harry Osborn Norman Osborn
13
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:dc="http://purl.org/dc/elements/1.1/"> Peter Parker Spiderman Green Goblin Battle on the Statue Of Liberty With DC
14
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Autodiscovery for FOAF In the head of your.html file: <link rel="meta" type="application/rdf+xml" title="FOAF" href="foaf.rdf" /> Example: http://www.w3.org/People/EM/http://www.w3.org/People/EM/ <link rel="meta" type="application/rdf+xml" title="Contact" href="contact" /> Link to: http://www.w3.org/People/EM/contacthttp://www.w3.org/People/EM/contact See: http://wiki.foaf-project.org/w/Autodiscoveryhttp://wiki.foaf-project.org/w/Autodiscovery
15
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Xhtml Friends Network FOAF is either done with separate RDF files, or integrated into the HTML with RDFa with and tags XFN is a simpler, albeit lower fidelity approach to the same thing by using the "rel" attribute in or elements –next several examples from: http://gmpg.org/xfn/http://gmpg.org/xfn/ –an example of "microformats" -- the bottom-up contrast to RDF http://microformats.org/
16
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu XFN Example from: David wrote about a new theory... to: <a rel="colleague met" href="http://d.example.com/2003/11/08.html#T2134"> David wrote about a new theory... In HTML, rel can take multiple space separate values. In Atom, rel can only take a single value.
17
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu More Precision David wrote about a new theory...
18
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu 18 Different rel Types… http://gmpg.org/xfn/11 perhaps the most interesting: rel="me" useful for linking to other versions of "me" at different sites…
19
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu MLN
20
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Google Social Graph API What kind of services can we build on the various FOAF & XFN links out there? Google Social Graph –http://code.google.com/apis/socialgraph/http://code.google.com/apis/socialgraph/ –next several examples taken from the above website See also Yahoo's SearchMonkey –http://developer.yahoo.com/searchmonkey/smguid e/profile_vocab.htmlhttp://developer.yahoo.com/searchmonkey/smguid e/profile_vocab.html
21
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Mining me links XFN rel="me" links FOAF converted to me : –elements: weblog, homepage, openid, mbox_sha1sum –links:.html to.rdf others: –foaf:knows --> xfn:contact –more info: http://code.google.com/apis/socialgraph/docs/edg es.html http://code.google.com/apis/socialgraph/docs/edg es.html
22
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu The Social Graph API http://socialgraph.apis.google.com/ ? & & Where the possible methods are: lookup: low-level access to the graph. otherme: given one or more of a person's identifiers (e.g. URLs), return other identifiers for that person. testparse: test your site's XFN or FOAF to see what the Social Graph API's parsers find in it
23
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu SocialGraph Node Mapper http://brad.social-network.example.com http://brad.social-network.example.com/ http://BRAD.SOCIAL-NETWORK.EXAMPLE.COM/ http://social-network.example.com/viewBlog?user=brad http://social-network.example.com/viewProfile?user=brad http://social-network.example.com:80/viewBlog?user=brad http://social-network.example.com/users/brad/data/foaf http://brad.social-network.example.com/ http://social-network.example.com/viewBlog?user=brad http://social-network.example.com/viewProfile?user=brad http://social-network.example.com/users/bob/data/foaf sgn://social-network.example.com/?ident=brad see: http://code.google.com/p/google-sgnodemapper/http://code.google.com/p/google-sgnodemapper/
24
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Site Connections (me links) My music blogmusic blog My research group blogresearch group blog My homepagehomepage Carlton's LinkedIn pageLinkedIn page
25
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Friends Kevin Marks home pagehome page Others?
26
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Visualizing RDF: Welkin Visualization of: http://www.w3.org/People/EM/contact with http://simile.mit.edu/welkin/http://www.w3.org/People/EM/contacthttp://simile.mit.edu/welkin/
27
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Others FOAF Explorer –http://xml.mfd-consult.dk/foaf/explorer/http://xml.mfd-consult.dk/foaf/explorer/ –(didn't work for me) Zitgist –http://dataviewer.zitgist.com/http://dataviewer.zitgist.com/ –(also didn't work for me) FOAFer –http://crschmidt.net/foaf/foafer.htmlhttp://crschmidt.net/foaf/foafer.html –(not compatible w/ my version of Mozilla) FOAFnaut –http://www.foafnaut.org/http://www.foafnaut.org/ –(doesn't work; can't find it at jibbering.com)
28
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu QDOS tools Upload a FOAF profile: –http://foaf.qdos.com/pinghttp://foaf.qdos.com/ping Find a FOAF profile: –http://foaf.qdos.com/findhttp://foaf.qdos.com/find
29
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Viewing Results: Eric Miller http://foaf.qdos.com/find/?q=em%40w3.org
30
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu FOAF.Vix One that apparently works! –http://foaf-visualizer.org/http://foaf-visualizer.org/ –http://foaf- visualizer.org/?uri=http://wojciechpolak.org/ foaf.rdfhttp://foaf- visualizer.org/?uri=http://wojciechpolak.org/ foaf.rdf
31
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Sample Output
32
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu RDF Validator W3C Validator –http://www.w3.org/RDF/Validator/http://www.w3.org/RDF/Validator/ –(others available) –for: http://sw.deri.org/2004/08/foafgwy/demos.r df (validator link) http://sw.deri.org/2004/08/foafgwy/demos.r dfvalidator link –but for: http://www.w3.org/People/EM/contact I get an error (validator link) http://www.w3.org/People/EM/contactvalidator link
33
ODU CS 751/851 Spring 2010 Michael L. Nelson mln@cs.odu.edu Validator Error
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.