def create(self, handle=None, handle_type=None, **args):
        """
        Creates an ontology based on a handle

        Handle is one of the following

        - `FILENAME.json` : creates an ontology from an obographs json file
        - `obo:ONTID`     : E.g. obo:pato - creates an ontology from obolibrary PURL (requires owltools)
        - `ONTID`         : E.g. 'pato' - creates an ontology from a remote SPARQL query

        Arguments
        ---------
        handle : str
            specifies how to retrieve the ontology info

        """
        if handle is None:
            self.test = self.test+1
            logging.info("T: "+str(self.test))
            global default_ontology
            if default_ontology is None:
                logging.info("Creating new instance of default ontology")
                default_ontology = create_ontology(default_ontology_handle)
            logging.info("Using default_ontology")
            return default_ontology
        return create_ontology(handle, **args)
def create ( self , handle = None , handle_type = None , ** args ) : if handle is None : self . test = self . test + 1 logging . info ( "T: " + str ( self . test ) ) global default_ontology if default_ontology is None : logging . info ( "Creating new instance of default ontology" ) default_ontology = create_ontology ( default_ontology_handle ) logging . info ( "Using default_ontology" ) return default_ontology return create_ontology ( handle , ** args )
Creates an ontology based on a handle

        Handle is one of the following

        - `FILENAME.json` : creates an ontology from an obographs json file
        - `obo:ONTID`     : E.g. obo:pato - creates an ontology from obolibrary PURL (requires owltools)
        - `ONTID`         : E.g. 'pato' - creates an ontology from a remote SPARQL query

        Arguments
        ---------
        handle : str
            specifies how to retrieve the ontology info