Click or drag to resize

UriLoaderLoad Method (IRdfHandler, Uri, IRdfReader, RdfHandlerCallback, Object)

Attempts to load a RDF Graph from a URI asynchronously using an RDF Handler.

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


Type: VDS.RDFIRdfHandler
RDF Handler to use.
Type: SystemUri
URI to load from.
Type: VDS.RDFIRdfReader
Parser to use.
Type: VDS.RDFRdfHandlerCallback
Callback to invoke when the operation completes.
Type: SystemObject
State to pass to the callback.

Uses the supplied parser to attempt parsing regardless of the actual Content Type returned.

In the event that the URI is a File URI the FileLoader will be used instead.

If the URI is a Data URI then the DataUriLoader will be used instead.

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