Pass target Freebase type IDs in recon objects to freeq.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1099 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
b854f99ef5
commit
4373e7276f
@ -18,6 +18,8 @@ import com.metaweb.gridworks.model.Column;
|
|||||||
import com.metaweb.gridworks.model.Project;
|
import com.metaweb.gridworks.model.Project;
|
||||||
import com.metaweb.gridworks.model.Recon;
|
import com.metaweb.gridworks.model.Recon;
|
||||||
import com.metaweb.gridworks.model.Recon.Judgment;
|
import com.metaweb.gridworks.model.Recon.Judgment;
|
||||||
|
import com.metaweb.gridworks.model.recon.ReconConfig;
|
||||||
|
import com.metaweb.gridworks.model.recon.StandardReconConfig;
|
||||||
import com.metaweb.gridworks.protograph.AnonymousNode;
|
import com.metaweb.gridworks.protograph.AnonymousNode;
|
||||||
import com.metaweb.gridworks.protograph.CellKeyNode;
|
import com.metaweb.gridworks.protograph.CellKeyNode;
|
||||||
import com.metaweb.gridworks.protograph.CellNode;
|
import com.metaweb.gridworks.protograph.CellNode;
|
||||||
@ -124,6 +126,12 @@ public class TripleLoaderTransposedNodeFactory implements TransposedNodeFactory
|
|||||||
sb2.append(", \"id\" : "); sb2.append(JSONObject.quote(recon.match.id));
|
sb2.append(", \"id\" : "); sb2.append(JSONObject.quote(recon.match.id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ReconConfig reconConfig = column.getReconConfig();
|
||||||
|
if (reconConfig != null && reconConfig instanceof StandardReconConfig) {
|
||||||
|
StandardReconConfig standardReconConfig = (StandardReconConfig) reconConfig;
|
||||||
|
sb2.append(", \"type\" : "); sb2.append(JSONObject.quote(standardReconConfig.typeID));
|
||||||
|
}
|
||||||
|
|
||||||
sb2.append(" } }");
|
sb2.append(" } }");
|
||||||
|
|
||||||
writeLine(sb2.toString());
|
writeLine(sb2.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user