W3C home > Mailing lists > Public > semantic-web@w3.org > June 2012

Re: Knowledge Graph links to Freebase

From: Hugh Glaser <hg@ecs.soton.ac.uk>
Date: Mon, 4 Jun 2012 20:48:21 +0000
To: Barry Norton <barry.norton@ontotext.com>
CC: Andreas Thalhammer <andreas.thalhammer@sti2.at>, Semantic Web <semantic-web@w3.org>, public-lod community <public-lod@w3.org>
Message-ID: <EMEW3|180dca0b23d4a5db9276dfb9fabc5160o53LmP02hg|ecs.soton.ac.uk|57A4466A-EDFE-43B1-A2AE-C31A1FC1DB11@ecs.soton.ac.uk>
Well for a start, Freebase seems to have a page for every book and every author of every book, I think.
Well, not "every" of course, but quite a few.
If they got this from the LoC, then that would be 30M+ for the books alone.

On 4 Jun 2012, at 21:30, Barry Norton wrote:

> 
> Awesome.
> 
> Note that even for geography (e.g. Sheffield, as I found earlier) Freebase, not Geonames as predicted, is used. I wonder what the other claimed 300M entities are, and where/when they appear...
> 
> Barry
> 
> 
> On 04/06/2012 21:21, Hugh Glaser wrote:
>> OK.
>> Not sure what the URI would be to append it to, so it just gives the string, but here it is:
>> http://sameas.org/ggraph/?ggid=06y3r
>> If you know what would be a useful way of using the stick, please tell me.
>> 
>> By the way, you have to strip off the last character.
>> The php code is:
>> 
>>         if (isset($_REQUEST['key'])) {
>>                 $key = trim($_REQUEST['key']);
>>                 exec("echo ".escapeshellarg($key)." | ./base64 -d | gunzip", $output);
>>                 $fbid = substr($output[0], 4);
>>                 $fburi = "http://rdf.freebase.com/ns$fbid";
>>                 print("<a href=\"$fburi\">$fburi</a>\n");
>>         } elseif (isset($_REQUEST['ggid'])) {
>>                 $ggid = trim($_REQUEST['ggid']);
>>                 exec("echo ".escapeshellarg($ggid)." | gzip | ./base64 -e", $output);
>>                 $gg = substr($output[0], 0, -1);
>>                 print("$gg\n");
>>         }
>> 
>> (But some base64 implementations have different flags, such as -D.)
>> (And yes, I could do it all in php, but I couldn't be bothered.)
>> 
>> Best
>> Hugh
>> 
>> On 4 Jun 2012, at 19:43, Andreas Thalhammer wrote:
>> 
>>> Dear Hugh,
>>> 
>>> On 06/03/2012 10:25 PM, Hugh Glaser wrote:
>>>> Great detective work!
>>> Thanks!
>>> 
>>>> Anyway, as it is Sunday of a holiday weekend:
>>>> http://sameas.org/ggraph/?key=H4sIAAAAAAAAAONgVuLQz9U3MKs0LgIAXXSnTQwAAAA
>>> This works like a charm! I think it would also be interesting to have the reverse direction.
>>> 
>>> Andreas
>>> 
>>> 
>>> -- 
>>> Andreas Thalhammer
>>> PhD Student
>>> Semantic Technology Institute
>>> University of Innsbruck
>>> http://www.sti2.at/
>>> 
>>> phone: +43 (0) 512507 6454
>>> email: andreas.thalhammer@sti2.at
>>> 
> 
> 

-- 
Hugh Glaser,  
             Web and Internet Science
             Electronics and Computer Science,
             University of Southampton,
             Southampton SO17 1BJ
Work: +44 23 8059 3670, Fax: +44 23 8059 3045
Mobile: +44 75 9533 4155 , Home: +44 23 8061 5652
http://www.ecs.soton.ac.uk/~hg/
Received on Monday, 4 June 2012 20:48:55 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:49 GMT