code: def get_predicates(self, subject, object):
          
          for statement in self.spo_search(subject=subject, object=object):
              yield str(statement[1])
docs: Search for all subjects related to the specified subject and object.
  
          :param subject:
          :param object:
          :rtype: generator of RDF statements