code: def process_belrdf(rdf_str, print_output=True):
      
      g = rdflib.Graph()
      try:
          g.parse(data=rdf_str, format='nt')
      except ParseError as e:
          logger.error('Could not parse rdf: %s' % e)
          return None
      # Build INDRA statements from RDF
      bp = BelRdfProcessor(g)
      bp.get_complexes()
      bp.get_activating_subs()
      bp.get_modifications()
      bp.get_activating_mods()
      bp.get_transcription()
      bp.get_activation()
      bp.get_conversions()
  
      # Print some output about the process
      if print_output:
          bp.print_statement_coverage()
          bp.print_statements()
      return bp
docs: Return a BelRdfProcessor for a BEL/RDF string.
  
      Parameters
      ----------
      rdf_str : str
          A BEL/RDF string to be processed. This will usually come from reading
          a .rdf file.
  
      Returns
      -------
      bp : BelRdfProcessor
          A BelRdfProcessor object which contains INDRA Statements in
          bp.statements.
  
      Notes
      -----
      This function calls all the specific get_type_of_mechanism()
      functions of the newly constructed BelRdfProcessor to extract
      INDRA Statements.