FileLoaderLoad Method (IRdfHandler, String, IStoreReader) |
Loads the contents of the given File using a RDF Handler providing the RDF dataset format can be determined.
Namespace:
VDS.RDF.Parsing
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public static void Load(
IRdfHandler handler,
string filename,
IStoreReader parser
)
Public Shared Sub Load (
handler As IRdfHandler,
filename As String,
parser As IStoreReader
)
Parameters
- handler
- Type: VDS.RDFIRdfHandler
RDF Handler to use. - 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