[Developers] help - MQL to query by type and get all types

David Dennis davdennis at gmail.com
Wed Mar 18 19:52:42 UTC 2009


Thanks for clearing this up.  I lost interest in working on integrating
Freebase with my site because I spent hours trying to figure out how to do
this.

If I might make a suggestion, a good straightforward intro to give
developers would be example queries for:

1) How to get all topics of a certain name
2) How to get all types for a topic
3) How to get all properties for a type
4) How to get all topics assigned as values for a property

That way developers would know exactly how to explore the full schema.  The
query editor page has a couple of example queries like these at the top, but
they only give half the picture.

David

On Wed, Mar 18, 2009 at 3:38 PM, John Merrells <john at merrells.com> wrote:

>
> On Mar 18, 2009, at 12:33 PM, Christopher R. Maden wrote:
>
> > John Merrells wrote:
> >> But that doesn't work, as 'type' can only appear once. I can't work
> >> out
> >> the syntax to express this query :-( Any help much appreciated :-)
> >
> > JSON imposes the restriction that each key can only appear once.  In
> > MQL, the work-around for that is that arbitrary colon-separated
> > prefixes
> > are allowed; try this instead:
> >
> >
> > [{
> >     "id" : null,
> >     "name" : null,
> >     "type" : "/music/artist"
> >     "all:type" : []
> > }]
>
>
> Ah, thanks. I see it on the 'mql cheatsheet' now. It shows 'inc:', but
> I now understand that any prefix would work.
>
> John
>
> --
> John Merrells
> http://www.johnmerrells.com
> +1.415.244.5808
>
>
>
>
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20090318/2f0f2e27/attachment.htm 


More information about the Developers mailing list