Function graphannis_capi::corpusstorage::annis_cs_import_from_fs
source · #[no_mangle]
pub extern "C" fn annis_cs_import_from_fs(
ptr: *mut CorpusStorage,
path: *const c_char,
format: ImportFormat,
corpus_name: *const c_char,
disk_based: bool,
overwrite_existing: bool,
err: *mut *mut ErrorList
) -> *mut c_char
Expand description
Import a corpus from an external location on the file system into this corpus storage.
ptr
- The corpus storage object.path
- The location on the file system where the corpus data is located.format
- The format in which this corpus data is stored.corpus_name
- Optionally override the name of the new corpus for file formats that already provide a corpus name.disk_based
- Iftrue
, prefer disk-based annotation and graph storages instead of memory-only ones.err
- Pointer to a list of errors. If any error occured, this list will be non-empty.
Returns the name of the imported corpus. The returned string must be deallocated by the caller using annis_str_free()!