def get_tuples_by_predicate(self, predicate_of_interest):
    '\n        \n        Extracts SPO tuples based on the predicate value passed to the function. This query will be slow since\n        you are querying such a large fraction of the po table at once (unless your predicate does not exist).\n        \n        Predicates:\n        \n        Name\n        Type\n        Gender\n        Description\n        Birthdate\n        GivenName\n        Surname\n        BirthPlace\n        DeathDate\n        DeathPlace\n        \n        :param predicate_of_interest: \n        :return: \n        '
    with self.connection.cursor() as cursor:
        cursor.execute('select dbpedia.subjects.name, predicate, object FROM dbpedia.predicate_object INNER JOIN dbpedia.subjects on (dbpedia.subjects.subject_id = dbpedia.predicate_object.subject_id) WHERE upper(dbpedia.predicate_object.predicate) = upper(%s)', (predicate_of_interest,))
        results = cursor.fetchall()
        if (results is None):
            return []
        else:
            return results
Extracts SPO tuples based on the predicate value passed to the function. This query will be slow since
you are querying such a large fraction of the po table at once (unless your predicate does not exist).

Predicates:

Name
Type
Gender
Description
Birthdate
GivenName
Surname
BirthPlace
DeathDate
DeathPlace

:param predicate_of_interest: 
:return:
def get_tuples_by_predicate(self, predicate_of_interest):
    '\n        \n        Extracts SPO tuples based on the predicate value passed to the function. This query will be slow since\n        you are querying such a large fraction of the po table at once (unless your predicate does not exist).\n        \n        Predicates:\n        \n        Name\n        Type\n        Gender\n        Description\n        Birthdate\n        GivenName\n        Surname\n        BirthPlace\n        DeathDate\n        DeathPlace\n        \n        :param predicate_of_interest: \n        :return: \n        '
    with self.connection.cursor() as cursor:
        cursor.execute('select dbpedia.subjects.name, predicate, object FROM dbpedia.predicate_object INNER JOIN dbpedia.subjects on (dbpedia.subjects.subject_id = dbpedia.predicate_object.subject_id) WHERE upper(dbpedia.predicate_object.predicate) = upper(%s)', (predicate_of_interest,))
        results = cursor.fetchall()
        if (results is None):
            return []
        else:
            return results