...
Use the following script to create a backup of the graph database repository. This example is configured for a Fuseki repository but can be adjusted for other supported triplestores by changing the appropriate variables. Here's the complete process and explanation of the variables used in the script:Below, you'll find detailed command line examples for each triplestore, ensuring you can tailor the backup process to your specific setup.
Command Line Examples for Different Triplestores
Fuseki Example
Code Block enapsogdb export --dburl "http://localhost/fuseki" --repository "Test" --targetfile "fuseki_backup.trig" --triplestore "fuseki"
GraphDB Example
Code Block enapsogdb export --dburl "http://localhost/graphdb" --repository "Test" --targetfile "graphdb_backup.trig" --FORMAT "application/x-trig" --triplestore "graphdb"
Stardog Example
Code Block enapsogdb export --dburl "http://localhost/stardog" --repository "Test" --targetfile "stardog_backup.trig" --FORMAT "application/x-trig" --triplestore "stardog"
Create a New Script File
Open a text editor such as Notepad++, or Visual Studio Code.
Copy and paste the script content below.
...
The following script restores a graph database repository from a backup file. It includes an optional step to rebuild the cache on the ENAPSO platform, beneficial for those using the ENAPSO together or ENAPSO together Free services, which utilize a cache mechanism to enhance data management efficiency and speed. Here's the complete process and explanation of the variables used in the script:Below, you'll find detailed command line examples for each triplestore, ensuring you can tailor the backup process to your specific setup.
Command Line Examples for Different Triplestores
Fuseki Example
Code Block enapsogdb import --dburl "http://localhost/fuseki" --repository "Test" --sourcefile "fuseki_backup.trig" --FORMAT "application/x-trig" --triplestore "fuseki"
GraphDB Example
Code Block enapsogdb import --dburl "http://localhost/graphdb" --repository "Test" --sourcefile "graphdb_backup.trig" --FORMAT "application/x-trig" --triplestore "graphdb"
Stardog Example
Code Block enapsogdb import --dburl "http://localhost/stardog" --repository "Test" --sourcefile "stardog_backup.trig" --FORMAT "application/x-trig" --triplestore "stardog"
Create a New Script File
Open a text editor such as Notepad++, or Visual Studio Code.
Copy and paste the script content below.
...