Can your website be your API and real life

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    Can your website be your API and real life - Presentation Transcript

    1. Can your website be your API and real life Glenn Jones SemanticCamp London 17 February 2008
    2. Drew Mc • xx • xx • xx Drew McLellan presentation Can Your Website be Your API? at Web Standards Group London October 2006
    3. Real life example Portable social networks by parse Microformats What we are learning
    4. Portable social networks The current topics which are being explored as part of defining the portable social networks solutions • Finding interlinked personal data / social graph • Pagination of data • Design patterns • Reciprocal relationship validation • Defining the representative profile • Authorisation • Data granulation
    5. rel=“me” and rel=“friend” Many of the web 2 social networking sites are now using these simple attributes. Twitter, Flickr, Last FM etc More importantly we are now seeing the first services that provide social graph data • Googles social graph API • Plaxo social graph demo • UfXtract portable social network API
    6. <a rel=\"me\" href=\"/user/adactio/friends/\">Friends</a>
    7. <a rel=\"me\" href=\"/t/friends\">View All…</a>
    8. Reciprocal relationship validation Only having the right people in my friends list. 1. You start your parser from a controlled source 2. You trust pages/sites with reciprocal rel=“me” links 3. Where possible restrict parser using Url fragments so that user generated content does not inject unwanted relationship links. (Not in spec) In the end let the user decide
    9. Representative profile Choosing the best profile from a collection. • rel=\"me\" on class=\"url\" • url=source • Do steps 1 and 2 based on domain • The first one In the end let the user decide
    10. Pagination of data and rel=“next” The use of rel=“next” is starting to be used mainly to move parsers through friends list pages. rel=“me” Link or page profile/friends list data rel=“next” Used to page non profile/friends list rel=“next me” This combination can cause issues in mixed content pages
    11. <a rel=\"prev\" class=\"section_links\" href=\"/t?page=2\">Older »</a>
    12. Using Url fragment identification The microformats parser should all support Url fragment identification. So you can mark-up groups of information and provide pagination in context of a page fragment. http://twitter.com/glennjones/#proflies http://twitter.com/glennjones/#posts The spec says that Rel=“me” should NOT support Url fragments !!!
    13. We have not got patterns for Url design There are no standards/conventions for designing common querystring patterns, REST or not http://twitter.com/t/friends/2 http://twitter.com/t/friends?page=2 http://twitter.com/t/friends/page=2&pagesize=10 Without embedded linkage within the web pages our libraries have to be domain specific
    14. Design patterns – hcard-xfn The growing convention of the use of rel=“me” and rel=“next” is starting to form architectural design patterns. We also have mircoformat hcard-xfn pattern for additional data fidelity around relationships. <li class=\"vcard\"> <a class=\"fn n url\" rel=\"friend met\" href=\"../adactio\"> <span class=\"given-name\">Jeremy</span> <span class=\"family-name\">Keith</span> </a> </li>
    15. People vs machines • The lister/detail model means a lot of loads • The level of data needs differ • Web pages can contain multiple groups of data People Html Machines
    16. Data portability Parsing POSH patterns and extending mircoformats
    17. POSH For the acronym, see POSH. For the British singer nicknamed \"Posh Spice\", see Victoria Beckham Plain Old Semantic HTML Patterns Of Semantic HTML
    18. Drew Mc • xx • xx • xx We are getting there !
    19. oAuth and privacy We are currently only parsing public data from open web pages. We need some sort of access control which allows us to parse pages behind logons.
    20. Why bother This idea is very democratic in terms of different software access Clients Spiders Html with embedded data Machine Libraries
    21. Creative Commons Attribution-Non-Commercial 2.0 UK: England & Wales Licence. Copyright Glenn Jones 2008 www.glennjones.net

    + Glenn JonesGlenn Jones, 2 years ago

    custom

    587 views, 1 favs, 0 embeds more stats

    This talk to tries and answer the question Drew McL more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 587
      • 587 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 5
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories