Hello,<br><br>I've been having difficulties successfully uploading and linking text blurbs to topics and I'm hoping someone can help out. Specifically, I'm trying to edit 'overview' text blurbs for a topic from using mql writes from my site. It's my understanding that to do this I need to: 1) upload my text blurb to freebase; 2) create a document topic to hold the blurb; 3) link the newly created document topic to the original topic. All of my mql's appear to be working, but the new text does not show up indicating something failed. I've placed an example of my mql read and writes for this below. I'm able to create and link topics, but the over text does not show up, which is unexpected. <br>
<br>So, if I am updating the text on the topic:<br><a href="http://www.sandbox.freebase.com/view/guid/9202a8c04000641f80000000098e3c0b">http://www.sandbox.freebase.com/view/guid/9202a8c04000641f80000000098e3c0b</a><br><br>
The response from my upload is:<br>mqlwrite response:<br>{<br> "status":"200 OK",<br> "code":"/api/status/ok",<br> "result":{<br> "/type/content/length":64,<br>
"/type/content/blob_id":"1656ec44144062ec182ea7d6179446c0f194ecd4445d5e381ef518fab8283203",<br> "/type/content/language":"/lang/en",<br> "/type/content/text_encoding":"utf-8",<br>
"/type/content/media_type":"text/plain",<br> "type":"/type/content",<br> "id":"/guid/9202a8c04000641f8000000009a34b55"<br> },<br> "transaction_id":"cache;cache01.sandbox.sjc1:8101;2008-11-14T04:34:01Z;0002"<br>
}<br><br>My write and response from my document create is:<br>mqlwrite query:<br>{<br> "q1": {<br> "query": {<br> "create":"unless_exists",<br> "type":"/common/topic",<br>
"name":"/guid/9202a8c04000641f8000000009a34b55",<br> "id":null,<br> "article" : { <br> "create":"unless_exists",<br>
"type":"/common/document",<br> "id":null,<br> "content":"/guid/9202a8c04000641f8000000009a34b55"<br> }<br> }<br>
}<br>}<br>mqlwrite response:<br>{<br> "q1":{<br> "code":"/api/status/ok",<br> "result":{<br> "article":{<br> "content":"/guid/9202a8c04000641f8000000009a34b55",<br>
"create":"created",<br> "type":"/common/document",<br> "id":"/guid/9202a8c04000641f8000000009a34b60"<br> },<br> "create":"created",<br>
"type":"/common/topic",<br> "name":"/guid/9202a8c04000641f8000000009a34b55",<br> "id":"/guid/9202a8c04000641f8000000009a34b5c"<br> }<br> },<br>
"status":"200 OK",<br> "code":"/api/status/ok",<br> "transaction_id":"cache;cache01.sandbox.sjc1:8101;2008-11-14T04:34:02Z;0004"<br>}<br><br>And my link to the original document is:<br>
mqlwrite query:<br>{<br> "q1": {<br> "query": {<br> "id" : "/guid/9202a8c04000641f80000000098e3c0b",<br> "/common/topic/article" : {<br>
"id" : "/guid/9202a8c04000641f8000000009a34b5c",<br> "connect" : "insert"<br> },<br> "type" : "/common/topic"<br>
}<br> }<br>}<br>mqlwrite response:<br>{<br> "q1":{<br> "code":"/api/status/ok",<br> "result":{<br> "type":"/common/topic",<br>
"id":"/guid/9202a8c04000641f80000000098e3c0b",<br> "/common/topic/article":{<br> "id":"/guid/9202a8c04000641f8000000009a34b5c",<br> "connect":"inserted"<br>
}<br> }<br> },<br> "status":"200 OK",<br> "code":"/api/status/ok",<br> "transaction_id":"cache;cache01.sandbox.sjc1:8101;2008-11-14T04:34:02Z;0014"<br>
}<br><br><br>Thanks,<br>James<br>