AllegroGraphCSharpClient.Catalog.federateTripleStores C# (CSharp) Method

federateTripleStores() public method

Federate the triple store, untested at this time
public federateTripleStores ( string name, List storeNames, string url ) : bool
name string
storeNames List
url string
return bool
        public bool federateTripleStores(string name, List<string> storeNames, string url)
        {
            try
            {
                if (url != string.Empty)
                {
                    this._url = url;
                }
                Request request = new Request();
                List<NameValuePairs> nvp = new List<NameValuePairs>();
                NameValuePairs np = new NameValuePairs();
                np.Name = "federate";
                np.Value = (object)storeNames;
                nvp.Add(np);
                request.StandardRequest("PUT", this._url + @"/repositories/" + legalizeName(name,this._url), nvp, string.Empty);
                return true;
            }
            catch (Exception ex)
            {
                System.Diagnostics.Trace.WriteLine("Error in federateTripleStores: " + ex.Message);
                return false;
            }
        }