Class TripleStoreExtensions
Provides useful Extension Methods for working with Triple Stores.
Inheritance
System.Object
TripleStoreExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRDF.dll
Syntax
public static class TripleStoreExtensions
Methods
| Improve this Doc View SourceLoadFromEmbeddedResource(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. |
System.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 VDS.RDF.Parsing namespace.
|
Improve this Doc
View Source
LoadFromEmbeddedResource(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. |
System.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 VDS.RDF.Parsing namespace.
|
Improve this Doc
View Source
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. |
System.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 VDS.RDF.Parsing namespace.
|
Improve this Doc
View Source
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. |
System.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 VDS.RDF.Parsing namespace.
|
Improve this Doc
View Source
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. |
System.String | data | Data to load. |
Remarks
This is just a shortcut to using the static ParseDataset() methods from the StringParser class located in the VDS.RDF.Parsing namespace.
|
Improve this Doc
View Source
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. |
System.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 VDS.RDF.Parsing namespace.
|
Improve this Doc
View Source
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 Load() methods from the UriLoader class located in the VDS.RDF.Parsing namespace.
|
Improve this Doc
View Source
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 Load() methods from the UriLoader class located in the VDS.RDF.Parsing namespace.
|
Improve this Doc
View Source
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. |
System.String | file | File to save to. |
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. |
System.String | file | File to save to. |
IStoreWriter | writer | Writer to use. |