<?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>tadhg.com &#187; freebase</title>
	<atom:link href="http://tadhg.com/wp/tag/freebase/feed/" rel="self" type="application/rss+xml" />
	<link>http://tadhg.com/wp</link>
	<description>Wherein some things Tadhg are discussed</description>
	<lastBuildDate>Wed, 08 Sep 2010 03:20:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>More Versatile Freebase Views</title>
		<link>http://tadhg.com/wp/2008/12/01/more-versatile-freebase-views/</link>
		<comments>http://tadhg.com/wp/2008/12/01/more-versatile-freebase-views/#comments</comments>
		<pubDate>Tue, 02 Dec 2008 07:28:17 +0000</pubDate>
		<dc:creator>Tadhg</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[freebase]]></category>
		<category><![CDATA[semantic-web]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.tadhg.com/wp/?p=124</guid>
		<description><![CDATA[I&#8217;ve been eagerly awaiting the latest upgrade to freebase.com (which I work on), because it makes much more interesting saved views possible with our UI. Previously, all kinds of interesting queries were possible using our query language, MQL, but to present their output you&#8217;d effectively need to write your own application. Now you can make [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been eagerly awaiting the latest upgrade to <a href="http://freebase.com/">freebase.com</a> (which I work on), because it makes much more interesting saved views possible with our UI. Previously, all kinds of interesting queries were possible using our query language, MQL, but to present their output you&#8217;d effectively need to write your own application. Now you can make queries using the UI and then have them displayed intelligently on Freebase.<br />
<span id="more-894"></span><br />
Some time ago I created a <a href="http://www.freebase.com/view/user/tadhg/default_domain/views/film_adaptations_of_hamlet">Film adaptations of Hamlet</a> view, and now I can also have a <a href="http://www.freebase.com/view/user/tadhg/default_domain/views/film_adaptations_of_shakespeare_works">Film Adaptations of Shakespeare Works</a> view. There aren&#8217;t that many in that list, so I suspect that a lot of films are missing&#8212;if you spot some, you can add them fairly easily.</p>
<p>I created a view of <a href="http://www.freebase.com/view/user/tadhg/default_domain/views/books_by_nobel_literature_prize_winners">Books by Nobel Literature Prize Winners</a>, which is of interest to me, and which I&#8217;m not sure would be too easy to find elsewhere. Again, it might be incomplete&#8230; but adding data is easy.</p>
<p>I was going to add some other literary award-based views, but I think I need to add a bunch of data for those awards first; while tinkering with one of those, I discovered (and corrected) the fact that Freebase considered Samuel Beckett to be French but not Irish&#8230;</p>
<p>Finally, I created <a href="http://www.freebase.com/view/cvg/views/games_using_an_id_tech_engine">Games Using an id Tech Engine</a>, for all the <em>Doom</em> and <em>Quake</em> aficionados out there.</p>
<p>The major advantage of these lists, of course, is that they don&#8217;t have to be explicitly maintained&#8212;as soon as a new author is marked as having won the Nobel Prize for Literature, all of their works in the system will show up in the <a href="http://www.freebase.com/view/user/tadhg/default_domain/views/books_by_nobel_literature_prize_winners">Books by Nobel Literature Prize Winners</a>. As soon as a new film is marked as an adaptation of Hamlet, it will show up in both the <a href="http://www.freebase.com/view/user/tadhg/default_domain/views/film_adaptations_of_hamlet">Film adaptations of Hamlet</a> and <a href="http://www.freebase.com/view/user/tadhg/default_domain/views/film_adaptations_of_shakespeare_works">Film Adaptations of Shakespeare Works</a> views, without my having to do anything.</p>
<p>I&#8217;m sure there are many more interesting and/or complicated views out there, and I&#8217;m pretty happy to be able to ones like those I just listed.</p>
<p>Tags: <a href="http://tadhg.com/wp/tag/freebase/" rel="tag">freebase</a>, <a href="http://tadhg.com/wp/tag/semantic-web/" rel="tag">semantic-web</a>, <a href="http://tadhg.com/wp/tag/tech/" rel="tag">tech</a></p><h4 class='related-posts-header'>Related Posts</h4><ul class="related-posts-list"><li class="related-post"><a href="http://tadhg.com/wp/2008/08/19/freebase-films-adapted-from-books-in-the-last-decade/">Freebase: Films Adapted from Books in the Last Decade</a> <span class="related-post-date timestamp">Tue 19 Aug 2008</span></li><li class="related-post"><a href="http://tadhg.com/wp/2008/03/18/editable-google-maps/">Editable Google Maps</a> <span class="related-post-date timestamp">Tue 18 Mar 2008</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/08/mapdroyd/">MapDroyd</a> <span class="related-post-date timestamp">Sun 08 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/01/travel-ebooks-and-real-books/">Travel, Ebooks, and Real Books</a> <span class="related-post-date timestamp">Sun 01 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/07/16/metaweb-acquired-by-google/">Metaweb Acquired by Google</a> <span class="related-post-date timestamp">Fri 16 Jul 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/07/12/8-bit-cities/">8-Bit Cities</a> <span class="related-post-date timestamp">Mon 12 Jul 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/05/28/some-futurist-speculation-on-screen-interfaces/">Some Futurist Speculation on Screen Interfaces</a> <span class="related-post-date timestamp">Fri 28 May 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/05/27/1-in-6-shocked-by-cellphone-bill/">1 in 6 Shocked by Cellphone Bill</a> <span class="related-post-date timestamp">Thu 27 May 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/05/24/your-online-life-might-be-an-open-book/">Your Online Life Might be an Open Book</a> <span class="related-post-date timestamp">Mon 24 May 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/05/23/ipad-first-impressions-consumption-machine/">iPad First Impressions: Consumption Machine</a> <span class="related-post-date timestamp">Sun 23 May 2010</span></li></ul>]]></content:encoded>
			<wfw:commentRss>http://tadhg.com/wp/2008/12/01/more-versatile-freebase-views/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book List</title>
		<link>http://tadhg.com/wp/2008/11/24/book-list/</link>
		<comments>http://tadhg.com/wp/2008/11/24/book-list/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 07:56:45 +0000</pubDate>
		<dc:creator>Tadhg</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[freebase]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[reading]]></category>
		<category><![CDATA[web-development]]></category>

		<guid isPermaLink="false">http://www.tadhg.com/wp/?p=119</guid>
		<description><![CDATA[I haven&#8217;t got any graphs, despite what I said last time. I had some, but messed them up while experimenting with Flot, and in any case they weren&#8217;t quite what I wanted. However, I did solve some of the other issues I was having with my book-tracking application, and am relatively happy with the current [...]]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t got any graphs, despite <a href="http://www.tadhg.com/wp/2008/11/16/fun-with-books-and-data-models/">what I said last time</a>. I had some, but messed them up while experimenting with Flot, and in any case they weren&#8217;t quite what I wanted. However, I did solve some of the other issues I was having with my book-tracking application, and am relatively happy with the current view.<br />
<span id="more-889"></span><br />
It&#8217;s still not all that exciting, but I like having the information in one place, and I like the fact that I now have in one nice view <a href="http://books.tadhg.user.dev.freebaseapps.com/?year=2008">all the books I&#8217;ve read so far this year</a>.</p>
<p>One thing made abundantly clear by this list is that I my reading is incredibly biased towards male authors. There are 59 books by 61 authors on that list, and only six authors are definitely female; if I count <a href="http://www.freebase.com/view/guid/9202a8c04000641f80000000009153d4">K. J. Parker</a> as female, that would still only bring it up to nine. Either 10.34% or 14.75%, in other words. Considering that a) the book I&#8217;m currently reading is Dumas&#8217; <a href="http://www.freebase.com/view/en/twenty_years_after"><em>Twenty Years Later</em></a> and b) of the twelve books that I just got from Amazon only one is written by a woman&#8212;<a href="http://www.freebase.com/view/authority/openlibrary/book/OL3560916M"><em>The Fall of the Kings</em></a>, which is technically written by two women, but still&#8212;it doesn&#8217;t look like that ratio is going to get much better this year, and is likely to be worse.</p>
<p>I&#8217;ve been aware of this tilt in my reading habits for a while, but haven&#8217;t really been able to do anything about it. I don&#8217;t tend to notice the gender of the author all that much while I&#8217;m reading, and my experience of reading books written by women hasn&#8217;t led me to believe that I&#8217;d prefer books by men (or women&#8212;it&#8217;s felt quite neutral). Nevertheless, I seem to end up reading a lot more by men. I don&#8217;t know what the gender split in actual books published is, but I suspect it&#8217;s better than my ratio.</p>
<p>I&#8217;ll have to make more of an effort, I suppose, to get a better balance. I intend to try some <a href="http://www.freebase.com/view/en/lois_mcmaster_bujold">Lois McMaster Bujold</a> next year&#8212;if I end up reading a lot of her work, I&#8217;ll definitely have a much higher proportion of women-written books.</p>
<p>My suspicion, however, is that over time, if I don&#8217;t make a conscious effort, I&#8217;ll tend towards reading 80%-plus male-written books. While that&#8217;s not a terrible thing in itself, I&#8217;d like to understand better why that is.</p>
<p>(Actually, after finishing this post I realized that a second book in that bunch from Amazon is written by a woman: Melissa Roth&#8217;s <a href="http://www.amazon.com/Left-Stuff-Left-Handed-Survived-Right-Handed/dp/1590770811"><em>The Left Stuff</em></a>. Which also reminds me to lobby again to have handedness included in <a href="http://www.freebase.com/type/schema/people/person">the person schema</a>. How to then get that data for entry into Freebase is another question, but I would of course love to see my reading ratio for left-handed versus right-handed authors&#8230;)</p>
<p>Tags: <a href="http://tadhg.com/wp/tag/books/" rel="tag">books</a>, <a href="http://tadhg.com/wp/tag/coding/" rel="tag">coding</a>, <a href="http://tadhg.com/wp/tag/freebase/" rel="tag">freebase</a>, <a href="http://tadhg.com/wp/tag/personal/" rel="tag">personal</a>, <a href="http://tadhg.com/wp/tag/reading/" rel="tag">reading</a>, <a href="http://tadhg.com/wp/tag/web-development/" rel="tag">web-development</a></p><h4 class='related-posts-header'>Related Posts</h4><ul class="related-posts-list"><li class="related-post"><a href="http://tadhg.com/wp/2010/01/01/2010-goals/">2010 Goals</a> <span class="related-post-date timestamp">Fri 01 Jan 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2008/11/16/fun-with-books-and-data-models/">Fun with Books and Data Models </a> <span class="related-post-date timestamp">Sun 16 Nov 2008</span></li><li class="related-post"><a href="http://tadhg.com/wp/2008/04/29/literary-awards-in-freebase/">Literary Awards in Freebase</a> <span class="related-post-date timestamp">Tue 29 Apr 2008</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/01/travel-ebooks-and-real-books/">Travel, Ebooks, and Real Books</a> <span class="related-post-date timestamp">Sun 01 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/03/30/2010-goals-first-quarter-review/">2010 Goals: First Quarter Review</a> <span class="related-post-date timestamp">Tue 30 Mar 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/12/29/2009-goals-review/">2009 Goals Review</a> <span class="related-post-date timestamp">Tue 29 Dec 2009</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/07/30/2009-goals-status/">2009 Goals Status</a> <span class="related-post-date timestamp">Thu 30 Jul 2009</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/07/28/better-rest-wordpress-pipeline/">Better reST–WordPress Pipeline</a> <span class="related-post-date timestamp">Tue 28 Jul 2009</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/07/14/blog-workflow-with-restructuredtext/">Blog Workflow with reStructuredText</a> <span class="related-post-date timestamp">Tue 14 Jul 2009</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/02/27/giving-up-on-a-goal-for-2009/">Giving Up On A Goal For 2009</a> <span class="related-post-date timestamp">Fri 27 Feb 2009</span></li></ul>]]></content:encoded>
			<wfw:commentRss>http://tadhg.com/wp/2008/11/24/book-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fun with Books and Data Models</title>
		<link>http://tadhg.com/wp/2008/11/16/fun-with-books-and-data-models/</link>
		<comments>http://tadhg.com/wp/2008/11/16/fun-with-books-and-data-models/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 07:56:28 +0000</pubDate>
		<dc:creator>Tadhg</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[freebase]]></category>
		<category><![CDATA[reading]]></category>
		<category><![CDATA[web-development]]></category>

		<guid isPermaLink="false">http://www.tadhg.com/wp/?p=113</guid>
		<description><![CDATA[Fun might be the wrong word.
(Also, this is long. Condensed: I&#8217;ve been using Freebase to store my reading data, I wrote an Acre app to provide a custom view, and I discovered that my data model has some shortcomings.)
I&#8217;ve been playing with Acre some more, specifically on a long-term project of mine: to store data [...]]]></description>
			<content:encoded><![CDATA[<p>Fun might be the wrong word.</p>
<p>(Also, this is long. Condensed: I&#8217;ve been using <a href="http://www.freebase.com/">Freebase</a> to store my <a href="http://www.freebase.com/view/user/tadhg/tbooks/views/tbookeditionlist">reading data</a>, I wrote an <a href="http://www.freebase.com/tools/appeditor">Acre</a> app to provide a <a href="http://books.tadhg.user.dev.freebaseapps.com/">custom view</a>, and I discovered that my data model has some shortcomings.)</p>
<p>I&#8217;ve been playing with <a href="http://www.freebase.com/tools/appeditor">Acre</a> some more, specifically on a long-term project of mine: to store data about the books I read in some system and then create views about my reading habits. Yes, compulsive list-making combined with programming/data geekery.</p>
<p>Anyway, I could have used a lot of other systems, such as Delicious Library or LibraryThing or Books, to store this information, but none of them seemed to have quite what I want (and most of them are proprietary). I could have written my own, and planned to, but kept tweaking with the data model and generally wasn&#8217;t sure how I wanted to deal with it.<br />
<span id="more-883"></span><br />
I was going down the path of having objects for Books, instances of Books, Book reading events, and Authors. Then I encountered <a href="http://www.freebase.com/">Freebase</a>&#8212;I said that this has been a long-term project&#8212;and decided that I like the data model in its <a href="http://www.freebase.com/view/book">Publishing domain</a>.</p>
<p>The relevant Freebase types for me are:<br />
<a href="http://www.freebase.com/type/schema/book/book">Book</a><br />
<a href="http://www.freebase.com/type/schema/book/book_edition">Book Edition</a><br />
<a href="http://www.freebase.com/type/schema/book/written_work">Written Work</a><br />
<a href="http://www.freebase.com/type/schema/book/author">Author</a></p>
<p>Written Work is an included type for Book, so whenever you assert that something is a Book, the Freebase frontend asserts that it is also a Written Work. I considered Written Work to essentially be part of Book for my purposes.</p>
<p>I&#8217;ve been keeping track, in text files, the books that I read for quite some time. I&#8217;ve gradually increased the information I gather about each one, so that what was originally just date started, date finished, title, author, and whether or not I&#8217;d read the book before, has become this:</p>
<p>07. 29/03/2008; Matter; Iain M. Banks<br />
593 pages; started 28/03/2008; 2008; Orbit, New York Feb 2008; ISBN-10: 0316005363; ISBN-13: 9780316005364; FBG: 9202a8c04000641f80000000091ceee6;</p>
<p>The last part, the most recent addition, stands for FreeBase Guid&#8212;that is, if you tack <code>/guid/</code> onto the front of it, you have a Freebase identifier. One of many ways to use this is to just put the Freebase view address in front of it, like so: <code><a href="http://www.freebase.com/view/guid/9202a8c04000641f80000000091ceee6">http://www.freebase.com/view/guid/9202a8c04000641f80000000091ceee6</a></code>, which gives you the link to the Freebase page for the edition of <em>Matter</em> that I read in March this year.</p>
<p>The reason that edition is in there is because I added it. Freebase doesn&#8217;t have fantastic coverage for book data yet (thought that may change), so at the moment I manually enter the edition data, and occasionally the book data, for each book I read.</p>
<p>So, once all that is in the system, there should be some way for me to tag the books that I&#8217;ve read. The easiest way to do this would be to create a type, something like &#8220;Books Tadhg has read&#8221;, with the date properties. I don&#8217;t like that approach because Freebase types are a little like tags, and my addition of this type to a topic would show up for everyone, which strikes me as a little like pollution (because I assume that details on what I&#8217;ve been reading are not as fascinating to everyone as they are to me and, no doubt, the readers of this blog).</p>
<p>Instead, I created the types <a href="http://www.freebase.com/type/schema/user/tadhg/tbooks/book_edition_reader">Book Edition Reader</a> and <a href="http://www.freebase.com/type/schema/user/tadhg/tbooks/book_edition_reading_event">Book Edition Reading Event</a>. Before going into that, let me explain why I used Book Edition instaed of Book&#8212;it&#8217;s mainly because I want the easiest path to the data that&#8217;s relevant to me, which is the data that I capture myself as in those two lines above indicating when I read <em>Matter</em>, how long it was, where it was published, and so on. Because a Book Edition can refer to only one Book, it seemed an easier path to specify just the Book Edition, from which the Book can later be extracted, whereas if I specified Book, I would also have to specify which Book Edition of that Book I meant. Book Edition, then, was the approach.</p>
<p>My approach is more convoluted than adding a type to every Book Edition, but still fairly simple. The Book Edition Reader type is attached to a person, and takes Book Edition Reading Event in a property that expects a list of things. Book Edition Reading Event has the reader (me, since nobody else has used this so far, although it&#8217;s there for anyone who wants it), the start date, the end date, and the Book Edition read.</p>
<p>Simple. Once it&#8217;s all in there, I can get the list of Book Editions I&#8217;ve read with a straightforward query, like this one:</p>
<pre><code>
{
"book_editions_read" : [
  {
    "book_edition" : {
      "id" : null,
      "name" : null,
      "type" : "/book/book_edition"
    },
    "end_date" : null,
    "sort" : "end_date",
    "start_date" : null,
    "type" : "/user/tadhg/tbooks/book_edition_reading_event"
  }
],
"id" : "/guid/9202a8c04000641f8000000004904c64",
"type" : "/user/tadhg/tbooks/book_edition_reader"
}
</pre>
<p></code></p>
<p>Using the Freebase frontend's view capabilities, I can get a <a href="http://www.freebase.com/view/user/tadhg/tbooks/views/tbookeditionlist">simple list</a> pretty easily.</p>
<p>However, what I really want is something that exposes data about the book (as well as the edition), such as genre and subject, and the author, such as gender and nationality. A bunch of work with Acre got me to this (incomplete) <a href="http://books.tadhg.user.dev.freebaseapps.com/">view of books I've read this year</a>.</p>
<p>So, it all looked good, and while it's a little slower than I would like, it's not the kind of thing I anticipate wanting really quick results from. But, as I was entering more books from this year, I ran into a snag&#8212;my data model is flawed as a way to represent the data I capture in my text files.</p>
<p>The reason is that what I consider a "book" isn't necessarily a physical book (which is what Book Edition maps to), but something more conceptual, a difference clearly exposed when I read a book that's contained in a collection. A collection such as <a href="http://www.freebase.com/view/guid/9202a8c04000641f8000000008dd71df"><em>Viriconium</em></a>, which contains three M. John Harrison novels and a book of M. John Harrison short stories, and which my text file records represent as:<br />
37. 04/08/2008; The Pastel City; M. John Harrison<br />
108 pages; started 04/08/2008; 1971; [Viriconium; Bantam Spectra/Random House, New York November 2005; ISBN-10: 0553383159; ISBN-13: 9780553383157; FBG: 9202a8c04000641f8000000008dd71df]<br />
38. 05/08/2008; Storm of Wings; M. John Harrison<br />
146 pages; started 05/08/2008; 1980; [Viriconium; Bantam Spectra/Random House, New York November 2005; ISBN-10: 0553383159; ISBN-13: 9780553383157; FBG: 9202a8c04000641f8000000008dd71df]<br />
39. 06/08/2008; In Viriconium; M. John Harrison<br />
86 pages; started 05/08/2008; [Viriconium; Bantam Spectra/Random House, New York November 2005; ISBN-10: 0553383159; ISBN-13: 9780553383157; FBG: 9202a8c04000641f8000000008dd71df]<br />
40. 06/08/2008; Viriconium Nights; M. John Harrison<br />
121 pages; started 06/08/2008; [Viriconium; Bantam Spectra/Random House, New York November 2005; ISBN-10: 0553383159; ISBN-13: 9780553383157; FBG: 9202a8c04000641f8000000008dd71df]</p>
<p>The Book Edition is clearly the Viriconium collection. But if I enter that as a Book Edition Read, there's no way to denote which of the parts I read, or that there are four books (by my definition) in there. Furthermore, the numbers from my text files and the Freebase data would differ, and that's clearly not acceptable.</p>
<p>Right now, I only see one way around this, which muddies my data model somewhat: to include Written Work as one of the properties of Book Edition Reading Event, so that I'd be entering both the Book Edition and the Written Work&#8212;but could leave Written Work blank if it's just pointing to the Book that Book Edition points to. Then, I need some special-case code where if it's not the same as what the Book Edition is pointing to, I go fetch the data about the Written Work instead. It's just one property, but it makes it harder for other people to use the type (and I'd like to leave that option open), and it definitely increases the code complexity. However, I don't see another answer that satisfies these self-imposed requirements.</p>
<p>Therefore it's back to work on this, just at the point where I thought I'd fixed the basic data-entry, data-display, and data-model problems and could have some fun working on graphing out a variety of more-or-less pointless stuff&#8212;instead, I have to try to jam the anthology special case into the existing code framework.</p>
<p>Once that's done, though, there will be graphs, yes there will.</p>
<p>Tags: <a href="http://tadhg.com/wp/tag/books/" rel="tag">books</a>, <a href="http://tadhg.com/wp/tag/freebase/" rel="tag">freebase</a>, <a href="http://tadhg.com/wp/tag/reading/" rel="tag">reading</a>, <a href="http://tadhg.com/wp/tag/web-development/" rel="tag">web-development</a></p><h4 class='related-posts-header'>Related Posts</h4><ul class="related-posts-list"><li class="related-post"><a href="http://tadhg.com/wp/2008/11/24/book-list/">Book List</a> <span class="related-post-date timestamp">Mon 24 Nov 2008</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/17/andre-agassis-open/">Andre Agassi’s <cite>Open</cite></a> <span class="related-post-date timestamp">Tue 17 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/01/travel-ebooks-and-real-books/">Travel, Ebooks, and Real Books</a> <span class="related-post-date timestamp">Sun 01 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/07/22/an-eldritch-reading/">An Eldritch Reading</a> <span class="related-post-date timestamp">Thu 22 Jul 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/06/21/harry-potter-and-the-methods-of-rationality/"><cite>Harry Potter and the Methods of Rationality</cite></a> <span class="related-post-date timestamp">Mon 21 Jun 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/06/14/retitling-for-the-seo-age/">Retitling for the SEO Age</a> <span class="related-post-date timestamp">Mon 14 Jun 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/01/01/2010-goals/">2010 Goals</a> <span class="related-post-date timestamp">Fri 01 Jan 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/12/29/2009-goals-review/">2009 Goals Review</a> <span class="related-post-date timestamp">Tue 29 Dec 2009</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/12/27/favorite-books-of-2008/">Favorite Books of 2008</a> <span class="related-post-date timestamp">Sun 27 Dec 2009</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/11/13/doomsday-book-review/"><cite>Doomsday Book</cite> Review</a> <span class="related-post-date timestamp">Fri 13 Nov 2009</span></li></ul>]]></content:encoded>
			<wfw:commentRss>http://tadhg.com/wp/2008/11/16/fun-with-books-and-data-models/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Acre Family Chart</title>
		<link>http://tadhg.com/wp/2008/11/11/acre-family-chart/</link>
		<comments>http://tadhg.com/wp/2008/11/11/acre-family-chart/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 07:51:18 +0000</pubDate>
		<dc:creator>Tadhg</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[freebase]]></category>
		<category><![CDATA[web-development]]></category>

		<guid isPermaLink="false">http://www.tadhg.com/wp/?p=110</guid>
		<description><![CDATA[Freebase recently got a hosted development environment, Acre, and I&#8217;ve been playing with it. It makes it quite easy to develop applications using Freebase data (which is the point), and I&#8217;m eager to write some of those applications myself.

As a test case, and an exploration of how views tailored to specific Freebase types can expose [...]]]></description>
			<content:encoded><![CDATA[<p>Freebase <a href="http://blog.freebase.com/2008/11/07/introducing-acre/">recently got a hosted development environment, Acre</a>, and I&#8217;ve been playing with it. It makes it quite easy to develop applications using Freebase data (which is the point), and I&#8217;m eager to write some of those applications myself.<br />
<span id="more-880"></span><br />
As a test case, and an exploration of how views tailored to specific Freebase types can expose the richness of the data in ways that the web client I work on usually can&#8217;t, I put together a basic <a href="http://f-tree.tadhg.user.dev.freebaseapps.com/">family tree visualizer</a>. It shows direct relatives of whoever you focus on, that is their parents, siblings, children, and spouses. It also shows grandparents, just to make it a little more interesting.</p>
<p>Its operation is simple: find a person using the FreebaseSuggest box in the upper left, and click on any person to load a page with them at the center. Clicking on the person in the center, or on the [e] links, brings you to that person in Freebase for editing.</p>
<p>The UI needs quite a lot of work, as it looks fairly awful. I might be able to get some help with that this week, and there are certainly a lot of refinements to be made. But as my first work with Acre, I&#8217;m happy with it.</p>
<p>While it does show off some of the data in Freebase, it may actually be more useful in showing what data we don&#8217;t have in there yet. There are a lot of historical figures whose parentage is widely known but which Freebase doesn&#8217;t yet know. Ideally you&#8217;d be able to add that kind of thing directly from the app, without having to go to Freebase.com, but that functionality is quite far away&#8230;</p>
<p>If you&#8217;re curious about building apps, try out <a href="http://www.freebase.com/tools/appeditor/">the app editor</a>; the <a href="http://www.freebase.com/tools/appeditor/#app=/user/tadhg/f-tree&#038;file=index">source code for my family chart is available</a>, as is code for other Acre applications.</p>
<p>Some potentially interesting other family charts:<br />
<a href="http://f-tree.tadhg.user.dev.freebaseapps.com/index?id=/en/louis_xiv_of_france">Louse XIV of France</a><br />
<a href="http://f-tree.tadhg.user.dev.freebaseapps.com/index?id=/en/john_f_kennedy">JFK</a><br />
<a href="http://f-tree.tadhg.user.dev.freebaseapps.com/index?id=/en/george_w_bush">George W. Bush</a><br />
<a href="http://f-tree.tadhg.user.dev.freebaseapps.com/index?id=/en/elizabeth_ii_of_the_united_kingdom">Elizabeth II of England</a><br />
<a href="http://f-tree.tadhg.user.dev.freebaseapps.com/index?id=/en/james_i_of_england">James I of England</a></p>
<p>(The political/royalist bias here is sadly necessary since those appear to be the richest pockets of data&#8230;)</p>
<p>Tags: <a href="http://tadhg.com/wp/tag/freebase/" rel="tag">freebase</a>, <a href="http://tadhg.com/wp/tag/web-development/" rel="tag">web-development</a></p><h4 class='related-posts-header'>Related Posts</h4><ul class="related-posts-list"><li class="related-post"><a href="http://tadhg.com/wp/2008/11/24/book-list/">Book List</a> <span class="related-post-date timestamp">Mon 24 Nov 2008</span></li><li class="related-post"><a href="http://tadhg.com/wp/2008/11/16/fun-with-books-and-data-models/">Fun with Books and Data Models </a> <span class="related-post-date timestamp">Sun 16 Nov 2008</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/09/07/adding-recaptcha-to-tadhg-com/">Adding reCAPTCHA to tadhg.com</a> <span class="related-post-date timestamp">Tue 07 Sep 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/03/30/2010-goals-first-quarter-review/">2010 Goals: First Quarter Review</a> <span class="related-post-date timestamp">Tue 30 Mar 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/02/11/internet-illiteracy/">Internet Illiteracy</a> <span class="related-post-date timestamp">Thu 11 Feb 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/01/21/jquery-project/">jQuery Project</a> <span class="related-post-date timestamp">Thu 21 Jan 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/01/10/wordpress-2-9-upgrade/">WordPress 2.9 Upgrade</a> <span class="related-post-date timestamp">Sun 10 Jan 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/01/01/2010-goals/">2010 Goals</a> <span class="related-post-date timestamp">Fri 01 Jan 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/12/29/2009-goals-review/">2009 Goals Review</a> <span class="related-post-date timestamp">Tue 29 Dec 2009</span></li><li class="related-post"><a href="http://tadhg.com/wp/2009/12/08/gps-urls-math-python-featuritis/">GPS, URLs, Math, Python, Featuritis</a> <span class="related-post-date timestamp">Tue 08 Dec 2009</span></li></ul>]]></content:encoded>
			<wfw:commentRss>http://tadhg.com/wp/2008/11/11/acre-family-chart/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Freebase: Films Adapted from Books in the Last Decade</title>
		<link>http://tadhg.com/wp/2008/08/19/freebase-films-adapted-from-books-in-the-last-decade/</link>
		<comments>http://tadhg.com/wp/2008/08/19/freebase-films-adapted-from-books-in-the-last-decade/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 05:37:36 +0000</pubDate>
		<dc:creator>Tadhg</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[film]]></category>
		<category><![CDATA[freebase]]></category>
		<category><![CDATA[tech]]></category>

		<guid isPermaLink="false">http://www.tadhg.com/wp/?p=50</guid>
		<description><![CDATA[I&#8217;m usually pleased when I stumble across questions that it seems can only be answered by Freebase or a lot of work&#8212;even though I don&#8217;t see Freebase as being primarily for casual searching/browsing in the way that Wikipedia is, it&#8217;s always nice when I come up with a casual question (one that might come up [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m usually pleased when I stumble across questions that it seems can only be answered by <a href="http://www.freebase.com/">Freebase</a> or a lot of work&#8212;even though I don&#8217;t see Freebase as being primarily for casual searching/browsing in the way that Wikipedia is, it&#8217;s always nice when I come up with a casual question (one that might come up in conversation, say) that suits the site very well.<br />
<span id="more-820"></span><br />
In this case, after reading <em>The Bourne Identity</em>, I started wondering about films based on books that are better than the original book. I consider <em>The Bourne Identity</em> film to be better than the book by some distance, and might blog about that at some point, but first I wondered how rare it was. Freebase can&#8217;t answer that directly, obviously, but I thought it could give me a list to work with. I wanted to restrict it to the last ten years, to make it easier, and it wasn&#8217;t hard to write a <a href="http://www.freebase.com/tools/queryeditor?q=[{%22/media_common/adaptation/adapted_from%22:[{%22name%22:null,%22other:type%22:{%22id%22:%22/comic_books/comic_book_story%22,%22optional%22:%22forbidden%22},%22type%22:%22/book/book%22}],%22initial_release_date%22:null,%22initial_release_date%3E=%22:%221998%22,%22name%22:null,%22second:type%22:%22/media_common/adaptation%22,%22sort%22:%22name%22,%22type%22:%22/film/film%22}]&#038;read=1">query to do just that</a>:</p>
<pre class="js">
[
  {
    "/media_common/adaptation/adapted_from" : [
      {
        "name" : null,
        "other:type" : {
          "id" : "/comic_books/comic_book_story",
          "optional" : "forbidden"
        },
        "type" : "/book/book"
      }
    ],
    "id": null,
    "initial_release_date" : null,
    "initial_release_date>=" : "1998",
    "name" : null,
    "second:type" : "/media_common/adaptation",
    "sort" : "name",
    "type" : "/film/film"
  }
]
</pre>
<p>The stuff with &#8220;other:type&#8221; is in there to filter out films based on comics, since I didn&#8217;t want to consider those in my musings.</p>
<p>There are 90 candidates in Freebase. I haven&#8217;t gone through them exhaustively, but collating them that way is a lot better than trying to figure out the list by going through every film released in the last ten years and checking to see if they&#8217;re adaptations of books. Even given that Freebase is likely to miss some, it&#8217;s better this way than wading through all the IMDB entries or similar.</p>
<p>Tags: <a href="http://tadhg.com/wp/tag/film/" rel="tag">film</a>, <a href="http://tadhg.com/wp/tag/freebase/" rel="tag">freebase</a>, <a href="http://tadhg.com/wp/tag/tech/" rel="tag">tech</a></p><h4 class='related-posts-header'>Related Posts</h4><ul class="related-posts-list"><li class="related-post"><a href="http://tadhg.com/wp/2008/12/01/more-versatile-freebase-views/">More Versatile Freebase Views</a> <span class="related-post-date timestamp">Mon 01 Dec 2008</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/09/03/3-6-gigapixels-of-blade-runner/">3.6 Gigapixels of <cite>Blade Runner</cite></a> <span class="related-post-date timestamp">Fri 03 Sep 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/27/scott-pilgrim-vs-the-matrix/">Scott Pilgrim vs. the Matrix</a> <span class="related-post-date timestamp">Fri 27 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/20/lightsabers-are-still-cool/">Lightsabers are Still Cool</a> <span class="related-post-date timestamp">Fri 20 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/08/mapdroyd/">MapDroyd</a> <span class="related-post-date timestamp">Sun 08 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/08/01/travel-ebooks-and-real-books/">Travel, Ebooks, and Real Books</a> <span class="related-post-date timestamp">Sun 01 Aug 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/07/12/8-bit-cities/">8-Bit Cities</a> <span class="related-post-date timestamp">Mon 12 Jul 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/07/05/how-to-cheat-in-the-leaving-certificate-on-youtube/"><cite>How to Cheat in the Leaving Certificate</cite> on YouTube</a> <span class="related-post-date timestamp">Mon 05 Jul 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/06/17/an-entirely-naturalistic-palette/">An Entirely Naturalistic Palette</a> <span class="related-post-date timestamp">Thu 17 Jun 2010</span></li><li class="related-post"><a href="http://tadhg.com/wp/2010/06/08/best-in-lifethe-greatest-joy/">Best in Life/The Greatest Joy?</a> <span class="related-post-date timestamp">Tue 08 Jun 2010</span></li></ul>]]></content:encoded>
			<wfw:commentRss>http://tadhg.com/wp/2008/08/19/freebase-films-adapted-from-books-in-the-last-decade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
