code: def convert_json_object(obographdoc, **args):
      
      digraph = networkx.MultiDiGraph()
      xref_graph = networkx.MultiGraph()
      logical_definitions = []
      property_chain_axioms = []
      context = obographdoc.get('@context',{})
      logging.info("CONTEXT: {}".format(context))
      mapper = OboJsonMapper(digraph=digraph, context=context)
      ogs = obographdoc['graphs']
      base_og = ogs[0]
      for og in ogs:
          # TODO: refactor this
          mapper.add_obograph_digraph(og, xref_graph=xref_graph,
                                      logical_definitions=logical_definitions,
                                      property_chain_axioms=property_chain_axioms, **args)
  
      return {
          'id': base_og.get('id'),
          'meta': base_og.get('meta'),
          'graph': mapper.digraph,
          'xref_graph': xref_graph,
          'graphdoc': obographdoc,
          'logical_definitions': logical_definitions,
          'property_chain_axioms': property_chain_axioms
          }
docs: Return a networkx MultiDiGraph of the ontologies
      serialized as a json object