diff --git a/src/main/java/com/metaweb/gridworks/browsing/facets/ListFacet.java b/src/main/java/com/metaweb/gridworks/browsing/facets/ListFacet.java index e4b769f18..d3d1759d9 100644 --- a/src/main/java/com/metaweb/gridworks/browsing/facets/ListFacet.java +++ b/src/main/java/com/metaweb/gridworks/browsing/facets/ListFacet.java @@ -64,7 +64,7 @@ public class ListFacet implements Facet { if (_errorMessage != null) { writer.key("error"); writer.value(_errorMessage); } else if (_choices.size() > 2000) { - writer.key("error"); writer.value("Too many choices."); + writer.key("error"); writer.value("Too many choices"); } else { writer.key("choices"); writer.array(); for (NominalFacetChoice choice : _choices) { diff --git a/src/main/java/com/metaweb/gridworks/util/FreebaseUtils.java b/src/main/java/com/metaweb/gridworks/util/FreebaseUtils.java index 70400cb12..3326b461b 100644 --- a/src/main/java/com/metaweb/gridworks/util/FreebaseUtils.java +++ b/src/main/java/com/metaweb/gridworks/util/FreebaseUtils.java @@ -36,7 +36,10 @@ public class FreebaseUtils { static final public String FREEBASE_HOST = "www.freebase.com"; static final public String FREEBASE_SANDBOX_HOST = "www.sandbox-freebase.com"; - static final private String FREEQ_URL = "http://data.labs.freebase.com/freeq/prod/"; + //static final private String FREEQ_URL = "http://data.labs.freebase.com/freeq/prod/"; + static final private String FREEQ_URL = "http://zucchini.dmz.sjc1.metaweb.com:5000/unittest"; + + static final private String GRIDWORKS_ID = "/en/gridworks"; private static String getUserInfoURL(String host) { return "http://" + host + "/api/service/user_info"; @@ -77,7 +80,7 @@ public class FreebaseUtils { List formparams = new ArrayList(); formparams.add(new BasicNameValuePair("user", user_info.getString("username"))); formparams.add(new BasicNameValuePair("action_type", "LOAD_TRIPLE")); - formparams.add(new BasicNameValuePair("operator", "gridworks")); + formparams.add(new BasicNameValuePair("operator", GRIDWORKS_ID)); formparams.add(new BasicNameValuePair("mdo_info", info)); formparams.add(new BasicNameValuePair("graphport", provider.getHost().equals(FREEBASE_HOST) ? "otg" : "sandbox")); formparams.add(new BasicNameValuePair("payload", triples)); diff --git a/src/main/webapp/scripts/facets/list-facet.js b/src/main/webapp/scripts/facets/list-facet.js index db2e9ab98..a3a3c23ab 100644 --- a/src/main/webapp/scripts/facets/list-facet.js +++ b/src/main/webapp/scripts/facets/list-facet.js @@ -119,7 +119,7 @@ ListFacet.prototype._initializeUI = function() { '' + '