Creating a Repository¶
GraphDB EE edition supports master and worker repositories. The master keeps a log of the recent transactions, while all workers keep a full copy of the repository data. For more information, see how GraphDB EE works.
What’s in this document?
Create a worker¶
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.
Click the Connect button next to the location you want to activate.
Click the Create new repository button or create it from a file by using the configuration template that can be found at
configs/templates/
.Enter the Repository ID (e.g., repository1) 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.
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
/bin
folder:console.cmd (Windows) ./console (Unix/Linux)
Connect to the GraphDB server instance using the command:
connect http://localhost:7200.
Create a worker using the command:
create worker.
Fill in the values of the parameters in the console.
Exit the RDF4J console:
quit.
Create a master¶
To create a master node, follow the same procedure as the one for creating a worker. Only use repository type GraphDB EE Master if you are creating it through the workbench, or use the configuration template called master.ttl
from the /templates
folder, if you are using the RDF4J console.
Initialize a master¶
If the machine where the master is installed has a GraphDB Workbench deployed, the latter will initialize the master.
If you are not using the RDF4J console for initialization, you have to initialize the master yourself by using two methods: either connecting to it in the Workbench, or, if the machine where the master is installed does not have a GraphDB Workbench deployed, by executing the command:
curl http://localhost:7200/repositories/masterID/size
This operation ensures that the master appears in the JMX interface.
Manage repositories¶
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.

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