Click or drag to resize

UriLoaderLoad Method (IRdfHandler, Uri, 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:
Syntax
public static void Load(
	IRdfHandler handler,
	Uri u,
	RdfHandlerCallback callback,
	Object state
)

Parameters

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

Attempts to autodetect the RDF format based on the Content-Type header of 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