code: def run_query(ont, aset, args):
      
      subjects = aset.query(args.query, args.negative)
      for s in subjects:
          print("{} {}".format(s, str(aset.label(s))))
  
      if args.plot:
          import plotly.plotly as py
          import plotly.graph_objs as go
          tups = aset.query_associations(subjects=subjects)
          z, xaxis, yaxis = tuple_to_matrix(tups)
          spacechar = " "
          xaxis = mk_axis(xaxis, aset, args, spacechar=" ")
          yaxis = mk_axis(yaxis, aset, args, spacechar=" ")
          logging.info("PLOTTING: {} x {} = {}".format(xaxis, yaxis, z))
          trace = go.Heatmap(z=z,
                             x=xaxis,
                             y=yaxis)
          data=[trace]
          py.plot(data, filename='labelled-heatmap')
docs: Basic querying by positive/negative class lists