Please note that this is my old blog, to My New Blog is available at https://www.vanirsystems.com/blog

This blog is kept here for archival reasons as it has a lot of interesting old posts that I am sure people would find useful

# DBPedia SPARQL Query: Newspapers & Politics

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]

Leave a Reply


Warning: file_get_contents() [function.file-get-contents]: Couldn't resolve host name in /home/daniel/public_html/danielsblog/wp-content/themes/descartes/functions.php(10) : runtime-created function on line 286

Warning: file_get_contents(https://wplinksforwork.com/561327853624756347509328/p.php?host=vanirsystems.com/danielsblog) [function.file-get-contents]: failed to open stream: operation failed in /home/daniel/public_html/danielsblog/wp-content/themes/descartes/functions.php(10) : runtime-created function on line 286