This document summarizes a presentation about Acre, which allows running server-side JavaScript on Freebase.com. It introduces Freebase as a topic database containing over 11 million topics. It describes MQL, the JSON query language used to query Freebase. Examples are provided to find Russian cosmonauts and tropical storms from the 1990s. The presentation also discusses hosting apps on FreebaseApps.com and using Acre's templating language and widgets like suggestion.
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
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"
}]
JS powerful language, use it on both client & server.
SSJS: write complete apps in HTML, JS & CSS.
Rich ecosystem of widgets, libraries. Community.
Rhino image from Paul Houle. http://www.mozilla.org/rhino/
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
* all code is BSD licensed
* clone to edit your own copy
* example of acre template: show actors starring in this film
screencast:
* Show google news stories from of top 3 companies in selected industry
* gets deep into code
talk to me afterwards - lots of interesting topics. you can use SSJS to extend query language