[Developers] Reflection problem

Philip Kendall philip-freebase at shadowmagic.org.uk
Thu May 28 20:43:23 UTC 2009


On Thu, May 28, 2009 at 01:30:12PM -0700, Chris Fitzpatrick wrote:
> 
> Hello,
> 
> I'm having a problem with querying links...specifically getting the  
> "name" value to return for some of the any_reverse properties.

[ ... ]

> The result in my application is that "Employment History" is just a  
> bunch of "null" for each of the links associated to that person...
> 
> Any suggestions?

Stripping that down a bit, if your problem is that you're getting null
back for the name from (eg)

[{
  "/type/reflect/any_reverse": [{
    "id":       null,
    "link": {
      "master_property": {
        "reverse_property": {
          "id": "/people/person/employment_history"
        }
      }
    },
    "name":     null,
    "optional": true
  }],
  "id":   "/en/edward_feigenbaum",
  "name": null
}]

then that's entirely to be expected: employment history is a CVT
(compound value type) and doesn't have a name. See (for instance)

<http://www.freebase.com/view/guid/9202a8c04000641f80000000051b0a1e>

Hope this helps,

Phil

-- 
  Philip Kendall <philip at shadowmagic.org.uk>
  http://www.shadowmagic.org.uk/


More information about the Developers mailing list