Presentation is loading. Please wait.

Presentation is loading. Please wait.

ODU CS 751/851 Spring 2011 Michael L. Nelson Introduction to Digital Libraries Week 5: Social Graphs Old Dominion University Department.

Similar presentations


Presentation on theme: "ODU CS 751/851 Spring 2011 Michael L. Nelson Introduction to Digital Libraries Week 5: Social Graphs Old Dominion University Department."— Presentation transcript:

1 ODU CS 751/851 Spring 2011 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 2011 Michael L. Nelson 02/08/11

2 ODU CS 751/851 Spring 2011 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 2011 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 2011 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 2011 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 2011 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 2011 Michael L. Nelson mln@cs.odu.edu Edd Has a Friend Edd Dumbill... Simon St.Laurent

8 ODU CS 751/851 Spring 2011 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 2011 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 2011 Michael L. Nelson mln@cs.odu.edu Additional Fields Peter Parker Male Mr Peter Parker cf2f4bd069302febd8d7c26d803f63fa7f20bd82

11 ODU CS 751/851 Spring 2011 Michael L. Nelson mln@cs.odu.edu foaf:knows Relationship … Harry Osborn Peter Parker Aunt May

12 ODU CS 751/851 Spring 2011 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 2011 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 2011 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 2011 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 2011 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 2011 Michael L. Nelson mln@cs.odu.edu More Precision David wrote about a new theory...

18 ODU CS 751/851 Spring 2011 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 2011 Michael L. Nelson mln@cs.odu.edu MLN http://www.cs.odu.edu/~mln/personal/

20 ODU CS 751/851 Spring 2011 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 2011 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 2011 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 2011 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 2011 Michael L. Nelson mln@cs.odu.edu Site Connections (me links) My music blogmusic blog My research group blogresearch group blog My homepagehomepage –my personal page from my homepagepersonal page Carlton's LinkedIn pageLinkedIn page

25 ODU CS 751/851 Spring 2011 Michael L. Nelson mln@cs.odu.edu Friends Kevin Marks home pagehome page Others?

26 ODU CS 751/851 Spring 2011 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 2011 Michael L. Nelson mln@cs.odu.edu Visualizing RDF: Zitgist Zitgist –http://dataviewer.zitgist.com/http://dataviewer.zitgist.com/ http://dataviewer.zitgist.com/?uri=http%3A//www.w3.org/People/EM/contact –other RDF too: http://dataviewer.zitgist.com/?uri=http%3A//zitgist.com/m usic/record/35aec650-d7ac-4043-abb3-50a014ab48b3http://dataviewer.zitgist.com/?uri=http%3A//zitgist.com/m usic/record/35aec650-d7ac-4043-abb3-50a014ab48b3 where'd that ID come from? –http://musicbrainz.org/release/35aec650-d7ac-4043-abb3- 50a014ab48b3.htmlhttp://musicbrainz.org/release/35aec650-d7ac-4043-abb3- 50a014ab48b3.html –http://musicbrainz.org/mm-2.1/album/35aec650-d7ac- 4043-abb3-50a014ab48b3http://musicbrainz.org/mm-2.1/album/35aec650-d7ac- 4043-abb3-50a014ab48b3

28 ODU CS 751/851 Spring 2011 Michael L. Nelson mln@cs.odu.edu Others FOAF Explorer –http://xml.mfd-consult.dk/foaf/explorer/http://xml.mfd-consult.dk/foaf/explorer/ http://xml.mfd- consult.dk/foaf/explorer/?foaf=http://www.w3.org/People/EM/contacthttp://xml.mfd- consult.dk/foaf/explorer/?foaf=http://www.w3.org/People/EM/contact 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/ (dead. if only there was a way to go back in time…)

29 ODU CS 751/851 Spring 2011 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

30 ODU CS 751/851 Spring 2011 Michael L. Nelson mln@cs.odu.edu Viewing Results: Eric Miller http://foaf.qdos.com/find/?q=em%40w3.org

31 ODU CS 751/851 Spring 2011 Michael L. Nelson mln@cs.odu.edu FOAF.Vix a pretty nice one… –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 http://foaf- visualizer.org/?uri=http://www.w3.org/People/E M/contacthttp://foaf- visualizer.org/?uri=http://www.w3.org/People/E M/contact

32 ODU CS 751/851 Spring 2011 Michael L. Nelson mln@cs.odu.edu Sample Output

33 ODU CS 751/851 Spring 2011 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

34 ODU CS 751/851 Spring 2011 Michael L. Nelson mln@cs.odu.edu Validator OK

35 ODU CS 751/851 Spring 2011 Michael L. Nelson mln@cs.odu.edu Validator Error


Download ppt "ODU CS 751/851 Spring 2011 Michael L. Nelson Introduction to Digital Libraries Week 5: Social Graphs Old Dominion University Department."

Similar presentations


Ads by Google