[Developers] how to get geolocation for /business/company/headquarters?
Rob Warren
solastyear at gmail.com
Sun Jan 11 00:27:10 UTC 2009
Thanks for your response Chris.
We got what we wanted with this query:
[
{
"/business/company/headquarters" : [
{
"/location/location/geolocation" : [
{
"*" : null,
"optional" : true
}
],
"citytown" : null,
"postal_code" : null,
"state_province_region" : null,
"street_address" : []
}
],
"limit" : 1000,
"name" : null,
"type" : "/base/bioventurist/science_or_technology_company"
}
]
On Fri, Jan 9, 2009 at 8:04 PM, Christopher R. Maden <crism at metaweb.com>wrote:
> Rob Warren wrote:
> > This query is not returning any of the /location/location properties,
> > even though the schema shows that /location/location is an inherited
> type.
>
> The special "*":null wildcard only picks up properties of /type/object
> and of the explicit or expected type of the object. Since you specified
> no type, it only returns the company headquarters properties.
>
> You could do:
>
> "headquarters":[
> {
> "*":null,
> "type":"/location/location"
> }
> ]
>
> but you would lose the headquarters properties. If you want properties
> relating to more than one type in the same query, you must ask for them
> explicitly, with fully-qualified property IDs.
>
> ~Chris
> --
> Christopher R. Maden
> Data Architect
> Freebase.com: <URL: http://www.freebase.com/ >
> Metaweb Technologies, Inc. <URL: http://www.metaweb.com/ >
> _______________________________________________
> 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/20090110/ca6cf8bc/attachment.htm
More information about the Developers
mailing list