From 20c1d54400565e91c16deb0c68bec15981a562f2 Mon Sep 17 00:00:00 2001
From: Claudiu Cristea <clau.cristea@gmail.com>
Date: Tue, 12 Nov 2024 18:29:09 +0000
Subject: [PATCH] ISAICP-9218: Remove unneeded conmmands.

---
 composer.json                                |   2 -
 composer.lock                                | 156 +------------------
 src/TaskRunner/Commands/VirtuosoCommands.php |  42 -----
 3 files changed, 1 insertion(+), 199 deletions(-)
 delete mode 100644 src/TaskRunner/Commands/VirtuosoCommands.php

diff --git a/composer.json b/composer.json
index ee4fef2ce3..5cc3c3811c 100644
--- a/composer.json
+++ b/composer.json
@@ -162,8 +162,6 @@
         "nicwortel/behat-unused-step-definitions-extension": "^1.2",
         "palantirnet/drupal-rector": "^0.20.1",
         "pear/http_request2": "~2.4",
-        "php-task-runner/composer": "dev-toolkit-runner",
-        "php-task-runner/sparql": "dev-toolkit-runner",
         "phpro/grumphp-shim": "^2.6",
         "phpspec/prophecy-phpunit": "^2",
         "phpstan/extension-installer": "^1.3",
diff --git a/composer.lock b/composer.lock
index 16d07dcef4..033fdd4ea6 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "a4e28db901fc0b9ceb4c0695a6231fc6",
+    "content-hash": "0190ea5848d3158a503eacee9aa99c7d",
     "packages": [
         {
             "name": "asm89/stack-cors",
@@ -21454,158 +21454,6 @@
             },
             "time": "2024-03-27T12:14:49+00:00"
         },
-        {
-            "name": "php-task-runner/composer",
-            "version": "dev-toolkit-runner",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/php-task-runner/composer.git",
-                "reference": "26d77e2780f8dfe586f0e61c491f24e6daaffa33"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/php-task-runner/composer/zipball/26d77e2780f8dfe586f0e61c491f24e6daaffa33",
-                "reference": "26d77e2780f8dfe586f0e61c491f24e6daaffa33",
-                "shasum": ""
-            },
-            "require": {
-                "ec-europa/toolkit": "^9 || ^10",
-                "ext-json": "*",
-                "php": ">=7.4"
-            },
-            "require-dev": {
-                "composer/composer": "^2",
-                "phpunit/phpunit": "~7 || ~8 || ~9",
-                "slevomat/coding-standard": "~6",
-                "squizlabs/php_codesniffer": "~3"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-4": {
-                    "TaskRunner\\Composer\\": "./src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "EUPL-1.2"
-            ],
-            "authors": [
-                {
-                    "name": "Claudiu Cristea",
-                    "email": "clau.cristea@gmail.com"
-                }
-            ],
-            "description": "Provides Composer commands for OpenEuropa Task Runner",
-            "keywords": [
-                "task-runner"
-            ],
-            "support": {
-                "issues": "https://github.com/php-task-runner/composer/issues",
-                "source": "https://github.com/php-task-runner/composer/tree/toolkit-runner"
-            },
-            "time": "2023-12-06T18:01:36+00:00"
-        },
-        {
-            "name": "php-task-runner/sparql",
-            "version": "dev-toolkit-runner",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/php-task-runner/sparql.git",
-                "reference": "fc8043f94e3cd2ca6e16703c36acf9913c2b356d"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/php-task-runner/sparql/zipball/fc8043f94e3cd2ca6e16703c36acf9913c2b356d",
-                "reference": "fc8043f94e3cd2ca6e16703c36acf9913c2b356d",
-                "shasum": ""
-            },
-            "require": {
-                "ec-europa/toolkit": "^9 || ^10",
-                "php": ">=7.4",
-                "php-task-runner/sparql-robo-tasks": "1.x-dev"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "~7 || ~8 || ~9",
-                "slevomat/coding-standard": "~6",
-                "squizlabs/php_codesniffer": "~3"
-            },
-            "type": "library",
-            "autoload": {
-                "psr-4": {
-                    "TaskRunner\\Sparql\\": "./src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "EUPL-1.2"
-            ],
-            "authors": [
-                {
-                    "name": "Claudiu Cristea",
-                    "email": "clau.cristea@gmail.com"
-                }
-            ],
-            "description": "Provides SPARQL commands for OpenEuropa Task Runner",
-            "keywords": [
-                "task-runner"
-            ],
-            "support": {
-                "issues": "https://github.com/php-task-runner/sparql/issues",
-                "source": "https://github.com/php-task-runner/sparql/tree/toolkit-runner"
-            },
-            "time": "2024-01-08T11:35:09+00:00"
-        },
-        {
-            "name": "php-task-runner/sparql-robo-tasks",
-            "version": "1.x-dev",
-            "source": {
-                "type": "git",
-                "url": "https://github.com/php-task-runner/sparql-robo-tasks.git",
-                "reference": "dcd4467e0ab14c99f17db930a1c0a26a172a9b94"
-            },
-            "dist": {
-                "type": "zip",
-                "url": "https://api.github.com/repos/php-task-runner/sparql-robo-tasks/zipball/dcd4467e0ab14c99f17db930a1c0a26a172a9b94",
-                "reference": "dcd4467e0ab14c99f17db930a1c0a26a172a9b94",
-                "shasum": ""
-            },
-            "require": {
-                "consolidation/robo": "^1.0 || ^2.0 || ^3.0 || ^4 || ^5",
-                "easyrdf/easyrdf": "^1.1",
-                "php": ">=7.4"
-            },
-            "require-dev": {
-                "phpunit/phpunit": "~7 || ~8 || ~9",
-                "slevomat/coding-standard": "~6",
-                "squizlabs/php_codesniffer": "~3"
-            },
-            "default-branch": true,
-            "type": "robo-tasks",
-            "autoload": {
-                "psr-4": {
-                    "Robo\\Sparql\\": "./src/"
-                }
-            },
-            "notification-url": "https://packagist.org/downloads/",
-            "license": [
-                "EUPL-1.2"
-            ],
-            "authors": [
-                {
-                    "name": "Claudiu Cristea",
-                    "email": "clau.cristea@gmail.com"
-                }
-            ],
-            "description": "Provides SPARQL commands for Robo",
-            "keywords": [
-                "task-runner"
-            ],
-            "support": {
-                "issues": "https://github.com/php-task-runner/sparql-robo-tasks/issues",
-                "source": "https://github.com/php-task-runner/sparql-robo-tasks/tree/1.x"
-            },
-            "time": "2024-07-09T10:27:09+00:00"
-        },
         {
             "name": "phpcompatibility/php-compatibility",
             "version": "9.3.5",
@@ -25059,8 +24907,6 @@
         "drupal/masquerade": 5,
         "drupal/node_revision_delete": 5,
         "drupal/views_block_area": 10,
-        "php-task-runner/composer": 20,
-        "php-task-runner/sparql": 20,
         "weitzman/drupal-test-traits": 20
     },
     "prefer-stable": true,
