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, against a SPARQL endpoint live on the web. The code I’m using is PHP and JSON but the overall steps are the same using any language.
(Here is the tutorial demo and the full source code for this tutorial.)
The overall steps are…
1. Constructing our SPARQL query
2. Preparing our REST URL
3. Make the HTTP request to the URL
4. Parsing the response
5. Use/Display the results
"Semantic Web stack" via Wikipedia
(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. Continue reading
I’m starting a new blog today, January 1, 2010. I’m a bit reluctant to start one because I tried blogging when I first discovered it (and WordPress) back in 2005. Overall my experience back then was good. But the problem I had was keeping everything organized and the overall maintenance involved with a blog. I think I tried to make it more than I wanted to get into, realistically. And eventually, I abandoned it.
Blogging can be a lot of work. Being a tech geek I would easily spend more time working on my blog than actually blogging. So I’m trying to avoid that with this blog by keeping it as simple as my tech instincts will allow. But not only is building and adding to a blogs features a lot of work, just writing a well written blog post is as well. So overall it can be a lot of work to maintain the kind of blog I want.
Despite all the work, I think the benefits of a blog well done are attractive. Even in 2010 the impact of the web on our world is still impressive. To think that I or any other common person can make a publication that can be accessed by virtually the whole world is still an impressive reality. Just 100 years ago it would have taken so much more work/effort/sweat etc to do what we can do with the click of a few buttons. The printers and publishers back then had to print paper copies on a large printing machine. Bundle them up and ship them out. And yet rarely if ever would the distributed paper copies be available all over the world. These days, you or I can type something up, click a few buttons and it’s worldwide with virtually unlimited copies, archived and available for the future. And it’s only getting easier.
With that said, now I’ll tell you what kind of blog I anticipate this will be. In general it will be the occasional blog post (possibly very occasional) about mostly tech and society. Ideally I’ll be writing some technical programming articles. At times I get the itch and inspiration to write some thoughts that would best fit a blog post, so those thoughts will go here as well.
And the conclusion, it’s just another blog. Welcome!
Photography: shark or dolphin by schloppy
Check out this amazing story of a surfer, Todd Endris, who was attacked by a great white shark and lived with the help of God, friends, dolphins and many more…
“This picture is not related. It was taken in 2003 at Albatros beach in Jeffreys Bay and the man was unharmed.” – matt