[Developers] update behavior when using write API
Christian Hirsch
hirsch.christian at gmail.com
Sun Mar 2 22:21:06 UTC 2008
Hi All,
I have encountered a strange update/refresh behavior while using
write queries (to the sandbox) from a Java application. Not sure if that is
a bug or some problem with my app...
Here is what my application is doing: I am sending a write query which adds
a new property to a topic. e.g. adding a new "produced_by" property to a
movie like this:
{
"query" : {
"/film/film/produced_by" : {
"connect" : "insert",
"id" : "personID",
"type" : {
"connect" : "insert",
"id" : "/film/producer"
}
},
"id" : "movieID"
}
}
when I am using this query in the MQL query editor, it works. When I am
sending it with my java application it also seems to work: I get the 200
status response with the confirmation that the property has been inserted.
Now the problem is that the changes don't show up in the freebase UI! Also
when I query the properties of that movie, the updates don't show:
{
"query" : [
{
"id" : "movieID",
"produced_by" : [],
"type" : "/film/film"
}
]
}
the returned list of producers doesn't show the new one (personID)
The strange thing is this: When I send a further (arbitrary) write query
through the MQL query editor (or edit something directly in the UI), then
the changes of the first write request suddenly show up in the freebase UI.
What is going on there? Does the MQL query editor send some kind of refresh
command that is not send from other applications?
Thanks,
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freebase.com/pipermail/developers/attachments/20080303/fe4345a6/attachment-0001.htm
More information about the Developers
mailing list