Click or drag to resize

FileLoaderLoad Method (IGraph, String, IRdfReader)

Loads the contents of the given File into a Graph using the given RDF Parser.

Namespace:  VDS.RDF.Parsing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static void Load(
	IGraph g,
	string filename,
	IRdfReader parser
)

Parameters

g
Type: VDS.RDFIGraph
Graph to load into.
filename
Type: SystemString
File to load from.
parser
Type: VDS.RDFIRdfReader
Parser to use.
Remarks

Note: FileLoader will assign the Graph a file 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 a File URI is assigned it will always be an absolute URI for the file.

See Also