/// <summary>Loads data from file with optional automated graph generation.</summary> /// <param name="store">Target store to be loaded with data.</param> /// <param name="file">Source file with data.</param> /// <param name="metaGraphUri">When provided, store will have automatically created graphs for all resources that are mentioned in the meta graph provided.</param> public static void LoadFromFile(this ITripleStore store, string file, Uri metaGraphUri) { ITripleStore targetStore = (metaGraphUri != null ? new TripleStore() : store); targetStore.LoadFromFile(file); if (metaGraphUri != null) { store.ExpandGraphs((TripleStore)targetStore, metaGraphUri); } }