kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kDBBaseKnowledge::Interfaces::FileLoader Class Referenceabstract

#include <FileLoader.h>

Inheritance diagram for kDBBaseKnowledge::Interfaces::FileLoader:

Public Member Functions

virtual bool canLoad (const QString &_path, const QString &_mime_type, const knowCore::ValueHash &_options)=0
 
virtual cres_qresult< QStringListloadFile (const QString &_path, const kDB::Repository::Connection &_connection, const knowCore::ValueHash &_options)=0
 

Detailed Description

Interface for implementing a FileLoader that will insert base knowledge in a database.

Member Function Documentation

◆ canLoad()

virtual bool kDBBaseKnowledge::Interfaces::FileLoader::canLoad ( const QString & _path,
const QString & _mime_type,
const knowCore::ValueHash & _options )
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.

◆ loadFile()

virtual cres_qresult< QStringList > kDBBaseKnowledge::Interfaces::FileLoader::loadFile ( const QString & _path,
const kDB::Repository::Connection & _connection,
const knowCore::ValueHash & _options )
pure virtual

Load the file from _path into the database for the given connection _connection.

Returns
a list of files on which this file depend.

Implemented in kDBBaseKnowledge::SPARQLFileLoader, kDBDocuments::kdQLFileLoader, kDBGIS::GeoTIFFFileLoader, and kDBRuby::FileLoader.


The documentation for this class was generated from the following files: