[Developers] Viewer source code?
Jason Douglas
jason at metaweb.com
Thu May 28 20:58:46 UTC 2009
On May 28, 2009, at 11:52 AM, Joseph Turian wrote:
> I see that the viewer for individual company pages draws together a
> lot of information, from the links within the company entities:
>
> http://www.freebase.com/view/en/general_motors
>
> I would like to retrieve this full company information page, and
> augment it with more information. This would be easier than reading
> the MQL result and walking down the chain of information, and figuring
> out how to render it.
> Is there an easy way to get all the information on the page above?
There may eventually be a real "topic api", but for now one option
is to use an Acre script I put together awhile ago:
http://libraries.freebaseapps.com/topic/en/general_motors
source: http://acre.freebase.com/#app=/freebase/apps/
libraries&file=topic
It's not the fastest in the world and the output is certainly not as
clean
as it should be, but it does the job. It can act as either a web
service
or as an acre library (require it, then call json_for_topic()).
> Is the source code for the viewer available?
No, but there's acre code around. :-) For example:
http://topics.freebaseapps.com/topic/en/general_motors
source: http://acre.freebase.com/#app=/user/jdouglas/view&file=topic
uses the above library. It could be done much more simply as this
template
was trying out a lot of other experiments, but that's an exercise left
to the
reader. :-)
Like all acre code, it's BSD-licensed so clone the app, save individual
files into another app, cut-and-paste, whatever.
-jason
More information about the Developers
mailing list