def write_kb(self, filename):
    """Write out all triples rel/subject/object, perhaos with qualifiers."""
    with open(filename, 'wb') as fp:
      for f in self.frames(filter_english=FLAGS.skip_nonenglish):
        for t in self.as_triples(SlotCollection(f)):
          fp.write((t + '\n').encode('utf-8'))
Write out all triples rel/subject/object, perhaos with qualifiers.
language/templama/sling2facts.py