kDB: Knowledge DataBase
|
#include <FileLoader.h>
Public Member Functions | |
virtual bool | canLoad (const QString &_path, const QString &_mime_type, const knowCore::ValueHash &_options)=0 |
virtual cres_qresult< QStringList > | loadFile (const QString &_path, const kDB::Repository::Connection &_connection, const knowCore::ValueHash &_options)=0 |
Interface for implementing a FileLoader that will insert base knowledge in a database.
|
pure virtual |
Check if this loader can be used on a specific file. _options
contains an options file that is store alongside a base knowledge YAML file.
Implemented in kDBBaseKnowledge::SPARQLFileLoader, kDBDocuments::kdQLFileLoader, kDBGIS::GeoTIFFFileLoader, and kDBRuby::FileLoader.
|
pure virtual |
Load the file from _path into the database for the given connection _connection.
Implemented in kDBBaseKnowledge::SPARQLFileLoader, kDBDocuments::kdQLFileLoader, kDBGIS::GeoTIFFFileLoader, and kDBRuby::FileLoader.