nordlys.core.data.dbpedia.indexer_dbpedia_types module

DBpedia Types Indexer

Builds a DBpedia type index from entity abstracts.

The index is build directly from DBpedia files in .ttl.bz2 format (i.e., MongoDB is not needed).

Usage

python -m nordlys.core.dbpedia.indexer_dbpedia_types -c <config_file>

Config parameters

  • index_name: name of the index
  • dbpedia_files_path: path to DBpedia .ttl.bz2 files
Authors:Krisztian Balog, Dario Garigliotti
class nordlys.core.data.dbpedia.indexer_dbpedia_types.IndexerDBpediaTypes(config)[source]

Bases: object

build_index(force=False)[source]

Builds the index.

Note: since DBpedia only has a few hundred types, no bulk indexing is needed.

Parameters:force – True iff it is required to overwrite the index (i.e. by

creating it by force); False by default. :type force: bool :return:

name
nordlys.core.data.dbpedia.indexer_dbpedia_types.arg_parser()[source]
nordlys.core.data.dbpedia.indexer_dbpedia_types.main(args)[source]