SlideShare una empresa de Scribd logo
1 de 25
Descargar para leer sin conexión
Can your website be your
API and real life
Glenn Jones
SemanticCamp London
17 February 2008
Drew Mc


            • xx
            • xx
            • xx




Drew McLellan presentation
Can Your Website be Your API?

at Web Standards Group London
October 2006
Real life example
Portable social networks by parse Microformats
             What we are learning
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
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
<a rel=quot;mequot; href=quot;/user/adactio/friends/quot;>Friends</a>
<a rel=quot;mequot; href=quot;/t/friendsquot;>View All…</a>
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
Representative profile
Choosing the best profile from a collection.

• rel=quot;mequot; on class=quot;urlquot;
• url=source
  • Do steps 1 and 2 based on domain
• The first one


In the end let the user decide
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
<a rel=quot;prevquot; class=quot;section_linksquot;
href=quot;/t?page=2quot;>Older »</a>
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 !!!
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
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=quot;vcardquot;> <a class=quot;fn n urlquot; rel=quot;friend metquot;
href=quot;../adactioquot;> <span class=quot;given-namequot;>Jeremy</span>
<span class=quot;family-namequot;>Keith</span>
</a> </li>
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
Data portability


  Parsing POSH patterns
and extending mircoformats
POSH
For the acronym, see POSH. For the British singer
 nicknamed quot;Posh Spicequot;, see Victoria Beckham

           Plain Old Semantic HTML
          Patterns Of Semantic HTML
Drew Mc


  • xx
  • xx
  • xx




We are getting there !
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.
Why bother
This idea is very democratic in terms of
       different software access



    Clients                    Spiders
                 Html with
               embedded data
                               Machine



                 Libraries
Creative Commons Attribution-Non-Commercial 2.0
           UK: England & Wales Licence.

          Copyright Glenn Jones 2008
             www.glennjones.net

Más contenido relacionado

Similar a Can your website be your API and real life

Introduction to Linked Data and Web Payments
Introduction to Linked Data and Web Payments Introduction to Linked Data and Web Payments
Introduction to Linked Data and Web Payments Brent Shambaugh
 
Web3.0 or The semantic web
Web3.0 or The semantic webWeb3.0 or The semantic web
Web3.0 or The semantic webDarren Wood
 
Semantic Web, an introduction for bioscientists
Semantic Web, an introduction for bioscientistsSemantic Web, an introduction for bioscientists
Semantic Web, an introduction for bioscientistsEmanuele Della Valle
 
IRJET - Review on Search Engine Optimization
IRJET - Review on Search Engine OptimizationIRJET - Review on Search Engine Optimization
IRJET - Review on Search Engine OptimizationIRJET Journal
 
REST Introduction (PHP London)
REST Introduction (PHP London)REST Introduction (PHP London)
REST Introduction (PHP London)Paul James
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to APIelliando dias
 
Introduction to Semantic Web for GIS Practitioners
Introduction to Semantic Web for GIS PractitionersIntroduction to Semantic Web for GIS Practitioners
Introduction to Semantic Web for GIS PractitionersEmanuele Della Valle
 
Brian Oberkirch, Tantek Celik & Joseph Smarr @ FOWA Miami
Brian Oberkirch, Tantek Celik & Joseph Smarr @ FOWA MiamiBrian Oberkirch, Tantek Celik & Joseph Smarr @ FOWA Miami
Brian Oberkirch, Tantek Celik & Joseph Smarr @ FOWA Miamicarsonsystems
 
Research Perspectives on Web 2.0 Mash-up Environments
Research Perspectives on Web 2.0 Mash-up EnvironmentsResearch Perspectives on Web 2.0 Mash-up Environments
Research Perspectives on Web 2.0 Mash-up EnvironmentsHendrik Drachsler
 
Html intake 38 lect1
Html intake 38 lect1Html intake 38 lect1
Html intake 38 lect1ghkadous
 
FOWA Miami: Future of Social Networks
FOWA Miami: Future of Social NetworksFOWA Miami: Future of Social Networks
FOWA Miami: Future of Social Networksbrianoberkirch
 
Nt1310 Final Exam Questions And Answers
Nt1310 Final Exam Questions And AnswersNt1310 Final Exam Questions And Answers
Nt1310 Final Exam Questions And AnswersLisa Williams
 
