code: def main():
      
      arguments = docopt(__doc__)
      cfg_filename = pkg_resources.resource_filename(
          'knowledge_base',
          'config/virtuoso.ini'
      )
      kb = KnowledgeBase(cfg_filename)
  
      # the user has issued a `find` command
      if arguments["find"]:
          search_string = arguments["<search_string>"]
          try:
              urn = CTS_URN(search_string)
              match = kb.get_resource_by_urn(str(urn))
              show_result(match, verbose=True)
              return
          except BadCtsUrnSyntax as e:
              pass
          except IndexError as e:
              raise e
              print("\nNo records with this CTS URN!\n")
              return
          try:
              matches = kb.search(search_string)
              print("\nSearching for \"%s\" yielded %s results" % (
                  search_string,
                  len(matches)
              ))
              print_results(matches)
              return
          except SparqlReaderException as e:
              print("\nWildcard word needs at least 4 leading characters")
      # the user has issued an `add` command
      elif arguments["add"]:
          input_urn = arguments["--to"]
  
          # first let's check if it's a valid URN
          try:
              urn = CTS_URN(input_urn)
          except Exception as e:
              print("The provided URN ({}) is invalid!".format(input_urn))
              return
  
          try:
              resource = kb.get_resource_by_urn(urn)
              assert resource is not None
          except ResourceNotFound:
              print("The KB does not contain a resource identified by {}".format(
                  urn
              ))
              return
  
  
          print(arguments)
          #if arguments[""]
          pass
docs: Define the CLI inteface/commands.