UriLoaderLoad Method (IGraph, Uri, GraphCallback, Object)
public static void Load( IGraph g, Uri u, GraphCallback callback, Object state )
Public Shared Sub Load ( g As IGraph, u As Uri, callback As GraphCallback, state As Object )
Will attempt to autodetect the format of the RDF based on the Content-Type header of the HTTP response.
Note: UriLoader will assign the Graph the source URI as it's Base URI unless the Graph already has a Base URI or is non-empty prior to attempting parsing. Note that any Base URI specified in the RDF contained in the file will override this initial Base URI. In some cases this may lead to invalid RDF being accepted and generating strange relative URIs, if you encounter this either set a Base URI prior to calling this method or create an instance of the relevant parser and invoke it directly.
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.