Skip to content

Configuring Databases

Irina Dragoste edited this page Nov 15, 2018 · 21 revisions

VLog supports loading facts from several databases at the same time. It also supports several database technologies. This section explains how a database source can be configured. Vlog will load the configuration of all used data sources from a given file with .conf extension

In memory database, loaded from file

VLog supports file datasources of type .csv, as well as the RDF format N-Triples (.nt). Files can also be zipped, with .gzip extension. The facts from given file will be dictionary-encoded and stored in memory. .conf file content, for a file data source:

EDB0_predname=[predicate_name]
EDB0_type=INMEMORY
EDB0_param0=[path_to_file_parent_dir]
EDB0_param1=[file_name_without_extension]

Trident database

After the computation is terminated, VLog has created a copy of the database at "/data/lubm_1/kb".

./vlog load -i /data/lubm_1/ntriples -o /data/lubm_1/kb

After the computation is terminated, VLog has created a copy of the database at "/data/lubm_1/kb".

.conf file content, for a Trident database:

EDB0_predname=[predicate_name]
EDB0_type=Trident
EDB0_param0=[path_to_trident_database]
Clone this wiki locally