AllegroGraphCSharpClient.Repository.addStatement C# (CSharp) Method

addStatement() public method

Adds a statement to the repository
public addStatement ( string url, string subj, string pred, string obj, List contexts, string ContentType ) : bool
url string
subj string
pred string
obj string
contexts List
ContentType string
return bool
        public bool addStatement(string url, string subj, string pred, string obj, List<NameValuePairs> contexts, string ContentType)
        {
            try
            {
                StandardRequest("POST", url, contexts, ContentType);
                return true;
            }
            catch (Exception ex)
            {

                System.Diagnostics.Trace.WriteLine("Error in addStatemnt : " + ex.Message);
                return false;
            }
        }