background preloader

Tutoriels

Facebook Twitter

Box2D & JavaScript tutorials by Seth Ladd. ECMA-262. A Simple Linked Data and JavaScript Tutorial. Disclaimer: This article by Ric is a short tutorial on how to consume Linked Data using JavaScript. Some of the examples use Ric’s company’s new Linked Data publishing platform, PublishMyData. Introduction Mention Linked Data or RDF and many developers run screaming. The truth is that Linked Data is really rather simple (and in many cases you don’t even need to use RDF if you don’t want to). In this tutorial we’re going to use jQuery to request some data from a Linked Data service, and then display the results in a table and on a map.

Writing the SPARQL Query We’ll need to run some SPARQL to get the data we’re interested in (SPARQL is a query language analogous to SQL for relational databases). Constructing the URL to call against the endpoint The SPARQL endpoint we’re using expects requests in the following format: The array in head.vars contains the variables that we selected in the SPARQL query, and results.bindings contains one object per row of results. Node Tutorial Part 19: Backbone.js. Welcome to part 19 of Let’s Make a Web App, a tutorial series about building a web app with Node. This series will walk you through the major areas you’ll need to face when building your own applications. These tutorials are tagged with lmawa. Click to show previous tutorials. Backbone.js Backbone.js is a library for writing client-side JavaScript. Nodepad’s simple structure means we’re mostly interested in Backbone’s models, collections, and the persistence layer. It’s all too easy to create JavaScript applications that end up as tangled piles of jQuery selectors and callbacks.

To put it simply, a Backbone application uses models to interact with data, collections to manage sets of models, and views to link events to models and generate dynamic HTML based on templates. Planning a Backbone Application Planning a Backbone application is a bit like planning server-side software — separate out the data from the views and controllers. Our application consists of: Models Defining models is simple. What's a Closure?