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, 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

Continue reading

Semantifying Social Networks, Socializing The Semantic Web

W3c semantic web stack

"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

It’s a good day to start a blog

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!

15 Daily Routines Of Famous People [RANDOM]

Political Leaders

Although his presidency is barely a week old, some of Mr. Obama’s work habits are already becoming clear. He shows up at the Oval Office shortly before 9 in the morning, roughly two hours later than his early-to-bed, early-to-rise predecessor. Mr. Obama likes to have his workout — weights and cardio — first thing in the morning, at 6:45. (Mr. Bush slipped away to exercise midday.)

Mr. Bush has always been an early-to-bed, early-to-rise kind of guy, and he typically arrives at the Oval Office by 6:45 a.m., Ms. Perino said, for briefings from his national security adviser, Stephen J. Hadley, and chief of staff, Joshua B. Bolten. He holds regular secure video-conferences with various world leaders, among them the president of Afghanistan and the prime minister of Iraq.

Dinner was the focal-point and highlight of Churchill’s day. Table talk, dominated by Churchill, was as important as the meal. Sometimes, depending on the company, drinks and cigars extended the event well past midnight. The guests retired, Churchill returned to his study for another hour or so of work.

The precept of Order requiring that every part of my business should have its allotted time, one page in my little book contained the following scheme of employment for the twenty-four hours of a natural day.

Briefly: Napoleon’s daily routine was perforce limited. Marchand awakened him early and served coffee in bed. One or more of the valets washed him and helped him shave, then rubbed him down with a coarse brush and doused him with eau de cologne (which soon ran out and was replaced with homemade lavender water) and finally helped him dress, an elaborate process that required one or two hours.


he steps on a scale in his bathing suit and his bathing cap and his goggles, and the scale tells him he weighs 143 pounds. This has happened so many times that Mister Rogers has come to see that number as a gift, as a destiny fulfilled, because, as he says, “the number 143 means `I love you.’ It takes one letter to say ‘I’ and four letters to say `love’ and three letters to say `you.’ One hundred and forty-three. `I love you.’ Isn’t that wonderful?”

Continue reading

Great White Attacks And Dolphins Help Escape! [RANDOM]

shark or dolphin
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…

Truly incredible!

“This picture is not related. It was taken in 2003 at Albatros beach in Jeffreys Bay and the man was unharmed.” – matt