[Developers] Reflection problem
Chris Fitzpatrick
cfitz at stanford.edu
Thu May 28 22:21:39 UTC 2009
Ok. I see now. Changing the "name" to "/education/education/
institution" give me the value.
Like:
> [{
> "/type/reflect/any_reverse": [{
> "id": null,
> "link": {
> "master_property": {
> "reverse_property": {
> "id": "/people/person/employment_history"
> }
> }
> },
> "/education/education/institution" : null,:
> "optional": true
> }],
> "id": "/en/edward_feigenbaum",
> "name": null
> }]
Hm. I was wanting to make it as generic as possible, but I guess I
need to add some conditionals to catch the desired CVTs.
Ok. Thanks!
best,chris.
On May 28, 2009, at 1:43 PM, Philip Kendall wrote:
> 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/
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
More information about the Developers
mailing list