Class Connect

java.lang.Object
org.eclipse.rdf4j.console.command.ConsoleCommand
org.eclipse.rdf4j.console.command.Connect
All Implemented Interfaces:
Command, Help

public class Connect extends ConsoleCommand
Connect command
Author:
dale
  • Constructor Details

  • Method Details

    • getName

      public String getName()
      Description copied from interface: Help
      Get the name of the command
      Returns:
      string
    • getHelpShort

      public String getHelpShort()
      Description copied from class: ConsoleCommand
      Get short description, small enough to fit on one console row
      Specified by:
      getHelpShort in interface Help
      Overrides:
      getHelpShort in class ConsoleCommand
      Returns:
      help string
    • getHelpLong

      public String getHelpLong()
      Description copied from class: ConsoleCommand
      Get long description
      Specified by:
      getHelpLong in interface Help
      Overrides:
      getHelpLong in class ConsoleCommand
      Returns:
      string, can be multiple lines
    • execute

      public void execute(String... tokens)
      Description copied from interface: Command
      Execute the given parameters.
      Specified by:
      execute in interface Command
      Overrides:
      execute in class ConsoleCommand
      Parameters:
      tokens - parameters typed by user
    • connectDefault

      public boolean connectDefault()
      Connect to default repository
      Returns:
      true if connected
    • connectLocal

      public boolean connectLocal(String path)
      Connect to local repository
      Parameters:
      path - directory of the local repository
      Returns:
      true on success
    • connectRemote

      public boolean connectRemote(String url)
      Connect to remote repository without username of password
      Parameters:
      url - URL of the repository
      Returns:
      true on success