Open Data, Visualization & Usability for Online News Delivery
Open Data,  Visualization &  Usability for  Online News DeliveryOpen Data,  Visualization &  Usability for  Online News Delivery
Open Data, Visualization & Usability for Online News DeliveryMohan Krishnan
 
WebAppSec Updates from W3C
WebAppSec Updates from W3CWebAppSec Updates from W3C
WebAppSec Updates from W3CNatasha Rooney
 
E-commerce Lab work
E-commerce Lab workE-commerce Lab work
E-commerce Lab workPragya Bisht
 
Fundamentals of Web Development For Non-Developers
Fundamentals of Web Development For Non-DevelopersFundamentals of Web Development For Non-Developers
Fundamentals of Web Development For Non-DevelopersLemi Orhan Ergin
 

Similar a Can your website be your API and real life (20)

Microformats
MicroformatsMicroformats
Microformats
 
Introduction to Linked Data and Web Payments
Introduction to Linked Data and Web Payments Introduction to Linked Data and Web Payments
Introduction to Linked Data and Web Payments
 
Web3.0 or The semantic web
Web3.0 or The semantic webWeb3.0 or The semantic web
Web3.0 or The semantic web
 
Semantic Web, an introduction for bioscientists
Semantic Web, an introduction for bioscientistsSemantic Web, an introduction for bioscientists
Semantic Web, an introduction for bioscientists
 
IRJET - Review on Search Engine Optimization
IRJET - Review on Search Engine OptimizationIRJET - Review on Search Engine Optimization
IRJET - Review on Search Engine Optimization
 
REST Introduction (PHP London)
REST Introduction (PHP London)REST Introduction (PHP London)
REST Introduction (PHP London)
 
Microformats HTML to API
Microformats HTML to APIMicroformats HTML to API
Microformats HTML to API
 
Introduction to Semantic Web for GIS Practitioners
Introduction to Semantic Web for GIS PractitionersIntroduction to Semantic Web for GIS Practitioners
Introduction to Semantic Web for GIS Practitioners
 
eMarketing Guide
eMarketing  GuideeMarketing  Guide
eMarketing Guide
 
Brian Oberkirch, Tantek Celik & Joseph Smarr @ FOWA Miami
Brian Oberkirch, Tantek Celik & Joseph Smarr @ FOWA MiamiBrian Oberkirch, Tantek Celik & Joseph Smarr @ FOWA Miami
Brian Oberkirch, Tantek Celik & Joseph Smarr @ FOWA Miami
 
Research Perspectives on Web 2.0 Mash-up Environments
Research Perspectives on Web 2.0 Mash-up EnvironmentsResearch Perspectives on Web 2.0 Mash-up Environments
Research Perspectives on Web 2.0 Mash-up Environments
 
Html intake 38 lect1
Html intake 38 lect1Html intake 38 lect1
Html intake 38 lect1
 
Pratical Deep Dive into the Semantic Web - #smconnect
Pratical Deep Dive into the Semantic Web - #smconnectPratical Deep Dive into the Semantic Web - #smconnect
Pratical Deep Dive into the Semantic Web - #smconnect
 
FOWA Miami: Future of Social Networks
FOWA Miami: Future of Social NetworksFOWA Miami: Future of Social Networks
FOWA Miami: Future of Social Networks
 
Nt1310 Final Exam Questions And Answers
Nt1310 Final Exam Questions And AnswersNt1310 Final Exam Questions And Answers
Nt1310 Final Exam Questions And Answers
 
Open Data, Visualization & Usability for Online News Delivery
Open Data,  Visualization &  Usability for  Online News DeliveryOpen Data,  Visualization &  Usability for  Online News Delivery
Open Data, Visualization & Usability for Online News Delivery
 
WebAppSec Updates from W3C
WebAppSec Updates from W3CWebAppSec Updates from W3C
WebAppSec Updates from W3C
 
html5 project.pptx
html5 project.pptxhtml5 project.pptx
html5 project.pptx
 
E-commerce Lab work
E-commerce Lab workE-commerce Lab work
E-commerce Lab work
 
Fundamentals of Web Development For Non-Developers
Fundamentals of Web Development For Non-DevelopersFundamentals of Web Development For Non-Developers
Fundamentals of Web Development For Non-Developers
 

Más de Glenn Jones

Web Intents/Actions - UX Challenges
Web Intents/Actions - UX ChallengesWeb Intents/Actions - UX Challenges
Web Intents/Actions - UX ChallengesGlenn Jones
 
