<?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>Data Unbound &#187; freebase</title>
	<atom:link href="http://blog.dataunbound.com/category/freebase/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dataunbound.com</link>
	<description>Helping organizations access and share data effectively.  Special focus on web APIs for data integration.</description>
	<lastBuildDate>Sat, 12 Feb 2011 21:00:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
  <link>http://blog.dataunbound.com</link>
  <url>http://blog.dataunbound.com/wp-content/plugins/favicon-manager/dataunbound.ico</url>
  <title>Data Unbound</title>
</image>
		<item>
		<title>pageid/curid as a unique id for Wikipedia pages</title>
		<link>http://blog.dataunbound.com/2009/04/10/pageidcurid-as-a-unique-id-for-wikipedia-pages/</link>
		<comments>http://blog.dataunbound.com/2009/04/10/pageidcurid-as-a-unique-id-for-wikipedia-pages/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 18:00:55 +0000</pubDate>
		<dc:creator>Raymond Yee</dc:creator>
				<category><![CDATA[freebase]]></category>
		<category><![CDATA[Wikipedia]]></category>

		<guid isPermaLink="false">http://blog.dataunbound.com/?p=469</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=pageid%2Fcurid+as+a+unique+id+for+Wikipedia+pages&amp;rft.aulast=&amp;rft.aufirst=&amp;rft.subject=freebase&amp;rft.subject=Wikipedia&amp;rft.source=Data+Unbound&amp;rft.date=2009-04-10&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/04/10/pageidcurid-as-a-unique-id-for-wikipedia-pages/&amp;rft.language=English"></span>
In my learning how to program Freebase, I&#039;ve come across links to the Wikipedia that make use of a curid parameter.  For example, http://en.wikipedia.org/wiki/index.html?curid=296716 is the same as http://en.wikipedia.org/wiki/Daniel_Akaka At least, the two pages seem to be the same thing as far as I can see. How to do a lookup btween curid and the [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=pageid%2Fcurid+as+a+unique+id+for+Wikipedia+pages&amp;rft.aulast=&amp;rft.aufirst=&amp;rft.subject=freebase&amp;rft.subject=Wikipedia&amp;rft.source=Data+Unbound&amp;rft.date=2009-04-10&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/04/10/pageidcurid-as-a-unique-id-for-wikipedia-pages/&amp;rft.language=English"></span>
<p>In my learning how to program Freebase, I&#039;ve come across links to the Wikipedia that make use of a <em>curid </em>parameter.  For example,</p>
<p><a href="http://en.wikipedia.org/wiki/index.html?curid=296716">http://en.wikipedia.org/wiki/index.html?curid=296716</a></p>
<p>is the same as</p>
<p><a href="http://en.wikipedia.org/wiki/Daniel_Akaka">http://en.wikipedia.org/wiki/Daniel_Akaka</a></p>
<p>At least, the two pages seem to be the same thing as far as I can see.</p>
<p>How to do a lookup btween curid and the page title?  One way is ff we&#039;re screen-scraping, the page source of <a href="http://en.wikipedia.org/wiki/Daniel_Akaka">http://en.wikipedia.org/wiki/Daniel_Akaka</a> contains</p>
<pre id="line28">var wgArticleId = "296716";</pre>
<p>And if you go to <a href="http://en.wikipedia.org/wiki/index.html?curid=296716">http://en.wikipedia.org/wiki/index.html?curid=296716</a> lots of indication of what the title is, including the permanent link (e.g., <a href="http://en.wikipedia.org/w/index.php?title=Daniel_Akaka&amp;oldid=278490360">http://en.wikipedia.org/w/index.php?title=Daniel_Akaka&amp;oldid=278490360</a>)</p>
<p>To dig deeper, I might want to understand the <a href="http://www.mediawiki.org/wiki/Page_table">mediawiki data structure</a> and the <a href="http://www.mediawiki.org/wiki/API">mediawiki API</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dataunbound.com/2009/04/10/pageidcurid-as-a-unique-id-for-wikipedia-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I&#039;m confused:  how to provide the proper attribution for a CC-license photo in Freebase?</title>
		<link>http://blog.dataunbound.com/2009/04/10/im-confused-how-to-provide-the-proper-attribution-for-a-cc-license-photo-in-freebase/</link>
		<comments>http://blog.dataunbound.com/2009/04/10/im-confused-how-to-provide-the-proper-attribution-for-a-cc-license-photo-in-freebase/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 14:40:31 +0000</pubDate>
		<dc:creator>Raymond Yee</dc:creator>
				<category><![CDATA[creative commons]]></category>
		<category><![CDATA[freebase]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Wikipedia]]></category>

		<guid isPermaLink="false">http://blog.dataunbound.com/?p=542</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=I%26%23039%3Bm+confused%3A++how+to+provide+the+proper+attribution+for+a+CC-license+photo+in+Freebase%3F&amp;rft.aulast=&amp;rft.aufirst=&amp;rft.subject=creative+commons&amp;rft.subject=freebase&amp;rft.source=Data+Unbound&amp;rft.date=2009-04-10&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/04/10/im-confused-how-to-provide-the-proper-attribution-for-a-cc-license-photo-in-freebase/&amp;rft.language=English"></span>
