Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

  1. Fuseki Example

    Code Block
    enapsogdb export --dburl "http://localhost/fuseki" --repository "Test" --targetfile "fuseki_backup.trig" --triplestore "fuseki"
  2. GraphDB Example

    Code Block
    enapsogdb export --dburl "http://localhost/graphdb" --repository "Test" --targetfile "graphdb_backup.trig" --FORMAT "application/x-trig" --triplestore "graphdb"
  3. 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

  1. Open a text editor such as Notepad++, or Visual Studio Code.

  2. 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

  1. Fuseki Example

    Code Block
    enapsogdb import --dburl "http://localhost/fuseki" --repository "Test" --sourcefile "fuseki_backup.trig" --FORMAT "application/x-trig" --triplestore "fuseki"
  2. GraphDB Example

    Code Block
    enapsogdb import --dburl "http://localhost/graphdb" --repository "Test" --sourcefile "graphdb_backup.trig" --FORMAT "application/x-trig" --triplestore "graphdb"
  3. 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

  1. Open a text editor such as Notepad++, or Visual Studio Code.

  2. Copy and paste the script content below.

...