SlideShare a Scribd company logo
Acre: Server-side JavaScript
on Freebase.com

San Francisco JavaScript Meetup #9
at CBS Interactive

Will Moffat
The Short Pitch
Freebase: a topic DNS
11M topics - Actresses (37,079)
Cheeses (488)
Football Players (16,568)
TV Programs (33,630)



                       arrested_develop
MQL: a JSON query language
“Russian cosmonauts”
MQL: a JSON query language
“Russian cosmonauts”




 [{
   "type": "/spaceflight/astronaut",
   "name": null,
   "/people/person/nationality": "russia"
 }]
MQL: a JSON query language
“Russian cosmonauts”



 http://api.freebase.com/api/service/mqlread?query=
 [{
    "type": "/spaceflight/astronaut",
    "name": null,
    "/people/person/nationality": "russia"
 }]
MQL: a JSON query language
MQL: a JSON query language
“Russian cosmonauts”
Acre: Server Side JavaScript for Freebase




         Hosted app server: freebaseapps.com
         Runs untrusted user code

         Sandboxed
           instruction counting
           memory, time quotas
Acre: for open data apps


Oauth - talk to flickr, Google, Netflix, etc

Acre Template Language

Client-side widgets: Freebase Suggest
View Source comes to web apps
ServerSide Javascript on Freebase - SF JavaScript meetup #9
FreebaseApps.com
Thank you!




           freebase.com

http://www.slideshare.net/tag/freebase

      #freebase on freenode.net
Keys: more examples of web ids


            Will Smith
             (Actor)
Keys: more examples of web ids


  /index.html?curid=154698       Will Smith
                                  (Actor)     /people/s/will_smith

      /name/nm0000226

                                              /RoleDisplay/86971

/BandsAndArtists/S/Smith,_Will

                                               /artist/Will+Smith

        willsmith.com

                                                  /WillSmith

       /artist/Will+Smith

                                              /music/Will+Smith

 /Will-Smith/e/B000APUOJC
Slicing and dicing data using MQL
“Tropical storms in the 90s”




         [{
              "type": "/meteorology/tropical_cyclone",
              "name" : null,
              "formed>=" : "1990",
              "a:formed<=": "2000"
         }]
MQL: sorting
“French actresses born pre-WWII”




         [{
           "type": "/film/actor",
           "name": null,
           "/people/person/gender": "female",
           "/people/person/date_of_birth": null,
           "/people/person/date_of_birth<=": "1939",
           "/people/person/nationality": "France",
           "sort": "/people/person/date_of_birth"
         }]

More Related Content

PDF
Freebase API @ HackTO 2
PPTX
Ny Freebase Workshop 10 Dec 2009
PPT
Literature Circles
PPT
ქართული ხუროთმოძღვრების ძეგლები
PPT
Filipiniana 09
PPT
Systems
PPTX
El Curriculum Partes
PDF
Freebase - Semantic Technologies 2010 Code Camp
Freebase API @ HackTO 2
Ny Freebase Workshop 10 Dec 2009
Literature Circles
ქართული ხუროთმოძღვრების ძეგლები
Filipiniana 09
Systems
El Curriculum Partes
Freebase - Semantic Technologies 2010 Code Camp

Similar to ServerSide Javascript on Freebase - SF JavaScript meetup #9 (6)

ODP
How to hack on wikipedia
PDF
Deconstructing freebase
PDF
BBC Programmes and Music on the Linking Open Data Cloud
PDF
Freebase: Wikipedia Mining 20080416
PDF
Text Analytic Summit 2010
PDF
Remixing and distribution of web content made dead easy
How to hack on wikipedia
Deconstructing freebase
BBC Programmes and Music on the Linking Open Data Cloud
Freebase: Wikipedia Mining 20080416
Text Analytic Summit 2010
Remixing and distribution of web content made dead easy
Ad

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Empathic Computing: Creating Shared Understanding
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Approach and Philosophy of On baking technology
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Machine Learning_overview_presentation.pptx
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Electronic commerce courselecture one. Pdf
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
NewMind AI Weekly Chronicles - August'25-Week II
Cloud computing and distributed systems.
Empathic Computing: Creating Shared Understanding
20250228 LYD VKU AI Blended-Learning.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Machine learning based COVID-19 study performance prediction
Dropbox Q2 2025 Financial Results & Investor Presentation
Approach and Philosophy of On baking technology
Chapter 3 Spatial Domain Image Processing.pdf
sap open course for s4hana steps from ECC to s4
Assigned Numbers - 2025 - Bluetooth® Document
Building Integrated photovoltaic BIPV_UPV.pdf
Machine Learning_overview_presentation.pptx
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Electronic commerce courselecture one. Pdf
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
NewMind AI Weekly Chronicles - August'25-Week II
Ad

