Ejemplo n.º 1
0
 private void ClearRuleSet(Uri ruleSet, VirtuosoStore store)
 {
     try
     {
         string query = string.Format("delete * from DB.DBA.SYS_RDF_SCHEMA where RS_NAME='{0}';", ruleSet.OriginalString);
         store.ExecuteQuery(query);
     }catch (Exception)
     {
     }
 }
Ejemplo n.º 2
0
 private void RemoveGraphFromRuleSet(Uri ruleSet, Uri graph, VirtuosoStore store)
 {
     try
     {
         string query = string.Format("rdfs_rule_set ('{0}', '{1}', 1)", ruleSet, graph);
         store.ExecuteQuery(query);
     }
     catch (Exception)
     {
     }
 }
 /// <summary>
 /// Returns the bool value from ASK query forms.
 /// </summary>
 /// <returns>True on success, False otherwise.</returns>
 public bool GetAnwser()
 {
     using (DataTable queryResults = _store.ExecuteQuery(_store.CreateQuery(_query), _transaction))
     {
         if (queryResults.Rows.Count > 0)
         {
             return((int)queryResults.Rows[0][0] != 0);
         }
         else
         {
             return(false);
         }
     }
 }
Ejemplo n.º 4
0
        private void AddGraphToRuleSet(Uri ruleSet, Uri graph, VirtuosoStore store)
        {
            string query = string.Format("rdfs_rule_set ('{0}', '{1}')", ruleSet, graph);

            store.ExecuteQuery(query);
        }