[Developers] marked for delete?

Christopher R. Maden crism at metaweb.com
Fri Nov 30 20:15:16 UTC 2007


Arthur van Hoff wrote:
> I deleted an object in the sandbox 
> (/guid/9202a8c04000641f80000000061626a5) and on the website it is now 
> “marked for delete”.  However, my queries are still returning results 
> that are marked for delete. What is the correct way to filter out those 
> results?

Alec answered the short question of how to manually make something 
effectively invisible.

More broadly, this is when the Explore view is useful.  At <URL: 
http://sandbox.freebase.com/view/explore/guid/9202a8c04000641f80000000061626a5 
 >, you can see that this topic has an incoming property, 
/freebase/opinion_collection/mark_for_delete, created by you.  You can 
query for these:

{
   "query" : [
     {
       "*" : null,
       "/type/reflect/any_reverse" : [
         {
           "link" : {
             "creator" : null,
             "master_property" : 
"/freebase/opinion_collection/mark_for_delete"
           },
           "optional" : true
         }
       ],
       "name" : "ABC World News"
     }
   ]
}

This will tell you if a topic is marked for deletion, and if so, by whom.

~Chris
-- 
Christopher R. Maden
Data Architect
Metaweb Technologies, Inc.
<URL: http://www.metaweb.com/ >


More information about the Developers mailing list