[Developers] help - MQL to query by type and get all types
Chuck Steneck
chuck at samatamason.com
Wed Mar 18 20:05:40 UTC 2009
Hi David,
Yes exactly, I looked into it a few days back, but could not find definitive
topics/types/properties etc.
A master schema would be superb. If there's one available that I overlooked
please send a link.
Would be incredibly useful, but yes, I agree, we need to have the Overview
to see the entire range of possibilities
Thanks,
Chuck.
From: developers-bounces at freebase.com
[mailto:developers-bounces at freebase.com] On Behalf Of David Dennis
Sent: Wednesday, March 18, 2009 2:53 PM
To: For discussions about MQL, Freebase API and apps built on Freebase
Subject: Re: [Developers] help - MQL to query by type and get all types
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/8274cb20/attachment-0001.htm
More information about the Developers
mailing list