Click or drag to resize

UriLoader.Load Method (IRdfHandler, Uri, IStoreReader, RdfHandlerCallback, Object)

Attempts to load a RDF dataset asynchronously from the given URI using a RDF Handler.

Namespace:  VDS.RDF.Parsing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static void Load(
	IRdfHandler handler,
	Uri u,
	IStoreReader parser,
	RdfHandlerCallback callback,
	Object state
)

Parameters

handler
Type: VDS.RDF.IRdfHandler
RDF Handler to use.
u
Type: System.Uri
URI to attempt to get a RDF dataset from.
parser
Type: VDS.RDF.IStoreReader
Parser to use to parse the RDF dataset.
callback
Type: VDS.RDF.RdfHandlerCallback
Callback to invoke when the operation completes.
state
Type: System.Object
State to pass to the callback.
Remarks

If the parser parameter is set to null then this method attempts to select the relevant Store Parser based on the Content Type header returned in the HTTP Response.

If you know ahead of time the Content Type you can explicitly pass in the parser to use.

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