I&#039;m puzzled by how to provide  the correct attribution to derivatives of Creative Commons licensed.  Does one have to track the entire provenace of the object?  I came across this problem when I wanted to upload a photo from the Wikipedia to Freebase.  Here&#039;s how I posed my question on the Freebase general support board: [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=I%26%23039%3Bm+confused%3A++how+to+provide+the+proper+attribution+for+a+CC-license+photo+in+Freebase%3F&amp;rft.aulast=&amp;rft.aufirst=&amp;rft.subject=creative+commons&amp;rft.subject=freebase&amp;rft.source=Data+Unbound&amp;rft.date=2009-04-10&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/04/10/im-confused-how-to-provide-the-proper-attribution-for-a-cc-license-photo-in-freebase/&amp;rft.language=English"></span>
<p>I&#039;m puzzled by how to provide  the correct attribution to derivatives of Creative Commons licensed.  Does one have to track the entire provenace of the object?  I came across this problem when I wanted to upload a photo from the Wikipedia to Freebase.  Here&#039;s how I posed <a href="http://www.freebase.com/discuss/threads/guid/9202a8c04000641f800000000b6ae499">my question</a> on the <a href="http://www.freebase.com/discuss/threads/en/general_support">Freebase general support board</a>:</p>
<blockquote><p>I&#039;d like to upload the latest photo from <a href="http://en.wikipedia.org/wiki/File:Garret_Dillahunt.jpg">http://en.wikipedia.org/wiki/File:Garret_Dillahunt.jpg</a> (e.g., <a href="http://upload.wikimedia.org/wikipedia/commons/0/0e/Garret_Dillahunt.jpg">http://upload.wikimedia.org/wikipedia/commons/0/0e/Garret_Dillahunt.jpg</a>) to <a href="http://www.freebase.com/view/en/garret_dillahunt">http://www.freebase.com/view/en/garret_dillahunt</a> but am in a quandary about how to do the proper attribution. The photo in question is a derivative (cropping + light adjustment) of <a href="http://www.flickr.com/photos/28821738@N05/2843824072/">http://www.flickr.com/photos/28821738@N05/2843824072/</a> &#8212; which is licensed under a CC-BY-SA license. If I want to use the Wikipedia photo (a deriv of the one in Flickr), who do I credit as the copyright holder? The uploader of the Flickr photo? ( if so, do I enter <a href="http://www.flickr.com/people/28821738@N05">http://www.flickr.com/people/28821738@N05</a> or  watchwithkristin or Kristin Dos Santos) The Wikipedia?  The wikipedia user who made the last derivative?</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.dataunbound.com/2009/04/10/im-confused-how-to-provide-the-proper-attribution-for-a-cc-license-photo-in-freebase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The paper almanac as a model for a core part of Freebase?</title>
		<link>http://blog.dataunbound.com/2009/04/06/the-paper-almanac-as-a-model-for-a-core-part-of-freebase/</link>
		<comments>http://blog.dataunbound.com/2009/04/06/the-paper-almanac-as-a-model-for-a-core-part-of-freebase/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 16:38:09 +0000</pubDate>
		<dc:creator>Raymond Yee</dc:creator>
				<category><![CDATA[freebase]]></category>

		<guid isPermaLink="false">http://blog.dataunbound.com/?p=529</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=The+paper+almanac+as+a+model+for+a+core+part+of+Freebase%3F&amp;rft.aulast=&amp;rft.aufirst=&amp;rft.subject=freebase&amp;rft.source=Data+Unbound&amp;rft.date=2009-04-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/04/06/the-paper-almanac-as-a-model-for-a-core-part-of-freebase/&amp;rft.language=English"></span>
