コード例 #1
0
    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, [])
コード例 #2
0
 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'
     ])
コード例 #3
0
 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