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 |
---|---|---|
ITriple |
store | Triple Store to load into. |
string | resource | Assembly Qualified Name of the Embedded Resource to load from. |
IStore |
parser | Parser to use. |
Remarks
This is just a shortcut to using the static Load() methods from the Embedded
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 |
---|---|---|
ITriple |
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 Embedded
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 |
---|---|---|
ITriple |
store | Triple Store to load into. |
string | file | File to load from. |
IStore |
parser | Parser to use. |
Remarks
This is just a shortcut to using the static Load() methods from the File
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 |
---|---|---|
ITriple |
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 File
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 |
---|---|---|
ITriple |
store | Triple Store to load into. |
string | data | Data to load. |
IStore |
parser | Parser to use. |
Remarks
This is just a shortcut to using the static ParseDataset() methods from the String
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 |
---|---|---|
ITriple |
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 String
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 |
---|---|---|
ITriple |
store | Triple Store to load into. |
System. |
u | URI to load from. |
IStore |
parser | Parser to use. |
Loader | loader | Loader to use. |
Remarks
This is just a shortcut to using the static LoadDataset() methods from the Uri
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 |
---|---|---|
ITriple |
store | Triple Store to load into. |
System. |
u | URI to load from. |
IStore |
parser | Parser to use. |
Remarks
This is just a shortcut to using the static LoadDataset() methods from the Uri
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 |
---|---|---|
ITriple |
store | Triple Store to load into. |
System. |
u | URI to load from. |
Remarks
This is just a shortcut to using the static LoadDataset() methods from the Uri
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 |
---|---|---|
ITriple |
store | Triple Store to save. |
string | file | File to save to. |
IStore |
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 |
---|---|---|
ITriple |
store | Triple Store to save. |
string | file | File to save to. |