diff --git a/src/TaskRunner/Commands/VirtuosoCommands.php b/src/TaskRunner/Commands/VirtuosoCommands.php
deleted file mode 100644
index 3b3bfed4b6..0000000000
--- a/src/TaskRunner/Commands/VirtuosoCommands.php
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace Joinup\TaskRunner\Commands;
-
-use EcEuropa\Toolkit\TaskRunner\AbstractCommands;
-use Robo\Collection\CollectionBuilder;
-use Robo\Sparql\Tasks\Sparql\loadTasks;
-
-/**
- * Provides Interoperable Europe Portal specific commands for Virtuoso backend.
- */
-class VirtuosoCommands extends AbstractCommands {
-
-  use loadTasks;
-
-  /**
-   * Imports RDF data from fixture files into Virtuoso storage.
-   *
-   * @param string[] $files
-   *   A list of files to be imported. The file base name, without extension is
-   *   used as graph URI host. For example the triples from path/to/content.rdf
-   *   will be stored in the http://content graph.
-   *
-   * @return \Robo\Collection\CollectionBuilder
-   *   The Robo collection builder.
-   *
-   * @command virtuoso:import-fixtures
-   */
-  public function importFixtures(array $files): CollectionBuilder {
-    $config = $this->getConfig();
-    $endpointUrl = "http://{$config->get('sparql.host')}:{$config->get('sparql.port')}/sparql-graph-crud";
-    $taskImport = $this->taskSparqlImportFromFile()->setEndpointUrl($endpointUrl);
-    foreach ($files as $fileName) {
-      $graphUri = 'http://' . strtolower(pathinfo($fileName, PATHINFO_FILENAME));
-      $taskImport->addTriples($graphUri, $fileName);
-    }
-    return $this->collectionBuilder()->addTask($taskImport);
-  }
-
-}
-- 
GitLab