/// <summary> /// Saves the graphs. /// </summary> /// <param name="ontologyGraph">The ontology graph.</param> /// <param name="resourceGraph">The resource graph.</param> private static void SaveGraphs(Graph ontologyGraph, Graph resourceGraph) { if (RDF.DataAccess.TripleStoreManager.ThirdPartyTripleStoreConfigured) { TripleStoreManager.Storage.DeleteGraph(new Uri(Configuration.Configuration.OntologyNamespace)); TripleStoreManager.Storage.SaveGraph(ontologyGraph); TripleStoreManager.Storage.DeleteGraph(new Uri(Configuration.Configuration.ResourceNamespace)); TripleStoreManager.Storage.SaveGraph(resourceGraph); } else { var instantRdfDataPath = AppDomain.CurrentDomain.BaseDirectory + "\\App_Data\\Dimi.InstantRDF"; ontologyGraph.SaveToFile(instantRdfDataPath + "\\ontology.rdf"); resourceGraph.SaveToFile(instantRdfDataPath + "\\resource.rdf"); ResetMemory(); } }