Class TripleStoreExtensions
Provides useful Extension Methods for working with Triple Stores.
Inheritance
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public static class TripleStoreExtensions
Methods
| Improve this Doc View SourceLoadFromEmbeddedResource(ITripleStore, string, IStoreReader)
Loads an RDF dataset from an Embedded Resource into a Triple Store.
Declaration
public static void LoadFromEmbeddedResource(this ITripleStore store, string resource, IStoreReader parser)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
string | resource | Assembly Qualified Name of the Embedded Resource to load from. |
IStoreReader | parser | Parser to use. |
Remarks
This is just a shortcut to using the static Load() methods from the EmbeddedResourceLoader class located in the Parsing namespace.
LoadFromEmbeddedResource(ITripleStore, string)
Loads an RDF dataset from an Embedded Resource into a Triple Store.
Declaration
public static void LoadFromEmbeddedResource(this ITripleStore store, string resource)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
string | resource | Assembly Qualified Name of the Embedded Resource to load from. |
Remarks
This is just a shortcut to using the static Load() methods from the EmbeddedResourceLoader class located in the Parsing namespace.
LoadFromFile(ITripleStore, string, IStoreReader)
Loads an RDF dataset from a file into a Triple Store.
Declaration
public static void LoadFromFile(this ITripleStore store, string file, IStoreReader parser)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
string | file | File to load from. |
IStoreReader | parser | Parser to use. |
Remarks
This is just a shortcut to using the static Load() methods from the FileLoader class located in the Parsing namespace.
LoadFromFile(ITripleStore, string)
Loads an RDF dataset from a file into a Triple Store.
Declaration
public static void LoadFromFile(this ITripleStore store, string file)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
string | file | File to load from. |
Remarks
This is just a shortcut to using the static Load() methods from the FileLoader class located in the Parsing namespace.
LoadFromString(ITripleStore, string, IStoreReader)
Loads an RDF dataset from a String into a Triple Store.
Declaration
public static void LoadFromString(this ITripleStore store, string data, IStoreReader parser)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
string | data | Data to load. |
IStoreReader | parser | Parser to use. |
Remarks
This is just a shortcut to using the static ParseDataset() methods from the StringParser class located in the Parsing namespace.
LoadFromString(ITripleStore, string)
Loads an RDF dataset from a String into a Triple Store.
Declaration
public static void LoadFromString(this ITripleStore store, string data)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
string | data | Data to load. |
Remarks
This is just a shortcut to using the static ParseDataset() methods from the StringParser class located in the Parsing namespace.
LoadFromUri(ITripleStore, Uri, IStoreReader, Loader)
Loads an RDF dataset from a URI into a Triple Store.
Declaration
public static void LoadFromUri(this ITripleStore store, Uri u, IStoreReader parser, Loader loader)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
System.Uri | u | URI to load from. |
IStoreReader | parser | Parser to use. |
Loader | loader | Loader to use. |
Remarks
This is just a shortcut to using the static LoadDataset() methods from the UriLoader class located in the Parsing namespace.
LoadFromUri(ITripleStore, Uri, IStoreReader)
Loads an RDF dataset from a URI into a Triple Store.
Declaration
public static void LoadFromUri(this ITripleStore store, Uri u, IStoreReader parser)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
System.Uri | u | URI to load from. |
IStoreReader | parser | Parser to use. |
Remarks
This is just a shortcut to using the static LoadDataset() methods from the UriLoader class located in the Parsing namespace.
LoadFromUri(ITripleStore, Uri)
Loads an RDF dataset from a URI into a Triple Store.
Declaration
public static void LoadFromUri(this ITripleStore store, Uri u)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to load into. |
System.Uri | u | URI to load from. |
Remarks
This is just a shortcut to using the static LoadDataset() methods from the UriLoader class located in the Parsing namespace.
SaveToFile(ITripleStore, string, IStoreWriter)
Saves a Triple Store to a file.
Declaration
public static void SaveToFile(this ITripleStore store, string file, IStoreWriter writer)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to save. |
string | file | File to save to. |
IStoreWriter | writer | Writer to use. |
SaveToFile(ITripleStore, string)
Saves a Triple Store to a file.
Declaration
public static void SaveToFile(this ITripleStore store, string file)
Parameters
Type | Name | Description |
---|---|---|
ITripleStore | store | Triple Store to save. |
string | file | File to save to. |