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
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.)
Create a repository¶
There are two ways to create and manage repositories: through the Workbench interface or by using the RDF4J console.
Using the 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 it from a file by using the configuration template that can be found under
/configs/templatesin the GraphDB distribution.
Select GraphDB repository.
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.
Enter the Repository ID (e.g., my_repo) and leave all other optional configuration settings with their default values.
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.
Create a repository in a remote location¶
You can easily create a repository in any remote location attached to your GraphDB instance.
Connect to the location. For example, you can connect to
http://localhost:7202(substitutelocalhostand the7200port number as appropriate).Just like with local repositories, go to .
In the Location field, the two locations are now visible. Select
http://localhost:7202.Fill in the Repository ID and create the repo.
Both repositories are now created.
Go to
http://localhost:7202. You will now seeremote_repocreated there.
Using the RDF4J console¶
Note
Use the create command to add new repositories to the location to which the console is connected. This command expects the name of the template that describes the repository’s configuration.
Run the RDF4J console application, which resides in the
/binfolder:Windows: console.cmd
Unix/Linux: ./console
Connect to the GraphDB server instance with connect http://localhost:7200.
Create a repository using create graphdb.
We can also create a repository with enabled SHACL validation through the RDF4J console using the command create graphdb-shacl.
Fill in the values of the parameters in the console.
Exit the RDF4J console with quit.
Editing repositories¶
Connect a repository¶
Click the connect icon in the repository list.
Alternatively, 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 the respective repository will also display some basic information about it.
Restart a repository¶
There are two ways to restart a repository without having to restart the entire GraphDB instance:
Click the restart icon
next to the repository’s name. A warning will prompt you to confirm the action.Click the edit icon, which will open the repository configuration. At its bottom, 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.




