[Developers] navigate from a freebase topic to an alternate visualization
Jack Alves
jack at metaweb.com
Thu Mar 22 19:35:45 UTC 2007
Dae asked me to send this note to the developers list. I think I need to do
that before he will tell me the bookmarkable javascript I can use to
navigate from freebase to cinespin.
_____
From: Jack Alves
Subject: RE: FilmSpin Updated
I want CineSpin to accept id which could be a guid or a key so it can be
invoked by a javascript bookmark.
For instance today when I'm viewing "John Ford" the url looks like,
http://www.freebase.com/view?id=/wikipedia/en_id/280738
In the future it might look like,
http://www.freebase.com/api/metaweb/view?id=%239202a8c04000641f80000000001ad
475
So CineSpin should accept an valid id,
/filmSpin/index.html#/id=9202a8c04000641f800000000015050b
<http://kidbombay.com/clients/freebase/filmSpin/index.html#/guid=9202a8c0400
0641f800000000015050b>
/filmSpin/index.html#/id=/wikipedia/en_id/280738
<http://kidbombay.com/clients/freebase/filmSpin/index.html#/guid=9202a8c0400
0641f800000000015050b>
In either case you can do the following to get the guid and type if you need
it for your existing queries,
QUERY
{
"query":{
"guid":null,
"id":"/wikipedia/en_id/280738",
"name":null,
"type":null,
"type|=":["/film/film","/film/director","/film/actor"]
}
}
OR QUERY
{
"query":{
"guid":null,
"id":"#9202a8c04000641f80000000001ad475",
"name":null,
"type":null,
"type|=":["/film/film","/film/director","/film/actor"]
}
}
RESULT
{
"q1": {
"status": "/mql/status/ok",
"result": {
"guid": "#9202a8c04000641f80000000001ad475",
"type": "/film/director",
"id": "/wikipedia/en_id/280738",
"name": "John Ford"
}
},
"status": "200 OK"
}
The "|=" constriant is described in,
http://www.freebase.com/view/documentation/ch03.html#id2616378
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20070322/ca209b41/attachment-0002.htm
More information about the Developers
mailing list