[Developers] query syntax problem

Will Moffat will at hamstersoup.com
Wed Aug 8 15:17:34 UTC 2007


Hi Mark,

If you look at the schema for type /location/country you will see that
the "contains" property is actually an included property of type
/location/location

http://freebase.com/view/schema?id=%2Flocation%2Fcountry

So you need to give the full reference for "contains":

{
  "query":[{
    "/location/location/contains":[],
    "id":null,
    "name":"United Kingdom",
    "type":"/location/country"
  }]
}

regards,
--Will

On 8/8/07, Mark CE <markce at btclick.com> wrote:
>
> Hi all,
> I'm having a problem with some really basic query syntax.
>
> To me the location/country type definition looks as though it
> includes a "contains" property.
> So I want everything that the country "United Kingdom" contains:
>
> {
> "query": [{
> "id": null,
> "name": "United Kingdom",
> "type": "/location/country",
> "contains": []
>    }]
> }
>
> But the message is returned: " Type /location/country does not have
> property contains "
>
> What am I doing wrong?
> Thanks
>
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.11.8/940 - Release Date: 06/08/2007 16:53
>
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
>


More information about the Developers mailing list