[Developers] Unlinking Objects of Type...
Michael Jones
szaijan at gmail.com
Tue Sep 4 21:16:45 UTC 2007
Hi Kurt,
> I finally just bit the bullet and converted the python unlinker.py
> > over to Perl. It works fine. If anyone wants the code, let me know,
> > but it is not at all polished.
>
> Please post/email this code. From the perspective of a MQL user,
> there are multiple flavors of topic deletion:
To where shall I post the code? As mentioned, it is neither polished nor
suitable for use as a module.
The unlink.py python code in the MQL docs does not consider incoming
> links, and may not fully delete a topic.
My preference would have been to truly delete a type I created and all
instances of that type I had created. In this case, I failed to consider
"incoming" links, just as the unlinker.py code did.
The Freebase UI client has a feature to allow users to flag a topic
> with "mark for delete". Metaweb has an administrative process to vet
> such marks and execute deletions. You could do this through the Web
> client if the number of deletions is small enough.
I had ~250 instances to address, so manual deletion was out of the
question. Flagging for deletion was also not useful as it was requested
that I remove these instances in a set amount of time, and no instances that
I have flagged manually have been addressed at all, to my knowledge. The
flagging approach works for public types that require moderation to keep
under control, but not so well for a cases where changes need to be made
quickly.
In general, applications built on Freebase data are likely to have some
instances which are not meant to be viewed by users but which are used by
the application as enumerated types, complex links, etc. These objects
could be built in a separate database, but it's far simpler and more elegant
to only have a single database interface for the application. Given that,
the ability to change/delete such objects without having to wait for a
moderator to review the request is desirable.
MJ
> On 8/22/07, Kurt Bollacker <kurt at metaweb.com> wrote:
> > > On Wed, Aug 22, 2007 at 08:31:09PM -0700, Michael Jones wrote:
> > > > Hi Folks,
> > > >
> > > > I'm looking for a way to unlink some instances of a specific type
> (I'd
> > > > prefer to delete them entirely, but that another discussion.) There
> > > > are a lot of them, so manually doing it is out. I could write a
> > > > script, but it seems this ought to be doable with a single query.
> > > >
> > > > My attempts, which all fail due to uniqueness errors, look like
> this:
> > > >
> > > > {"query":[{
> > > > type:[{
> > > > {"id":"/user/szaijan/fantasy_football/statline",
> > > > "type":"/type/type"
> > > > },
> > > > {"connect":"delete",
> > > > "id":"/user/szaijan/fantasy_football/projection",
> > > > "type":"/type/type"
> > > > }]
> > > > }]
> > > > }
> > > >
> > > > Does anyone know how to go about this correctly without writing a
> > > > script? The brute force method would be to query all the ids of
> > > > instances with the types I want to remove, then remove those types
> in
> > > > a seperate query. Hopefully, there's a better way.
> > >
> > > I should point out that if you delete the /type/object/type link of a
> > > topic, it does not automatically remove the properties associated with
> > > that type. They become harder to find (you must use the full path ID
> > > of the property, and they don't show up in the Web UI), but are still
> > > exist and are usable.
> > >
> > > Kurt
> :-)
> > >
> > >
> > >
> > > > ____________________________________________________________________
> > > >
> > > > Michael Jones, Gamer at Large
> > > > szaijan at ternea.com
> > > > ____________________________________________________________________
> > > > _______________________________________________
> > > > Developers mailing list
> > > > Developers at freebase.com
> > > > http://lists.freebase.com/mailman/listinfo/developers
> > >
> >
> >
> > --
> > ____________________________________________________________________
> >
> > Michael Jones, Gamer at Large
> > szaijan at ternea.com
> > ____________________________________________________________________
> > _______________________________________________
> > Developers mailing list
> > Developers at freebase.com
> > http://lists.freebase.com/mailman/listinfo/developers
>
--
____________________________________________________________________
Michael Jones, Gamer at Large
szaijan at ternea.com
____________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20070904/22228c1d/attachment.htm
More information about the Developers
mailing list