code: def subsets(self):
          
      
          # note subsets have an unusual encoding
          query = """
          prefix oboInOwl: <http://www.geneontology.org/formats/oboInOwl#>
          SELECT DISTINCT ?s WHERE {{
          GRAPH <{g}>  {{
          ?c oboInOwl:inSubset ?s 
          }}
          }}
          """.format(g=self.graph_name)
          bindings = run_sparql(query)
          return [r['s']['value'] for r in bindings]
docs: Find all subsets for an ontology