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