Fun app

  1.  
    1. Hi James, this is a fun app. Are you going to develop it further? It's also the first Freebase / Google App Engine app that I've seen.

       

       

      1. There's seems to be problem in that I keep get an error message (seems to be related to mis-guessed selections).

      2. Yeah, the problem is related to getting more than one cause back from the following query:

         

         mjt.freebase.MqlRead({

        type:"/people/deceased_person",
        name: null,
         id: "/en/vincent_van_gogh",
         cause_of_death: null,
         limit: 1,
         
         })

         

         

        I belive I just need to expand the cause_of_death request so that there is a limit of one cause returned.

         

      3. just use [ ] instead of null and that val will be a list that you can iterate through in your python code.  nice idea!

         mjt.freebase.MqlRead({

        type:"/people/deceased_person",
        name: null,
         id: "/en/vincent_van_gogh",
         cause_of_death: [ ],
         limit: 1,
         
         })
         

         

      4. This is actually done in MJT. From the documentation I thought that doing what you suggest and then using syntax like

         

        '$q.result.cause_of_death[0].cause_of_death'

        would work. Because if I just ask for cause of death: [] and then use  $q.result.cause_of_death when there are multiple entries,it will return something like "SkiingSkiiningAccident" for Sonny Bono.

      5. got it, I suppose the first one on the list is good enough. But, you know, what if the person in question was shot *while* skiiing into a tree? :)

      6. That's for the coroner to decide, I believe.

         

        But actually, you have a point. Is AIDS a cause of death? Is murder a cause of death? It's a bit of a pandora's box.

        Anyways, the two games are up. Very modest in scope, but they were useful for learning the basics of MJT.

        I'm working on a new one now that is somewhat more complex, so I'll throw that up when it's ready. 



    Discussion is posted in:

    Think this discussion also relates to something else? Cross-post it by adding a new discussion area:

Related Discussions