diff --git a/.ddev/commands/host/install b/.ddev/commands/host/install index 63278f58ca04691bd5eec81a3fb13d7c0bfe839b..cd8164237bbb6427b1198760b251388621dc1af5 100755 --- a/.ddev/commands/host/install +++ b/.ddev/commands/host/install @@ -6,4 +6,5 @@ ddev solr:empty ddev exec vendor/bin/run toolkit:install-clean +ddev virtuoso:clear-data ddev exec vendor/bin/run dev:install-modules diff --git a/.ddev/commands/host/rebuild b/.ddev/commands/host/rebuild index e42632be6b4e587cf7ed1311cbf728c9eea29788..d72bb06e31245cad519b407a4547c93149449122 100755 --- a/.ddev/commands/host/rebuild +++ b/.ddev/commands/host/rebuild @@ -6,5 +6,6 @@ ddev solr:restore ddev run toolkit:install-clone +ddev virtuoso:clear-data ddev run dev:install-modules ddev drush user:unblock --uid=1 diff --git a/.ddev/commands/web/virtuoso_clear_data b/.ddev/commands/web/virtuoso_clear_data new file mode 100755 index 0000000000000000000000000000000000000000..33f770500106b344f1bc62739f3ae19946530e1e --- /dev/null +++ b/.ddev/commands/web/virtuoso_clear_data @@ -0,0 +1,7 @@ +#!/bin/bash + +## Description: Clear the <http://data? Virtuoso graph +## Usage: virtuoso:clear-data + +vendor/bin/drush eval "Drupal::service('rdf_sync.connection')->update('CLEAR GRAPH <http://data>')" +echo "Cleared the <http://data> graph."