Click or drag to resize

UriLoaderLoad Method (IRdfHandler, Uri)

Attempts to load a RDF Graph 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
)

Parameters

handler
Type: VDS.RDFIRdfHandler
RDF Handler to use.
u
Type: SystemUri
URI to attempt to get RDF from.
Remarks

Attempts to select the relevant Parser based on the Content Type header returned in the HTTP Response.

If you know ahead of time the Content Type you can just open a HTTP Stream yourself and pass it to an instance of the correct Parser.

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.

See Also