public void StorageStardogCreateNewStore() { Guid guid; do { guid = Guid.NewGuid(); } while (guid.Equals(Guid.Empty) || !Char.IsLetter(guid.ToString()[0])); StardogServer stardog = StardogTests.GetServer(); IStoreTemplate template = stardog.GetDefaultTemplate(guid.ToString()); Console.WriteLine("Template ID " + template.ID); try { Options.HttpDebugging = true; //Options.HttpFullDebugging = true; stardog.CreateStore(template); } finally { //Options.HttpFullDebugging = false; Options.HttpDebugging = false; } stardog.Dispose(); }
public void StorageStardogCreateNewStore() { Guid guid; do { guid = Guid.NewGuid(); } while (guid.Equals(Guid.Empty) || !Char.IsLetter(guid.ToString()[0])); StardogServer stardog = StardogTests.GetServer(); IStoreTemplate template = stardog.GetDefaultTemplate(guid.ToString()); Console.WriteLine("Template ID " + template.ID); stardog.CreateStore(template); stardog.Dispose(); }