code: def printrdf(wflow, ctx, style):  # type: (Process, ContextType, Text) -> Text
      
      rdf = gather(wflow, ctx).serialize(format=style, encoding='utf-8')
      if not rdf:
          return u""
      return rdf.decode('utf-8')
docs: Serialize the CWL document into a string, ready for printing.