Creating a repository

Create a repository

There are two ways for creating and managing repositories, either through the Workbench interface, or by using the RDF4J console.

Using the Workbench

To manage your repositories, go to Setup -> Repositories. This opens a list of available repositories and their locations.

  1. Click the the Connect button next to the location you want to activate.

  2. Click the Create new repository button or create it from a file by using the configuration template that can be found at configs/templates/.

  3. Enter the Repository ID (e.g., repository1) and leave all other optional configuration settings with their default values.


    For repositories with more than few tens of millions of statements, see the configuration parameters.

  4. Click the Create button. You newly created repository appears in the repositories list.

Using the RDF4J console


Use the create command to add new repositories to the location that the console is connected to. This command expects the name of the template that describes the repository’s configuration.

  1. Run the RDF4J console application, which resides in the /bin folder:

    console.cmd (Windows)
    ./console (Unix/Linux)
  2. Connect to the GraphDB server instance using the command:

    connect http://localhost:7200.
  3. Create a repository using the command:
    create free.
  4. Fill in the values of the parameters in the console.

  5. Exit the RDF4J console.


Manage repositories

Select a repository

  • Connect the newly created repository to the active location.

  • Alternatively, use the dropdown menu in the top right corner. This allows you to easily change the repository while running queries as well as importing and exporting data in other views.


Make it a default repository

Use the pin to select it as a default repository.


Edit a repository

To edit or download the repository configuration as a turtle file, copy its URL, or delete it, use the icons next to its name.



Once a repository is deleted, all data contained in it is irrevocably lost.