[Developers] Getting the User Created Properties of a Type

John Giannandrea jg at metaweb.com
Tue Jul 31 00:24:09 UTC 2007


types have ids as well as names.  so what you want is something like  
this:

{
   "query":[{
     "id":"/people/person",
     "name":null,
     "properties":[{
       "*":{}
     }],
     "type":"/type/type"
   }]
}


On Jul 29, 2007, at 12:12 AM, Shawn Simister wrote:

> I would like to get a list of the user created properties for a  
> Freebase
> type so I created the following query:
>
> {
> "q1": {
> "query": [{
>  "type" : "/type/type",
>  "name": "/people/person",
>  "properties" : [{}]
> }]
> }
> }
>
> But when I run the query I don't get any properties returned in the  
> result.
>
> ({
>  "status": "200 OK",
>  "code": "/api/status/ok",
>  "q1": {
>    "code": "/api/status/ok",
>    "result": [
>      {
>        "type": "/type/type",
>        "name": "/people/person",
>        "properties": []
>      }
>    ]
>  }
> })
>
> I know that this sort of query must be possible because something
> similar would have had to have been used to write the Freebase Type
> Viewer application. So how can I get the same sort of results in my  
> own
> application?
>
> Shawn
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers



More information about the Developers mailing list