def build_indices(self):
    '\n        \n        Builds the following indices:\n        \n        Index on name for subjects\n        Index on predicate for predicate_object\n        Index on subject_id for predicate object\n        \n        :return: \n        '
    with self.connection.cursor() as cursor:
        cursor.execute('DROP INDEX IF EXISTS dbpedia.pv_subject_id_idx')
        cursor.execute('DROP INDEX IF EXISTS dbpedia.subject_idx')
        cursor.execute('DROP INDEX IF EXISTS dbpedia.pv_predicate_idx')
        cursor.execute('create index subject_idx on dbpedia.subjects (name)')
        cursor.execute('create index pv_subject_id_idx on dbpedia.predicate_object (subject_id)')
        cursor.execute('create index pv_predicate_idx on dbpedia.predicate_object (predicate);')
Builds the following indices:

Index on name for subjects
Index on predicate for predicate_object
Index on subject_id for predicate object

:return:
def build_indices(self):
    '\n        \n        Builds the following indices:\n        \n        Index on name for subjects\n        Index on predicate for predicate_object\n        Index on subject_id for predicate object\n        \n        :return: \n        '
    with self.connection.cursor() as cursor:
        cursor.execute('DROP INDEX IF EXISTS dbpedia.pv_subject_id_idx')
        cursor.execute('DROP INDEX IF EXISTS dbpedia.subject_idx')
        cursor.execute('DROP INDEX IF EXISTS dbpedia.pv_predicate_idx')
        cursor.execute('create index subject_idx on dbpedia.subjects (name)')
        cursor.execute('create index pv_subject_id_idx on dbpedia.predicate_object (subject_id)')
        cursor.execute('create index pv_predicate_idx on dbpedia.predicate_object (predicate);')