Microformats and SEO
Microformats and SEOMicroformats and SEO
Microformats and SEOGlenn Jones
 
Choosing the Right Words - Web Intents/Actions
Choosing the Right Words - Web Intents/ActionsChoosing the Right Words - Web Intents/Actions
Choosing the Right Words - Web Intents/ActionsGlenn Jones
 
The page and the desktop
The page and the desktopThe page and the desktop
The page and the desktopGlenn Jones
 
What a UX Designer needs to know about Solr
What a UX Designer  needs to know about SolrWhat a UX Designer  needs to know about Solr
What a UX Designer needs to know about SolrGlenn Jones
 
Re-using data people have left around the web
Re-using data people have left around the webRe-using data people have left around the web
Re-using data people have left around the webGlenn Jones
 
Re-using social media data
Re-using social media dataRe-using social media data
Re-using social media dataGlenn Jones
 
Experiments in Data Portability 2
Experiments in Data Portability 2Experiments in Data Portability 2
Experiments in Data Portability 2Glenn Jones
 
How to connect social media with open standards
How to connect social media with open standardsHow to connect social media with open standards
How to connect social media with open standardsGlenn Jones
 
How I built the demo's
How I built the demo'sHow I built the demo's
How I built the demo'sGlenn Jones
 
Experiments in Data Portability
Experiments in Data PortabilityExperiments in Data Portability
Experiments in Data PortabilityGlenn Jones
 

Más de Glenn Jones (12)

Web Intents/Actions - UX Challenges
Web Intents/Actions - UX ChallengesWeb Intents/Actions - UX Challenges
Web Intents/Actions - UX Challenges
 
Beyond the page
Beyond the pageBeyond the page
Beyond the page
 
Microformats and SEO
Microformats and SEOMicroformats and SEO
Microformats and SEO
 
Choosing the Right Words - Web Intents/Actions
Choosing the Right Words - Web Intents/ActionsChoosing the Right Words - Web Intents/Actions
Choosing the Right Words - Web Intents/Actions
 
The page and the desktop
The page and the desktopThe page and the desktop
The page and the desktop
 
What a UX Designer needs to know about Solr
What a UX Designer  needs to know about SolrWhat a UX Designer  needs to know about Solr
What a UX Designer needs to know about Solr
 
Re-using data people have left around the web
Re-using data people have left around the webRe-using data people have left around the web
Re-using data people have left around the web
 
Re-using social media data
Re-using social media dataRe-using social media data
Re-using social media data
 
Experiments in Data Portability 2
Experiments in Data Portability 2Experiments in Data Portability 2
Experiments in Data Portability 2
 
How to connect social media with open standards
How to connect social media with open standardsHow to connect social media with open standards
How to connect social media with open standards
 
How I built the demo's
How I built the demo'sHow I built the demo's
How I built the demo's
 
Experiments in Data Portability
Experiments in Data PortabilityExperiments in Data Portability
Experiments in Data Portability
 

Último

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 

Último (20)

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 

Can your website be your API and real life

  • 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.
  • 7.
  • 10. 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
  • 11. Representative profile Choosing the best profile from a collection. • rel=quot;mequot; on class=quot;urlquot; • url=source • Do steps 1 and 2 based on domain • The first one In the end let the user decide
  • 12. 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
  • 14. 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 !!!
  • 15. 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
  • 16. 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=quot;vcardquot;> <a class=quot;fn n urlquot; rel=quot;friend metquot; href=quot;../adactioquot;> <span class=quot;given-namequot;>Jeremy</span> <span class=quot;family-namequot;>Keith</span> </a> </li>
  • 17. 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
  • 18.
  • 19. Data portability Parsing POSH patterns and extending mircoformats
  • 20. POSH For the acronym, see POSH. For the British singer nicknamed quot;Posh Spicequot;, see Victoria Beckham Plain Old Semantic HTML Patterns Of Semantic HTML
  • 21.
  • 22. Drew Mc • xx • xx • xx We are getting there !
  • 23. 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.
  • 24. Why bother This idea is very democratic in terms of different software access Clients Spiders Html with embedded data Machine Libraries
  • 25. Creative Commons Attribution-Non-Commercial 2.0 UK: England & Wales Licence. Copyright Glenn Jones 2008 www.glennjones.net