Class FileLoader
Inheritance
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRDF.dll
Syntax
public static class FileLoader
Methods
| Improve this Doc View SourceLoad(IGraph, String)
Declaration
public static void Load(IGraph g, string filename)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to load into. |
System. |
filename | File to load from. |
Remarks
The File
Should this fail then the contents of the file will be read into a String, the String
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.
Load(IGraph, String, IRdfReader)
Declaration
public static void Load(IGraph g, string filename, IRdfReader parser)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph to load into. |
System. |
filename | File to load from. |
IRdf |
parser | 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.
Load(IRdfHandler, String)
Declaration
public static void Load(IRdfHandler handler, string filename)
Parameters
Type | Name | Description |
---|---|---|
IRdf |
handler | RDF Handler to use. |
System. |
filename | File to load from. |
Remarks
The File
Should this fail then the contents of the file will be read into a String, the String
Load(IRdfHandler, String, IRdfReader)
Declaration
public static void Load(IRdfHandler handler, string filename, IRdfReader parser)
Parameters
Type | Name | Description |
---|---|---|
IRdf |
handler | RDF Handler to use. |
System. |
filename | File to load from. |
IRdf |
parser | 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.
Load(IRdfHandler, String, IStoreReader)
Declaration
public static void Load(IRdfHandler handler, string filename, IStoreReader parser)
Parameters
Type | Name | Description |
---|---|---|
IRdf |
handler | RDF Handler to use. |
System. |
filename | File to load from. |
IStore |
parser | Parser to use to parse the given file. |
Remarks
If the parser
parameter is set to null then the File
Load(ITripleStore, String)
Declaration
public static void Load(ITripleStore store, string filename)
Parameters
Type | Name | Description |
---|---|---|
ITriple |
store | Triple Store to load into. |
System. |
filename | File to load from. |
Remarks
The File
Load(ITripleStore, String, IStoreReader)
Declaration
public static void Load(ITripleStore store, string filename, IStoreReader parser)
Parameters
Type | Name | Description |
---|---|---|
ITriple |
store | Triple Store to load into. |
System. |
filename | File to load from. |
IStore |
parser | Parser to use to parse the given file. |
Remarks
If the parser
parameter is set to null then the File
LoadDataset(IRdfHandler, String)
Declaration
public static void LoadDataset(IRdfHandler handler, string filename)
Parameters
Type | Name | Description |
---|---|---|
IRdf |
handler | RDF Handler to use. |
System. |
filename | File to load from. |
Remarks
The File
Events
| Improve this Doc View SourceStoreWarning
Declaration
public static event StoreReaderWarning StoreWarning
Event Type
Type | Description |
---|---|
Store |
Warning
Declaration
public static event RdfReaderWarning Warning
Event Type
Type | Description |
---|---|
Rdf |