- From: Barry Norton <barry.norton@ontotext.com>
- Date: Mon, 04 Jun 2012 21:30:48 +0100
- To: Hugh Glaser <hg@ecs.soton.ac.uk>
- CC: Andreas Thalhammer <andreas.thalhammer@sti2.at>, Semantic Web <semantic-web@w3.org>, public-lod community <public-lod@w3.org>
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
>>
Received on Monday, 4 June 2012 20:31:26 UTC