def ParseObjs(self, objs, type_names):
    """Parse one or more objects by testing if it is a known RDF class."""
    for obj in objs:
      for type_name in self._RDFTypes(type_names):
        if isinstance(obj, self._GetClass(type_name)):
          yield obj