Wednesday, October 5th, 2005

SPARQL over Ajax

Category: Editorial

Kendall Clark got a little kiddy thinking about how Ajax and SPARQL can fit together: “SPARQL over AJAX just by itself is so cool it gives me a headache!”.

SPARQL could be the begining of the merge of Web 2.0 and the Semantic Web. Currently the idea of mash-ups is a big one. How many Web 2.0 apps these days say “integrate with Google Maps, Craigslist, eBay, and Amazon!”.

Sure, we can try to do all of this work via special web services for each app, but that isn’t giving us a great way to query between them. Enter SPARQL, a query language and protocol for RDF. Don’t get scared by the RDF part, SPARQL can work fine across REST.

Here’s a query for fun:

SELECT ?who ?g ?mbox
FROM <http://my.example/publishers>
FROM NAMED <http://my.example/alice>
FROM NAMED <http://my.example/bob>
WHERE { ?g dc:publisher ?who .
        GRAPH ?g { ?x foaf:mbox ?mbox }
}

Can SPARQL be the SQL of the Web 2.0 world? And will a cool Ajax client come out? Who knows, but let’s give Kendall a head-ache :)

Posted by Dion Almaer at 10:01 am
Comment here

+++--
3 rating from 5 votes

Comments Here »

Comments feed

Leave a comment

You must be logged in to post a comment.