code: def do_import(self, line):
          
  
          line = line.split()
  
          if line and line[0] == "starter-pack":
              actions.action_bootstrap()
  
          elif line and line[0] == "uri":
              self._print(
                  "------------------\nEnter a valid graph URI: (e.g. http://www.w3.org/2009/08/skos-reference/skos.rdf)")
              var = input()
              if var:
                  if var.startswith("http"):
                      try:
                          actions.action_import(var)
                      except:
                          self._print(
                              "OPS... An Unknown Error Occurred - Aborting installation of <%s>" % var)
                  else:
                      self._print("Not valid. TIP: URIs should start with 'http://'")
  
          elif line and line[0] == "file":
              self._print(
                  "------------------\nEnter a full file path: (e.g. '/Users/mike/Desktop/journals.ttl')")
              var = input()
              if var:
                  try:
                      actions.action_import(var)
                  except:
                      self._print(
                          "OPS... An Unknown Error Occurred - Aborting installation of <%s>" % var)
  
          elif line and line[0] == "repo":
              actions.action_webimport()
  
          else:
              self.help_import()
  
          self.all_ontologies = manager.get_localontologies()
          return
docs: Import an ontology