public static void SaveToFile(this ITripleStore store, string fileName) { using (var output = new StreamWriter(fileName)) { IStoreWriter writer = MimeTypesHelper.GetStoreWriterByFileExtension(MimeTypesHelper.GetTrueFileExtension(fileName)); writer.Save(store, output); } }