- From: Hugh Glaser <hg@ecs.soton.ac.uk>
- Date: Mon, 4 Jun 2012 20:21:23 +0000
- To: Andreas Thalhammer <andreas.thalhammer@sti2.at>
- CC: Semantic Web <semantic-web@w3.org>, public-lod community <public-lod@w3.org>
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:22:05 UTC