public void Init() { string baseUrl = "http://172.16.2.21:10035"; string username = "******"; string password = "******"; server = new AGServerInfo(baseUrl, username, password); }
public void Init() { userName = "******"; password = "******"; server = new AGServerInfo("http://172.16.2.21:10035", userName, password); agClient = new AGClient(server); buildDate = "February 13, 2012 16:42:07 GMT-0800"; version = "4.5"; testCatalogName = "chainyi"; }
public void Init() { string baseUrl = "http://172.16.2.21:10035"; string username = "******"; string password = "******"; testCatalogName = "chainyi"; testRepositoryName = "TestCsharpclient"; tempRepositoryName = "TempRepositoryForCSharpClientTest"; server = new AGServerInfo(baseUrl, username, password); catalog = new AGCatalog(server, testCatalogName); }
public void init() { BaseUrl = "http://172.16.2.21:10035"; Username = "******"; Password = "******"; server = new AGServerInfo(BaseUrl, Username, Password); catalog = new AGCatalog(server, "chainyi"); TestRepositoryName = "TestCsharpclient"; repository = new AGRepository(catalog, TestRepositoryName); Testnamespace = new Namespace("rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#"); TestIndexName = "gospi"; statement = new Statement("<http://example/test?abc=1&def=2>", "<http://www.w3.org/1999/02/22-rdf-syntax-ns#value>", "<http://example/test?abc=1&def=2>", "<http://example/test?client=Csharp>", "85"); }
/// <summary> /// Constructor /// </summary> /// <param name="server">Server Object</param> /// <param name="name">Catalog name, returns the root catalog if name is null</param> /// <returns></returns> public AGCatalog(AGServerInfo server, string name) { if (string.IsNullOrEmpty(name)) { CatalogUrl = server.Url + "/"; } else { CatalogUrl = server.Url + "/catalogs/" + name; } this.Name = name; this.Server = server; }
public void TestGetStatementsWithTID() { AGServerInfo server = new AGServerInfo(BaseUrl, Username, Password); string[][] results = AGRequestService.DoReqAndGet<string[][]>(server, "GET", "/catalogs/chainyi/repositories/CSharpClient/statements", "application/x-quints+json"); for (int i = 0; i < results.Length; i++) { StringBuilder sb = new StringBuilder("Triple :\t"); for (int j = 0; j < results[i].Length; j++) { sb.Append(results[i][j]); if (j != results[i].Length - 1) sb.Append("\t"); } Console.WriteLine(sb.ToString()); Console.WriteLine(results[i].Length); } }
public AGClient(AGServerInfo server) { this.Server = server; }
public void TestSameObject() { AGServerInfo ag1 = new AGServerInfo(BaseUrl, Username, Password); AGServerInfo ag2 = new AGServerInfo(BaseUrl, Username, Password); Assert.AreNotSame(ag1, ag2); }