code: def add_triple_pattern(tp, collector, args):
      
      tp_parts = [part.strip() for part in tp.strip().split(' ')]
      tp = ' '.join(tp_parts)
      if tp not in __triple_patterns.keys():
          __triple_patterns[tp] = set([])
      if collector is not None:
          __triple_patterns[tp].add((collector, args))
docs: 0
      Manage the relations between triple patterns and collector functions
      :param tp:
      :param collector:
      :param args:
      :return: