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