[Developers] Reflection Issue

Michael Aufreiter ma at zive.at
Sun Jul 12 01:20:25 UTC 2009


Hi!

In some cases the reflection mechanism seems not to work correctly.

The Query

{
   "/type/reflect/any_master": [{
     "link": null,
     "name": null,
     "id":   null
   }],
   "/type/reflect/any_reverse": [{
     "link": null,
     "name": null,
     "id":   null
   }],
   "id": "/en/armin_wolf",
   "/type/reflect/any_value": [{
     "value": null,
     "link":  null
   }]
}​

http://www.freebase.com/api/service/mqlread?query=%7B%20%22query%22%3A%20%7B%20%22%2Ftype%2Freflect%2Fany_master%22%3A%20%5B%7B%20%22link%22%3A%20null%2C%20%22name%22%3A%20null%2C%20%22id%22%3A%20null%20%7D%5D%2C%20%22%2Ftype%2Freflect%2Fany_reverse%22%3A%20%5B%7B%20%22link%22%3A%20null%2C%20%22name%22%3A%20null%2C%20%22id%22%3A%20null%20%7D%5D%2C%20%22id%22%3A%20%22%2Fen%2Farmin_wolf%22%2C%20%22%2Ftype%2Freflect%2Fany_value%22%3A%20%5B%7B%20%22value%22%3A%20null%2C%20%22link%22%3A%20null%20%7D%5D%20%7D%20%7D

returns null, while it's working for other resources:

{
   "/type/reflect/any_master": [{
     "link": null,
     "name": null,
     "id":   null
   }],
   "/type/reflect/any_reverse": [{
     "link": null,
     "name": null,
     "id":   null
   }],
   "id": "/en/the_police",
   "/type/reflect/any_value": [{
     "value": null,
     "link":  null
   }]
}​


Does anyone has an idea, what could the cause for this behavior?

I just need a working reflection mechanism for my Ruby Freebase API  
Wrapper ( http://github.com/michael/ken ) to inspect the whole data.
Currently it works most of the time, but not always.

Thanks in advance. :)

Michael


More information about the Developers mailing list