def get(self, id): """ Returns meta data of an ontology subset (slim) """ query = subset(self, id) results = run_sparql_on(query, EOntology.GO) return transformArray(results, [])
def get(self, id): """ Returns meta data of an ontology term """ query = goSummary(self, id) results = run_sparql_on(query, EOntology.GO) return transform(results[0], [ 'synonyms', 'relatedSynonyms', 'alternativeIds', 'xrefs', 'subsets' ])
def get(self, id): """ Returns subsets (slims) associated to an ontology term """ query = goSubsets(self, id) results = run_sparql_on(query, EOntology.GO) results = transformArray(results, []) results = replace(results, "subset", "OBO:go#", "") return results