SPARQL Query In Code: REST, PHP And JSON [TUTORIAL]

Use SPARQL And Query On
Photo: sclopit

SPARQL allows you to query a semantic web (i.e. RDF) data source. This post will cover some basics of SPARQL but it will mainly focus on how to run a SPARQL query in code. The code I’m using is PHP and JSON but the overall steps are the same using any language.

Here are the overall steps…

1. Constructing our SPARQL query
2. Preparing our REST URL
3. Make the HTTP request to the URL
4. Parsing the response
5. Using/Displaying the results

Read more »


Semantifying Social Networks, Socializing The Semantic Web

(DISCLAIMER: My recollection of what was said and what was meant may be flawed. For the best record, find the sources mentioned and listen for yourself)

During the Semantic Web Meetup discussion about social networks Joe Devon made a prediction that all the current major social networks (Facebook and Twitter) will go the way of MySpace. This is because when the semantic web has matured, everyone will have control of their own (profile) data and that data will be more freely movable around the web due to common open standards. This discussion reminded of a similar discussion (Semantifying Social Networks) I listened to via a recording from the SemTech 2009 Conference. In this discussion the same vision of everyone controlling their own data and (by choice) sharing it securely via open standards was the ideal. Read more »


John Wright Hi I'm John Wright, a software developer in the LA area. I love building apps and learning new technologies.

Some of my work is at WrightLabs

I often post links to my Microblog (or links blog)

You can follow me on Twitter, GitHub or just email me

Also, here's the RSS:
Blog - Microblog

Powered by Olark