I just bought a copy of the 2009 New York Times Almanac last night and start wondering whether it would be a good idea to  use the almanac format as a way of structuring some basic collections of facts/information you&#039;d want to have in Freebase.]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=The+paper+almanac+as+a+model+for+a+core+part+of+Freebase%3F&amp;rft.aulast=&amp;rft.aufirst=&amp;rft.subject=freebase&amp;rft.source=Data+Unbound&amp;rft.date=2009-04-06&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/04/06/the-paper-almanac-as-a-model-for-a-core-part-of-freebase/&amp;rft.language=English"></span>
<p>I just bought a copy of the <a href="http://www.amazon.com/New-York-Times-Almanac-2009/dp/0143114573">2009 New York Times Almanac</a> last night and start wondering whether it would be a good idea to  use the almanac format as a way of structuring some basic collections of facts/information you&#039;d want to have in <a href="http://freebase.com">Freebase</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dataunbound.com/2009/04/06/the-paper-almanac-as-a-model-for-a-core-part-of-freebase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>working with the bioguide ID for congressperson in Freebase</title>
		<link>http://blog.dataunbound.com/2009/03/08/working-with-the-bioguide-id-for-congressperson-in-freebase/</link>
		<comments>http://blog.dataunbound.com/2009/03/08/working-with-the-bioguide-id-for-congressperson-in-freebase/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 22:31:18 +0000</pubDate>
		<dc:creator>Raymond Yee</dc:creator>
				<category><![CDATA[freebase]]></category>
		<category><![CDATA[government]]></category>
		<category><![CDATA[congress]]></category>

		<guid isPermaLink="false">http://blog.dataunbound.com/?p=408</guid>
		<description><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=working+with+the+bioguide+ID+for+congressperson+in+Freebase&amp;rft.aulast=&amp;rft.aufirst=&amp;rft.subject=freebase&amp;rft.subject=government&amp;rft.source=Data+Unbound&amp;rft.date=2009-03-08&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/03/08/working-with-the-bioguide-id-for-congressperson-in-freebase/&amp;rft.language=English"></span>
