SPARCool supports JSONP callbacks

While I was wondering how to embed SPARCool results in webpages without having to rely on server-scripting (namely PHP) nor facing AJAX cross-domain security issues, I got two requests asking if it could support JSONP. I figured out it was exactly what I was looking for, so a big thanks to Claudia and Rob for suggesting it !

It was quite straightforward to implement, and SPARCool now supports JSONP callbacks. So, one can call results using AJAX to dynamically embed SPARCool results in webpages (for instance, jQuery provides an easy way to use JSONP with it). It hence allows to construct dynamic pages using Linked Data resources without having to type any line of SPARQL code (e.g. listing members of a project, description of a resource, etc.). For instance, check the updated sparcool.net page and the new example at the bottom, listing – on runtime – all the members of the Clash, via a DBpedia through a SPARCool URL.

Enjoy !

Advertisement
Tagged , , , ,

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.