Heres a quick SPARQL snippet to get a list of the worlds Newspapers along with their political stance. It is only a quick one, with a bit more work its possible to get the English titles of the Newspapers and the Political stances.

SELECT ?Newspaper ?Stance WHERE {
?Newspaper rdf:type dbpedia-owl:Newspaper;
<https://dbpedia.org/property/political> ?Stance}

Plug that into the DBPedia SPARQL interface: https://dbpedia.org/sparql

and get out the result for newspapers and their political perspective.

Tada! Quick bit of Semantic Web goodness!

Cheers,
Daniel

[update]fixed evil wordpress formatting on part of my sparql query[/update]

Good News!

My second article through IBM developerWorks has been published! (there are one or two things wrong with this article, I won’t say anything about it for now and will try to rectify it asap!)

It’s titled “Building Semantic Web CRUD operations using PHP” (<- click the title to go read it). It’s essentially about showing:

  • The similarities and differences between the Relational Database Model and the Resource Description Framework model.
  • The similarities and differences between SQL and SPARQL.
  • How to implement SPARQL calls for Creation, Reading, Updation and Deletion (CRUD) operations using PHP.

After a bit of toying with it (keep at it, because it will be challenging but worth it!), you should be able to build your Web Application with RDF and SPARQL manipualtion.

If anyone has any questions about it (or about my previous developerWorks article which was titled “Intelligent Agents and the Semantic Web“) then please do let me know.

Oh yeah, by the way… both of my articles so far have been “featured” articles on the IBM developerWorks front page :-P

Daniel