UriLoader.Load Method (ITripleStore, Uri, TripleStoreCallback, Object) |
Attempts to load a RDF dataset asynchronously from the given URI into the given Triple Store.
Namespace:
VDS.RDF.Parsing
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntaxpublic static void Load(
ITripleStore store,
Uri u,
TripleStoreCallback callback,
Object state
)
Public Shared Sub Load (
store As ITripleStore,
u As Uri,
callback As TripleStoreCallback,
state As Object
)
Parameters
- store
- Type: VDS.RDF.ITripleStore
Triple Store to load into. - u
- Type: System.Uri
URI to attempt to get a RDF dataset from. - callback
- Type: VDS.RDF.TripleStoreCallback
Callback to invoke when the operation completes. - state
- Type: System.Object
State to pass to the callback.
Remarks
Attempts to select the relevant Store Parser based on the Content Type header returned in the HTTP Response.
If the loading completes normally the callback will be invoked normally, if an error occurs it will be invoked and passed an instance of AsyncError as the state which contains details of the error and the original state.
See Also