The Congressional Biographical Directory contains entries for every congressperson from 1774 to the present.  Each congressional representative is associated with an identifier (a bioguide ID).  For example, the bioguide ID for Edward (Ted) Kennedy is K000105.  With this ID, you can determine the URL for the coresponding biographical directory &#8212; e.g., Kennedy&#039;s is http://bioguide.congress.gov/scripts/biodisplay.pl?index=K000105 I [...]]]></description>
			<content:encoded><![CDATA[	
	<span class="Z3988" title="ctx_ver=Z39.88-2004&amp;rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Adc&amp;rfr_id=info%3Asid%2Focoins.info%3Agenerator&amp;rft.title=working+with+the+bioguide+ID+for+congressperson+in+Freebase&amp;rft.aulast=&amp;rft.aufirst=&amp;rft.subject=freebase&amp;rft.subject=government&amp;rft.source=Data+Unbound&amp;rft.date=2009-03-08&amp;rft.type=blogPost&amp;rft.format=text&amp;rft.identifier=http://blog.dataunbound.com/2009/03/08/working-with-the-bioguide-id-for-congressperson-in-freebase/&amp;rft.language=English"></span>
<p>The <a href="bioguide.congress.gov/">Congressional Biographical Directory</a> contains entries for every congressperson from 1774 to the present.  Each congressional representative is associated with an identifier (a bioguide ID).  For example, the bioguide ID for Edward (Ted) Kennedy is K000105.  With this ID, you can determine the URL for the coresponding biographical directory &#8212; e.g., Kennedy&#039;s is</p>
<p><a href="http://bioguide.congress.gov/scripts/biodisplay.pl?index=K000105">http://bioguide.congress.gov/scripts/biodisplay.pl?index=K000105</a></p>
<p>I would like to make use of the bioguide ID in interacting with Freebase with respect to congresspeople.</p>
<p><a href="http://www.freebase.com/view/en/ted_kennedy">http://www.freebase.com/view/en/ted_kennedy</a></p>
<p>hit explore:</p>
<p><a href="http://www.freebase.com/tools/explore/en/ted_kennedy">http://www.freebase.com/tools/explore/en/ted_kennedy</a> to see</p>
<p><em class="title">Outbound key(s):</em></p>
<table id="outbound_keys_table" class="explore" border="0">
<thead>
<tr>
<th class="header">key</th>
<th class="header">namespace</th>
</tr>
</thead>
<tbody>
<tr>
<td>184136</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en_id">/wikipedia/en_id</a></td>
</tr>
<tr>
<td>Ted_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Edward_M$002E_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Edward_Moore_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Teddy_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Edward_kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Edward_M_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>EMK</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Ed_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Caroline_Bilodeau</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>aa1a62ca-f027-426e-810f-63556da55434</td>
<td><a href="http://www.freebase.com/tools/explore/authority/musicbrainz">/authority/musicbrainz</a></td>
</tr>
<tr>
<td>ARTIST349855</td>
<td><a href="http://www.freebase.com/tools/explore/authority/musicbrainz/name">/authority/musicbrainz/name</a></td>
</tr>
<tr>
<td>Edward_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Ted_Kennedy$002FDraft_1</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Senator_Ted_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>ted_kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/en">/en</a></td>
</tr>
<tr>
<td>The_Lion_of_the_Senate</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>Edward_Moore_$0022Ted$0022_Kennedy</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
<tr>
<td>K000105</td>
<td><a href="http://www.freebase.com/tools/explore/user/jamie/sunlight/bioguide_id">/user/jamie/sunlight/bioguide_id</a></td>
</tr>
<tr>
<td>Cape_Cod_Orca</td>
<td><a href="http://www.freebase.com/tools/explore/wikipedia/en">/wikipedia/en</a></td>
</tr>
</tbody>
</table>
<p>What&#039;s the <a href="http://www.freebase.com/tools/queryeditor?q={%22id%22:%22/en/ted_kennedy%22,%22key%22:[{}]}&amp;read=1">MQL query to read all the keys for the topic</a>?</p>
<pre>{
  "id" : "/en/ted_kennedy",
  "key" : [
    {}
  ]
}</pre>
<p>we get among the various keys</p>
<pre>{
  "namespace" : "/user/jamie/sunlight/bioguide_id",
  "type" : "/type/key",
  "value" : "K000105"
}</pre>
<p>Keys are new to me &#8212; so I need to do a bit of learning right now.   Now, let&#039;s note the following</p>
<ul>
<li><a href="http://www.freebase.com/tools/queryeditor?q=[{%22id%22:null,%22key%22:{%22namespace%22:%22/user/jamie/sunlight/bioguide_id%22,%22type%22:%22/type/key%22,%22value%22:null},%22type%22:%22/base/poldb/us_senator_current%22}]&amp;read=1">query</a> to read <a href="http://poldb.freebase.com/view/base/poldb/views/us_senator_current">all senators in PolDB</a> listing a bioguide_id whether it&#039;s there or not.</li>
<li><a href="http://www.freebase.com/tools/queryeditor?q=[{&quot;id&quot;:null,&quot;key&quot;:{&quot;namespace&quot;:&quot;/user/jamie/sunlight/bioguide_id&quot;,&quot;optional&quot;:&quot;forbidden&quot;,&quot;type&quot;:&quot;/type/key&quot;,&quot;value&quot;:null},&quot;type&quot;:&quot;/base/poldb/us_senator_current&quot;}]&amp;read=1">query</a> to read all senators in PolDB w/o a bioguide_id</li>
</ul>
<p>Let&#039;s now figure out how to write the bioguide ID for one of the senators without the bioguide ID:  <a href="http://www.freebase.com/view/en/jeanne_shaheen">Jeanne Shaheen facts &#8211; Freebase</a>.  Her bioguide_id is <a href="http://bioguide.congress.gov/scripts/biodisplay.pl?index=S001181">S001181</a>.  Here&#039;s a <a href="http://www.freebase.com/tools/queryeditor?q={%22id%22:%22/en/jeanne_shaheen%22,%22key%22:{%22connect%22:%22insert%22,%22namespace%22:%22/user/jamie/sunlight/bioguide_id%22,%22type%22:%22/type/key%22,%22value%22:%22S001181%22}}&amp;read=1">MQL write query</a> that writes the bioguide_id to Freebase:</p>
<pre>{
  "id" : "/en/jeanne_shaheen",
  "key" : {
    "connect" : "insert",
    "namespace" : "/user/jamie/sunlight/bioguide_id",
    "type" : "/type/key",
    "value" : "S001181"
  }
}</pre>
<p>Things to figure out:  how to create keys in the first place in the freebase UI and in MQL.  I <em>think </em>regular users can create keys but I&#039;m not aware of how to do so in the Freebase UI.  I didn&#039;t even see a way to insert the bioguide_id using the Freebase UI.</p>
<p><a href="http://www.freebase.com/view/user/jamie/sunlight/legislator"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dataunbound.com/2009/03/08/working-with-the-bioguide-id-for-congressperson-in-freebase/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

