![David Huynh](/assets/img/avatar_default.png)
git-svn-id: http://google-refine.googlecode.com/svn/trunk@226 7d457c2a-affb-35e4-300a-418c747d4874
20 lines
689 B
Java
20 lines
689 B
Java
package com.metaweb.gridworks.model.recon;
|
|
|
|
import org.json.JSONObject;
|
|
|
|
abstract public class StrictReconConfig extends ReconConfig {
|
|
final static protected String s_mqlreadService = "http://api.freebase.com/api/service/mqlread";
|
|
|
|
static public ReconConfig reconstruct(JSONObject obj) throws Exception {
|
|
String match = obj.getString("match");
|
|
if ("key".equals(match)) {
|
|
return KeyBasedReconConfig.reconstruct(obj);
|
|
} else if ("id".equals(match)) {
|
|
return IdBasedReconConfig.reconstruct(obj);
|
|
} else if ("guid".equals(match)) {
|
|
return GuidBasedReconConfig.reconstruct(obj);
|
|
}
|
|
return null;
|
|
}
|
|
}
|