[Developers] Cannot update a document content link using mqlwrite

Will Moffat willmoffat at metaweb.com
Wed May 28 13:34:27 UTC 2008


Hi,

I'm trying to programatically update the contents of a document on  
Freebase.

The name of the doc is /user/willmoffat/acre_status/index
http://www.freebase.com/tools/explore/user/willmoffat/acre_status/index

Here's the current content id:
READ:
{
   "/common/document/content" : {
     "id" : null
   },
   "id" : "/user/willmoffat/acre_status/index"
}

Which gives ...3510:
  "/common/document/content" : {
     "id" : "/guid/9202a8c04000641f8000000008433510"


Now I want to write a new value ...e586
WRITE:
{
   "/common/document/content" : {
     "connect" : "update",
     "id" : "/guid/9202a8c04000641f800000000843e586"
   },
   "id" : "/user/willmoffat/acre_status/index"
}

which gives:
     "connect" : "present",
     "id" : "/guid/9202a8c04000641f800000000843e586"

* Why does it say 'present' rather than 'updated' ?

If I now read it back:
READ:
{
   "/common/document/content" : {
     "id" : null
   },
   "id" : "/user/willmoffat/acre_status/index"
}

Which gives ...3510 and not ...e586
  "/common/document/content" : {
     "id" : "/guid/9202a8c04000641f8000000008433510"

* Why is it still pointing to the old content?

Hope somebody can explain what's going on here.
--Will



More information about the Developers mailing list