code: def extract_subset(self, subset):
          
      
          # note subsets have an unusual encoding
          query = """
          prefix oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
          SELECT ?c WHERE {{
          GRAPH <{g}>  {{
          ?c oboInOwl:inSubset ?s
          FILTER regex(?s,'#{s}$','i')
          }}
          }}
          """.format(s=subset, g=self.graph_name)
          bindings = run_sparql(query)
          return [r['c']['value'] for r in bindings]
docs: Find all nodes in a subset.
      
          We assume the oboInOwl encoding of subsets, and subset IDs are IRIs