Help Center » Discuss

Discussions on Help Center

  1.  

    See my history?

    1. Is there a way to see my entire activty history?  I added some stuff yesterday with the plan to go back and fill in data, but now I'm not sure if I remembered all that I added :)  And the history in my user account doesn't go back far enough (not even the expanded view). 

      Is there a way to see this kind of info?   

      1. Hmmm, seems like you may have stumbled on to a regression. I'll file an internal bug, but in the meantime, you can try this URL: http://dev.mqlx.com/~nick/reports/userdetail.html?user=%2Fuser%2Fevening

        Thanks for reporting this!

      2. I've been told that this has been fixed in the upcoming release.

      3. Thanks!

      4. FYI, looks like there is an error on the userdetail report

      5. Is this a different error than the one you reported earlier? If so, could you provide more details?

      6. This is a different one. When I go to the link you provided above (http://dev.mqlx.com/~nick/reports/userdetail.html?user=%2Fuser%2Fevening), I get a warning and error. I've copied it below.

        warning
        mjt.json_from_js: undefined value is illegal in JSONerror
        errorevaluating codeblock #top{"lineNumber":null,"name":"SyntaxError","message":"Expected identifier, string or number","prev_lines":[],"the_line":[[[ERROR: undefined value]]],"next_lines":[]}
        SyntaxError: Expected identifier, string or number

        ---NaN-->

      7. oops, that didn't paste quite right. let me try again.

        warning

        mjt.json_from_js: undefined value is illegal in JSON

        error

        error
        evaluating codeblock #top
        {"lineNumber":null,"name":"SyntaxError","message":"Expected identifier, string or number","prev_lines":[],"the_line":[[[ERROR: undefined value]]],"next_lines":[]}
        SyntaxError: Expected identifier, string or number

        ---NaN-->

      8. It looks like the client team has already fixed this in our upcoming release - thanks for reporting this, though.

      9. http://dev.mqlx.com/~nick/reports/userdetail.html?user=/user/evening

        Try it without the escaped "/" as "%2F"

        (Its possible this might be a site only accessible internally at Freebase Headquarters?)

        Here's a very useful page of tools:

        http://www.freebase.com/view/guid/9202a8c04000641f8000000005bbe084

  2.  

    selecting unknown properties

    1. Hi I'm sure this exists somewhere in all the docs available but I haven't been able to find it; I am building an app which treats freebase as a graph and therefore needs a query which treats records as nodes with arbitrary properties. This is more or less the functionality of the freebase search function. If I select the /common/topic "norway", I need a query which will return all its properties, and somehow give me the ids of all its related objects (location, country, governmental jurisdiction etc) so that I can do the same thing on them.

      All of the MQL examples focus on getting defined, very restricted sets of data so I'm not really sure how to go about this.

  3.  

    selecting unknown properties

    1. Hi I'm sure this exists somewhere in all the docs available but I haven't been able to find it; I am building an app which treats freebase as a graph and therefore needs a query which treats records as nodes with arbitrary properties. This is more or less the functionality of the freebase search function. If I select the /common/topic "norway", I need a query which will return all its properties, and somehow give me the ids of all its related objects (location, country, governmental jurisdiction etc) so that I can do the same thing on them.

      All of the MQL examples focus on getting defined, very restricted sets of data so I'm not really sure how to go about this.

      1. Ok i found it!
        [
        {
        "/type/reflect/any_master" : [
        {
        "id" : null,
        "link" : null,
        "name" : null,
        "type" : []
        }
        ],
        "/type/reflect/any_reverse" : [
        {
        "id" : null,
        "link" : null,
        "name" : null,
        "type" : []
        }
        ],
        "/type/reflect/any_value" : [
        {
        "link" : null,
        "type" : null,
        "value" : null
        }
        ],
        "id" : whatever
        }
        ]
        awesome!

      2. ok but here's a new problem with that approach:
        "/type/reflect/any_master" : [
        {
        "*" : null,
        "link" : null,
        "name" : null,
        "type" : []
        }
        ]
        will for instance give me lots of records I don't want. I need to filter it by type, but I can't seem to find any syntax for that. exclusion operators don't work on ids so I can't say "type": [ "id~=":"/type/permission" ] or whatever it would be. Any way to do this in the query?

      3. Hi zwit, have you read the latest version of the MQL tutorial? I think it should cover what you're trying to do. If not, ask for more help.

  4.  

    Multiple search queries with one http request?

    1. Is it possible to perform multiple search request, i.e. doing several http://www.freebase.com/api/service/search?limit=1&query=Embassy with just one mqlread? Something along the lines of:

      http://www.freebase.com/api/service/mqlread?queries={"q0":{"query": {

              "domain": null, 

              "surrounds_strict": "any", 

              "type_strict": "all", 

              "surrounds": [], 

              "mql_filter": null, 

              "explain": false, 

              "error_inside": ".", 

              "blacklist": [], 

              "start": 0, 

              "prefix": "", 

              "limit": 1, 

              "escape": "html", 

              "query": "Dutch", 

              "type": [], 

              "strict": "all"

            }},

            "q1":{"query": {

              "domain": null, 

              "surrounds_strict": "any", 

              "type_strict": "all", 

              "surrounds": [], 

              "mql_filter": null, 

              "explain": false, 

              "error_inside": ".", 

              "blacklist": [], 

              "start": 0, 

              "prefix": "", 

              "limit": 1, 

              "escape": "html", 

              "query": "Embassy", 

              "type": [], 

              "strict": "all"

            }}} 

  5.  

    Retrieving guid for /common/document

    1. I'm trying to retried the guid for the "article" key on /cvg/computer_videogame.  This seems like it should be pretty simple.

      Something along the lines of :

      [
        {
          "article" : {
            "guid" : null
          },
          "cvg_genre" : [],
          "developer" : [],
          "id" : null,
          "limit" : 1,
          "name" : null,
          "type" : "/cvg/computer_videogame",
          "versions" : [
            {
              "platform" : {
                "id" : "/en/xbox_360"
              }
            }
          ]
        }
      ]

       

      Yet I always get an error ""message" : "Type /cvg/computer_videogame does not have property article","

      I don't get it.  I'm looking at the schema and it says there's a key "article" right there.  Am I misunderstanding how this works?  How else would I possibly get the guid for an article?

      1. Type /cvg/computer_videogame includes type /common/topic , and article is a property of the /common/topic schema. You can modify your query to ask for the article using the fully qualified property id, i.e. /common/topic/article:

        [
        {
        "/common/topic/article" : {
        "guid" : null
        },
        "cvg_genre" : [],
        "developer" : [],
        "id" : null,
        "limit" : 1,
        "name" : null,
        "type" : "/cvg/computer_videogame",
        "versions" : [
        {
        "platform" : {
        "id" : "/en/xbox_360"
        }
        }
        ]
        }
        ]

      2. Thanks for your help, that worked perfectly. Can you explain how you knew to use /common/topic/article instead of article? I tried with /common/document since that is the type that article is, which did not work.

      3. I can see where it's possibly unclear - even though the properties are marked as such, they still belong to another type schema.

        If you look at the examples in the queryeditor for "Vietnamese restaurants in Aspen, Colorado'", you'll see that this example also uses fully qualified properties.

        I guess the takeaway is that if you are pivoting off of a certain type and also want information from properties of other types that the topic is cotyped as, you'll have to ask for those values using the fully qualified property name.

      4. Hi jimmyking, I find the explore view very helpful when trying to figure out fully qualified property names. (Press F8 when on a Freebase topic to show the 'dev bar')

  6.  

    Email notifications & Forum vs Data Modeling list

    1. I've got two questions:

      1. What should be discussed in the forums/discussion hub vs on the data modeling email list?  For example, the discussion around the Person topic has a bunch of stuff which is very similar to things that get discussed on the list and I can't really tell what is appropriate for which medium?

      2. I just discovered replies to comments that I posted several months ago.  I'm pretty sure that I never got email notification of them, but that could have been operator error.  Are notifications turned on by default?  Do notifications result in email or do they just add an entry to the tab on my main discussion hub page (ie I have to log in to see if anything happened)?

      Tom

      1. Hi, Tom.
        1. The forums are good places for discussing specifics of a topic, type, or domain, especially for communicating with a user on his or her page, or as the owner of a domain. The data-modeling list is a good place to discuss general issues, ask for help with a model, or to alert people to changes.
        2. We don’t have e-mail notification for discussion posts. You can ask for an RSS feed of the posts on any particular topic, and your Freebase home page will show replies to you.
        Since we at Metaweb are all users of this system, we are aware of the challenges in tracking discussion. We are working on better communication tools, so stay tuned.

  7.  

    I broke something

    1. I moved a type between domains, and now I'm getting a server error: http://www.freebase.com/view/user/frankieroberto/cultural_heritage/exhibition

      1. Hmm, I found your exhibition type in your 'trash' domain. Can you describe what you were doing when you moved the type? Any browser crashes or anything?

      2. The one in the 'trash' bin was a duplicate - I moved it to a new 'trash' domain as I can't figure out a way of deleting it!

        http://www.freebase.com/view/user/frankieroberto/cultural_heritage/exhibition is working now.

        I created the Exhibition type in my personal domain, and then moved it to a new 'Cultural Heritage' domain. Then when clicking through to that domain, I got an error, although the Exhibition type could be viewed within the new domain okay.

      3. To delete a type, go into the schema editor for that type then click the little down-arrow next to the type's name. There's an option there to delete.

      4. Thanks, found it now!

  8.  

    Query Problem

    1. I am trying to get get return all of the awards that steven spielberg has been nominated for.  In addition to that i am wanting to return the other nominees that were nominated for the same award.  Here is my query so far:

      {
        "award_nominations" : [
          {
            "award" : [
              {
                "id" : null,
                "name" : null,
                "nominees" : [
                  {
                    "award_nominee" : null,
                    "nominated_for" : null,
                    "optional" : true,
                    "year" : null
                  }
                ],
                "optional" : true
              }
            ],
            "id" : null,
            "optional" : true,
            "year" : null
          }
        ],
        "id" : "/en/steven_spielberg",
        "name" : null,
        "type" : "/award/award_nominee"
      }

      The main problem is that i cannot compare the years.   Is there anyway that i can do this??

      Thanks 

      1. Not in a single query. You'd have to run this query (or one just aimed at finding Spielberg's nominations alone), and then run a separate query for each award category and year that Spielberg was nominated. Since he conveniently has only been nominated under one category, you can combine all the years into a single query:

        [
        {
        "award_nominations" : [
        {
        "award" : "Academy Award for Best Director",
        "nominated_for" : null,
        "year|=" : [
        "1977",
        "1981",
        "1982"
        ]
        }
        ],
        "name" : null,
        "type" : "/award/award_nominee"
        }
        ]

      2. thanks for the help

  9.  

    Sorry about the multiple posts

    1. It didn't look like the first post went through as my browser crashed during the posting for some reaosn.

      Biosopher 

      1. Hi,

        I'm curious about the browser crash you mentioned. Has it happened again? What's your OS and browser version (for example, Mac 10.3 Firefox 2.0)?

        When you restart your browser, one way to verify if your discussion post went through is to refresh your cache, or else you may not get the latest data (i.e. you may not see your most recent post). The way to do it is this:

        If you don't see a blue "Dev Tools" bar at the bottom of your browser in Freebase, hit F8. Then, from the menu that a