public ActionResult ExecuteQuery(string id, string query) { var queryModel = new QueryModel {Query = query, StoreId=id}; try { queryModel.Results = BrightstarCluster.Instance.ExecuteQuery(id, query); } catch (Exception ex) { queryModel.Results = "Error executing query: " + ex; } return View(queryModel); }
public ActionResult Query(string id) { var queryModel = new QueryModel {Query = "SELECT DISTINCT ?t WHERE { ?x a ?t }", StoreId=id}; return View(queryModel); }