Profiles.Edit.Utilities.DataIO.AddLiteral C# (CSharp) Method

AddLiteral() public method

public AddLiteral ( System.Int64 subjectid, System.Int64 predicateid, System.Int64 objectid, XmlDocument PropertyListXML ) : bool
subjectid System.Int64
predicateid System.Int64
objectid System.Int64
PropertyListXML System.Xml.XmlDocument
return bool
        public bool AddLiteral(Int64 subjectid, Int64 predicateid, Int64 objectid, XmlDocument PropertyListXML)
        {
            ActivityLog(PropertyListXML, subjectid);
            bool error = false;
            try
            {

                StoreTripleRequest str = new StoreTripleRequest();
                str.Subject = new StoreTripleParam();
                str.Subject.Value = subjectid;
                str.Subject.ParamOrdinal = 0;

                str.Predicate = new StoreTripleParam();
                str.Predicate.Value = predicateid;
                str.Predicate.ParamOrdinal = 1;

                str.Object = new StoreTripleParam();
                str.Object.Value = objectid;
                str.Object.ParamOrdinal = 2;

                error = this.GetStoreTriple(str);

            }
            catch (Exception e)
            {
                Framework.Utilities.DebugLogging.Log(e.Message + e.StackTrace);
                throw new Exception(e.Message);
            }

            return error;
        }