nordlys.logic.entity.entity module

Entity

Provides access to entity catalogs (DBpedia and surface forms).

Author:Faegheh Hasibi
class nordlys.logic.entity.entity.Entity[source]

Bases: object

dbp_to_fb(dbp_id)[source]

Converts DBpedia id to Freebase; it returns list of Freebase IDs.

fb_to_dbp(fb_id)[source]

Converts Freebase id to DBpedia; it returns list of DBpedia IDs.

lookup_en(entity_id)[source]

Looks up an entity by its identifier.

Parameters:entity_id – entity identifier (“<dbpedia:Audi_A4>”)

:return A dictionary with the entity document or None.

lookup_name_dbpedia(name)[source]

Looks up a name in a surface form dictionary and returns all candidate entities.

lookup_name_facc(name)[source]

Looks up a name in a surface form dictionary and returns all candidate entities.