ServerSide Javascript on Freebase - SF JavaScript meetup #9

  • 1. Acre: Server-side JavaScript on Freebase.com San Francisco JavaScript Meetup #9 at CBS Interactive Will Moffat
  • 3. 11M topics - Actresses (37,079)
  • 6. TV Programs (33,630) arrested_develop
  • 7. MQL: a JSON query language “Russian cosmonauts”
  • 8. MQL: a JSON query language “Russian cosmonauts” [{ "type": "/spaceflight/astronaut", "name": null, "/people/person/nationality": "russia" }]
  • 9. MQL: a JSON query language “Russian cosmonauts” http://api.freebase.com/api/service/mqlread?query= [{ "type": "/spaceflight/astronaut", "name": null, "/people/person/nationality": "russia" }]
  • 10. MQL: a JSON query language
  • 11. MQL: a JSON query language “Russian cosmonauts”
  • 12. Acre: Server Side JavaScript for Freebase Hosted app server: freebaseapps.com Runs untrusted user code Sandboxed instruction counting memory, time quotas
  • 13. Acre: for open data apps Oauth - talk to flickr, Google, Netflix, etc Acre Template Language Client-side widgets: Freebase Suggest
  • 14. View Source comes to web apps
  • 17. Thank you! freebase.com http://www.slideshare.net/tag/freebase #freebase on freenode.net
  • 18. Keys: more examples of web ids Will Smith (Actor)
  • 19. Keys: more examples of web ids /index.html?curid=154698 Will Smith (Actor) /people/s/will_smith /name/nm0000226 /RoleDisplay/86971 /BandsAndArtists/S/Smith,_Will /artist/Will+Smith willsmith.com /WillSmith /artist/Will+Smith /music/Will+Smith /Will-Smith/e/B000APUOJC
  • 20. Slicing and dicing data using MQL “Tropical storms in the 90s” [{ "type": "/meteorology/tropical_cyclone", "name" : null, "formed>=" : "1990", "a:formed<=": "2000" }]
  • 21. MQL: sorting “French actresses born pre-WWII” [{ "type": "/film/actor", "name": null, "/people/person/gender": "female", "/people/person/date_of_birth": null, "/people/person/date_of_birth<=": "1939", "/people/person/nationality": "France", "sort": "/people/person/date_of_birth" }]

Editor's Notes

  • #3: 1) topic: people, places, films 2) you&amp;#x2019;ve got a page about something 3) plug into freebase to bring in related content from the web
  • #4: CC license 11M topics, each with a strong, stable identifier + list of keys to other web sites.
  • #8: designed to be used in JS
  • #9: http://www.freebase.com/app/queryeditor?q=[{%22type%22:%22/spaceflight/astronaut%22,%22name%22:null,%22/people/person/nationality%22:%22russia%22}]
  • #10: http://www.freebase.com/app/queryeditor?q=[{%22type%22:%22/spaceflight/astronaut%22,%22name%22:null,%22/people/person/nationality%22:%22russia%22}]
  • #11: http://www.freebase.com/app/queryeditor?q=[{%22type%22:%22/spaceflight/astronaut%22,%22name%22:null,%22/people/person/nationality%22:%22russia%22}]
  • #13: JS powerful language, use it on both client &amp; server. SSJS: write complete apps in HTML, JS &amp; CSS. Rich ecosystem of widgets, libraries. Community. Rhino image from Paul Houle. http://www.mozilla.org/rhino/
  • #14: put this together to get DEMO: http://solutions.apps.freebase.dev.freebaseapps.com/suggest Auto-complete: musical artists on twitter looks up their username grabs tweets
  • #16: * all code is BSD licensed * clone to edit your own copy * example of acre template: show actors starring in this film
  • #17: screencast: * Show google news stories from of top 3 companies in selected industry * gets deep into code
  • #18: talk to me afterwards - lots of interesting topics. you can use SSJS to extend query language