[Developers] Query editor 2.0

David Huynh david at metaweb.com
Wed Apr 22 21:13:21 UTC 2009


I believe that the client (freebase.com) doesn't display things that 
ain't typed as expected, perhaps to guard against mistakes or 
complications in the display. So, I'm guessing that you would have seen 
the result of your mqlwrite just fine in the raw explore page before you 
typed /en/nuclear_holocaust, but only in the topic page after.

As for how to ensure the ID you're connecting to has the right type, 
there's probably some common practice MQL patterns for that, which the 
MQL folks would know better.

David

Gordon Mackenzie wrote:
> Just did one on the new query editor before lunch on sandbox, didn't  
> show on either topic page until I also added book subject as a type on  
> the topic for Nuclear holocaust manually:
>
> {
>    "id": "/en/dude",
>    "/book/book_subject": {
>      "connect": "update",
>      "id":      "/en/nuclear_holocaust"
>    }
> }
>
> How would I ensure that the ID I am connecting to has the appropriate  
> type?
>
> ~ Gordon
>
> <<< gordon at metaweb.com >>>
>
>
>
> On Apr 22, 2009, at 1:52 PM, David Huynh wrote:
>
>   
>> Philip Kendall wrote:
>>     
>>> On Wed, Apr 22, 2009 at 11:21:36AM -0700, David Huynh wrote:
>>>
>>>       
>>>> We are releasing version 2 of our MQL query editor, with a  
>>>> substantial
>>>> number of new features:
>>>>
>>>>         
>>> [ ... ]
>>>
>>>
>>>       
>>>> Please try it out and give us feedback!
>>>>
>>>>         
>>> Dumb question: is it still possible to do MQL writes with the new  
>>> query
>>> editor? That was definitely a feature I found useful.
>>>
>>>       
>> Yes. If your query contains a "connect", it automatically calls  
>> mqlwrite
>> instead of mqlread. The Run button (or Ctrl-Enter) does both
>> functionalities.
>>
>> And you can hit Tab after
>>
>>    connect:
>>
>> for all the possible choices.
>>
>>     
>>> MQL question: is the "page" envelope parameter documented anywhere? I
>>> can sort of guess what it does, but...
>>>
>>>       
>> Maybe Kirrily knows this one...
>>
>> David
>>
>> _______________________________________________
>> Developers mailing list
>> Developers at freebase.com
>> http://lists.freebase.com/mailman/listinfo/developers
>>     
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>   



More information about the Developers mailing list