Click or drag to resize

FileLoaderLoad Method (ITripleStore, String, IStoreReader)

Loads the contents of the given File into a Triple Store providing the RDF dataset format can be determined.

Namespace:  VDS.RDF.Parsing
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static void Load(
	ITripleStore store,
	string filename,
	IStoreReader parser
)

Parameters

store
Type: VDS.RDFITripleStore
Triple Store to load into.
filename
Type: SystemString
File to load from.
parser
Type: VDS.RDFIStoreReader
Parser to use to parse the given file.
Remarks

If the parser parameter is set to null then the FileLoader attempts to select a Store Parser by examining the file extension to select the most likely MIME type for the file. This assume that the file extension corresponds to one of the recognized file extensions for a RDF dataset format the library supports. If this suceeds then a parser is chosen and used to parse the input file.

See Also