Hi, this isn't the problem as we've already worked through this issue for other properties we edit. Thanks for the hep though. -James<br><br><div class="gmail_quote">On Thu, Nov 13, 2008 at 9:13 PM, Ben Drees <span dir="ltr"><<a href="mailto:ben@metaweb.com">ben@metaweb.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi James,<br>
<br>
If the writes (w) and reads (r) are carried out using different user<br>
agents (custom code (w) and a browser (r), for example), the problem may<br>
be that you are reading a cached (pre-mqlwrite) version of the topic.<br>
Here are a couple of descriptions of the issue:<br>
<br>
<<a href="http://www.freebase.com/view/guid/9202a8c04000641f80000000076224e8" target="_blank">http://www.freebase.com/view/guid/9202a8c04000641f80000000076224e8</a>><br>
<<a href="http://blog.freebase.com/2008/01/22/caching-dynamic-content/" target="_blank">http://blog.freebase.com/2008/01/22/caching-dynamic-content/</a>><br>
<<a href="http://lists.freebase.com/pipermail/developers/2008-January/001258.html" target="_blank">http://lists.freebase.com/pipermail/developers/2008-January/001258.html</a>><br>
<br>
-Ben<br>
<div><div></div><div class="Wj3C7c"><br>
James Taylor wrote:<br>
> Hello,<br>
><br>
> I've been having difficulties successfully uploading and linking text<br>
> blurbs to topics and I'm hoping someone can help out. Specifically,<br>
> I'm trying to edit 'overview' text blurbs for a topic from using mql<br>
> writes from my site. It's my understanding that to do this I need to:<br>
> 1) upload my text blurb to freebase; 2) create a document topic to<br>
> hold the blurb; 3) link the newly created document topic to the<br>
> original topic. All of my mql's appear to be working, but the new<br>
> text does not show up indicating something failed. I've placed an<br>
> example of my mql read and writes for this below. I'm able to create<br>
> and link topics, but the over text does not show up, which is<br>
> unexpected.<br>
><br>
> So, if I am updating the text on the topic:<br>
> <a href="http://www.sandbox.freebase.com/view/guid/9202a8c04000641f80000000098e3c0b" target="_blank">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>
><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>
><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>
><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" :<br>
> "/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>
><br>
> "transaction_id":"cache;cache01.sandbox.sjc1:8101;2008-11-14T04:34:02Z;0014"<br>
> }<br>
><br>
><br>
> Thanks,<br>
> James<br>
</div></div>> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Developers mailing list<br>
> <a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
> <a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
><br>
<br>
_______________________________________________<br>
Developers mailing list<br>
<a href="mailto:Developers@freebase.com">Developers@freebase.com</a><br>
<a href="http://lists.freebase.com/mailman/listinfo/developers" target="_blank">http://lists.freebase.com/mailman/listinfo/developers</a><br>
</blockquote></div><br>