[Developers] Querying for most recent additions - sort using timestamp?

John Giannandrea jg at metaweb.com
Tue Oct 16 00:42:40 UTC 2007


there are a number of ways to do it, this is one:

{
   "query":[{
     "name":null,
     "sort":"-type.link.timestamp",
     "type":{
       "id":"/user/mikelove/default_domain/influence_node",
       "link":{
         "timestamp":null
       }
     }
   }]
}

-jg


On Oct 12, 2007, at 1:56 PM, Mike Love wrote:

> I want to get the most recent topics added to a type - basically to  
> recreate part of the type history page with mjt.
>
> Here's my first guess at building a query, but it doesn't give me  
> the most recent additions:
>
> {
>   "query":[{
>     "name":null,
>     "sort":"-timestamp",
>     "timestamp":null,
>     "type":"/user/mikelove/default_domain/influence_node"
>   }]
> }
>
> I looked through the API on reading, sorting etc. but couldn't find  
> what i'm looking for.  Nick's User Write History is doing this but  
> looks more complicated than what I need to do: http://dev.mqlx.com/ 
> ~nick/reports/userdetail.html
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers



More information about the Developers mailing list