Issue 551 - add "connect":"insert" clause for literal Freebase topics in protograph

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2475 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2012-03-16 16:23:29 +00:00
parent 00d8827d16
commit 2acd4624cf

View File

@ -248,6 +248,10 @@ public class MqlwriteLikeTransposedNodeFactory implements TransposedNodeFactory
obj = new JSONObject();
try {
obj.put(ID, node.topic.id);
// TODO: This won't work at the root of the query, so that needs
// to be special cased, but for now one must use a different shaped graph
// (ie move the Freebase topic to someplace other than the root
obj.put(CONNECT, "insert");
} catch (JSONException e) {
e.printStackTrace();
}