예제 #1
0
 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);
 }
예제 #2
0
 public ActionResult Query(string id)
 {
     var queryModel = new QueryModel {Query = "SELECT DISTINCT ?t WHERE { ?x a ?t }", StoreId=id};
     return View(queryModel);
 }