ServerSide Javascript on Freebase - SF JavaScript meetup #9
Upcoming SlideShare
Loading in...5
×
 

ServerSide Javascript on Freebase - SF JavaScript meetup #9

on

  • 2,527 views

Talk by Will Moffat on Acre: the Sever-Side JavaScript environment for Freebase.com

Talk by Will Moffat on Acre: the Sever-Side JavaScript environment for Freebase.com

Statistics

Views

Total Views
2,527
Views on SlideShare
2,361
Embed Views
166

Actions

Likes
2
Downloads
17
Comments
0

3 Embeds 166

http://blog.freebase.com 161
http://www.slideshare.net 4
http://127.0.0.1:8795 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

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

ServerSide Javascript on Freebase - SF JavaScript meetup #9 ServerSide Javascript on Freebase - SF JavaScript meetup #9 Presentation Transcript

  • 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
  • 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" }]