Creating and editing repositories¶
What’s in this document?
Selecting from the Workbench menu displays a list of the currently available repositories:
You can connect to one of the listed repositories by selecting its name from the Choose repository drop-down list in the upper right or by clicking the Connect repository icon to the left of its name. This will convert the icon to a Connected repository icon
and show the repository’s name in the upper right.
Mousing over the icons to the right of each repository name shows what each icon does. (Their activities are described further below.)
Creating a repository¶
Note
Having more than five repositories requires a GraphDB Enterprise or Standard license. All GraphDB, Ontop, and FedX repositories count toward this maximum of five. If you create a sixth one with GraphDB Free, you will see the following in the upper right of Workbench to indicate that you are in a restricted mode:
When you are in this restricted mode, the only thing you will be able to do with these repositories is export their data until you either upgrade to GraphDB Enterprise or delete all but five repositories.
There are two ways to create and manage repositories: through the Workbench interface or by using the RDF4J console.
Note
To learn about the RDF4J console utility see the console section of the “GraphDB command line tools” documentation.
Using Workbench¶
To manage your repositories, go to . This opens a list of available repositories like the one shown above; if you have just installed GraphDB, the list may be empty, as shown here:
Click the Create new repository button or create one from a file by using the configuration template that can be found under
/configs/templatesin the GraphDB distribution.
Select GraphDB Repository and then fill out the Create GraphDB repository form. The documentation page Configure a repository through the GraphDB Workbench describes the fields on this form.
Tip
On the Repositories screen shown above, if any repositories are listed, clicking the icon on the row for one of them will let you edit that repository’s configuration using the same form.
If you have attached remote locations to your GraphDB instance, there will be an additional field for specifying the Location in which you want to create the repository. The default is Local. See more about creating a repository in a remote location a little further below.
Tip
For repositories with over several tens of millions of statements, see the configuration parameters.
Click the Create button. Your newly created repository appears in the repository list.
Creating a repository in a remote location¶
If your local copy of GraphDB is attached to a remote instance and you have write permission on that remote instance, you can create a repository there. See Creating a repository on an attached remote GraphDB location for more information.
Using a repository¶
Connecting to a repository¶
Click the Connect repository icon on the row showing the name of the repository that you want to connect to in the repository list.
You can also use the dropdown menu in the top right corner. This allows you to easily switch between repositories while running queries or importing and exporting data in other views. Hovering over a repository’s name on the dropdown menu will also display some basic information about it.
Making it the default repository¶
Click the pin icon on a repository’s row on the Repositories screen to make that repository the default one that is connected each time you start up GraphDB.
Restarting a repository¶
There are two ways to restart a repository without having to restart the entire GraphDB instance:
Click the Restart repository icon
next to the repository’s name on the Repositories screen. A warning will prompt you to confirm the action.
Click the edit icon
on the same row to open the repository configuration. At the bottom of the screen, tick the restart box, save, and confirm.
Warning
Restarting the repository will shut it down immediately, and all running queries and updates will be cancelled.


