[Developers] Cannot update a document content link using mqlwrite

Will Moffat willmoffat at metaweb.com
Thu May 29 08:55:02 UTC 2008


 > mystery solved, you have two identical keys in
 > http://www.freebase.com/tools/explore/user/willmoffat/acre_status

Ah. Thanks, this was driving me nuts!


 > I think this is a bug and is happening because its not a namespace.

Domains seem to be namespaces (without needing to be co-typed). This  
is how I checked:

I created a new domain (using the create_private_domain service). It  
is not co-typed Namespace:
http://www.freebase.com/tools/explore/user/willmoffat/test-namespace
(added admin rights for jg, jdouglas)

I created two documents. 'index' and 'untitled_1'.
I tried to change the key of untitled_1 to be 'index'
WRITE:
{
   "guid" : "#9202a8c04000641f8000000008445d6b",
   "key" : {
     "connect" : "insert",
     "namespace" : "/user/willmoffat/test-namespace",
     "value" : "index"
   }
}

Giving:
      "message" : "This value is already in use. Please delete it  
first",

So it looks like domains do enforce unqiue keys just like namespaces.
The API doc needs clarification on this point: http://www.freebase.com/view/guid/9202a8c04000641f800000000544e143#domains


 > I think this is a bug and is happening because its not a namespace.

So yes it's a bug that I managed to create two identical id's in a  
domain. But domains seem to be namespaces. So it seems there's a bug  
in a Freebase API.

Unfortunately I've not been able to re-create the problem in a new  
domain. I'm going to leave the duplicate ids around if anybody wants  
to look into it and start working in a new domain.

regards,
--Will



More information about the Developers mailing list