<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rabidgremlin&#039;s Soapbox &#187; Linked Data</title>
	<atom:link href="http://blog.rabidgremlin.com/tag/linked-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rabidgremlin.com</link>
	<description>A little soapbox for me to stand on and rant from.</description>
	<lastBuildDate>Fri, 03 Feb 2012 10:59:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>All that SPARQLs on the web</title>
		<link>http://blog.rabidgremlin.com/2009/05/01/all-that-sparqls-on-the-web/</link>
		<comments>http://blog.rabidgremlin.com/2009/05/01/all-that-sparqls-on-the-web/#comments</comments>
		<pubDate>Fri, 01 May 2009 11:23:56 +0000</pubDate>
		<dc:creator>jack</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linked Data]]></category>
		<category><![CDATA[SPARQL]]></category>
		<category><![CDATA[TED]]></category>

		<guid isPermaLink="false">http://blog.rabidgremlin.com/?p=441</guid>
		<description><![CDATA[A couple of months ago,  I watched Tim Berners-Lee&#8217;s TED talk on Linked Data in which he lays out his vision and explains why Linked Data will be the next major use of the web. During the talk he mentioned the DBpedia project which is an effort to extract structured information from the content of [...]]]></description>
			<content:encoded><![CDATA[<p>A couple of months ago,  I watched Tim Berners-Lee&#8217;s <a title="Link to TED talk on linked data" href="http://www.ted.com/talks/tim_berners_lee_on_the_next_web.html" target="_blank">TED talk on Linked Data</a> in which he lays out his vision and explains why Linked Data will be the next major use of the web.</p>
<p>During the talk he mentioned the <a title="Link to DBpedia" href="http://dbpedia.org" target="_blank">DBpedia</a> project which is an effort to extract structured information from the content of Wikipedia. Currently it describes 2.6 million things with 274 million facts.</p>
<p>So how do you access all this  data? Well one of the ways is to use SPARQL (<strong>S</strong>PARQL <strong>P</strong>rotocol <strong>a</strong>nd <strong>R</strong>DF <strong>Q</strong>uery <strong>L</strong>anguage).</p>
<p>For instance to find all the films directed by Peter Jackson you could run the following query:</p>
<pre>SELECT ?director
WHERE { ?director dbpedia2:director &lt;http://dbpedia.org/resource/Peter_Jackson&gt; }</pre>
<p>Click <a title="View results of query" href="http://dbpedia.org/snorql/?query=SELECT+%3Fdirector%0D%0AWHERE+{+%3Fdirector+dbpedia2%3Adirector+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FPeter_Jackson%3E+}" target="_blank">here</a> to see the results.</p>
<p>You could use this query:</p>
<pre>SELECT ?film_directed_by_pj ?budget ?runtime
WHERE { ?film_directed_by_pj &lt;http://dbpedia.org/property/director&gt; &lt;http://dbpedia.org/resource/Peter_Jackson&gt; .
        ?film_directed_by_pj &lt;http://dbpedia.org/ontology/budget&gt; ?budget .
        ?film_directed_by_pj &lt;http://dbpedia.org/property/runtime&gt; ?runtime
      }</pre>
<p>to see if there is a <a title="View results of query" href="http://dbpedia.org/snorql/?query=SELECT+%3Ffilm_directed_by_pj+%3Fbudget+%3Fruntime%0D%0AWHERE+{+%3Ffilm_directed_by_pj+%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty%2Fdirector%3E+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FPeter_Jackson%3E+.%0D%0A++++++++%3Ffilm_directed_by_pj+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2Fbudget%3E+%3Fbudget+.%0D%0A++++++++%3Ffilm_directed_by_pj+%3Chttp%3A%2F%2Fdbpedia.org%2Fproperty%2Fruntime%3E+%3Fruntime%0D%0A++++++}" target="_blank">correlation between budget and runtime</a> for his films.</p>
<p>This <a title="View results of query" href="http://dbpedia.org/snorql/?query=SELECT+%3FcountryName+%3Flatd+%3Flatns+%3Flongd+%3Flongew+%0D%0AWHERE+{++%0D%0A++%3Fc+rdf%3Atype+%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2FCountry%3E.%0D%0A++%3Fc+dbpedia2%3AcommonName+%3FcountryName+.%0D%0A++%3Fc+dbpedia2%3Alatns+%3Flatns+.++%0D%0A++%3Fc+dbpedia2%3Alatd+%3Flatd+.+%0D%0A++%3Fc+dbpedia2%3Alongd+%3Flongd+.+%0D%0A++%3Fc+dbpedia2%3Alongew+%3Flongew+.%0D%0A++FILTER+REGEX(%3Flatns%2C+%22S%22%2C+%22i%22).%0D%0A}%0D%0A%0D%0A%0D%0A" target="_blank">query</a> returns the list of countries in the Southern Hemisphere and their latitude and longitudes:</p>
<pre>SELECT ?countryName ?latd ?latns ?longd ?longew
WHERE {
  ?c rdf:type &lt;http://dbpedia.org/ontology/Country&gt;.
  ?c dbpedia2:commonName ?countryName .
  ?c dbpedia2:latns ?latns .
  ?c dbpedia2:latd ?latd .
  ?c dbpedia2:longd ?longd .
  ?c dbpedia2:longew ?longew .
  FILTER REGEX(?latns, "S", "i").
}</pre>
<p>Of course DBpedia is not the only source of data, this diagram (created by Chris Bizer) shows what sources are currently available on the web:</p>
<p><img class="aligncenter size-full wp-image-451" title="Open datacloud" src="http://blog.rabidgremlin.co.nz/wp-content/uploads/2009/05/lod_datasets.png" alt="Open datacloud" width="700" height="533" /></p>
<p>Click <a title="Link to interactive version of dataset diagram" href="http://www4.wiwiss.fu-berlin.de/bizer/pub/lod-datasets_2009-03-05.html" target="_blank">here</a> for an interactive version.</p>
<p>This is all pretty interesting stuff and you can see why Tim Berners-Lee and others are so excited about the concept of Linked Data.</p>
<p>Want to know more ? Here are some links:</p>
<ul>
<li><a title="Link to SPARQL specification" href="http://www.w3.org/TR/rdf-sparql-query/" target="_blank">W3C specification for SPARQL</a></li>
<li><a title="Link to tutorial on publishing Linked Data" href="http://www4.wiwiss.fu-berlin.de/bizer/pub/LinkedDataTutorial/" target="_blank">How to publish Linked Data on the web</a></li>
<li><a title="Link to Wikipedia's RDF article" href="http://en.wikipedia.org/wiki/Resource_Description_Framework" target="_blank">Wikipedia&#8217;s RDF article</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.rabidgremlin.com/2009/05/01/all-that-sparqls-on-the-web/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

