SPAQRL module installation problem

When trying to install the SPARQL module (last version 3.4.5 ) I get this error

 Laminas\Router\Exception\RuntimeException
Route with name "sparql" not found

Details:

Laminas\Router\Exception\RuntimeException: Route with name "sparql" not found in /var/www/omeka/omeka-s/vendor/laminas/laminas-router/src/Http/TreeRouteStack.php:364
Stack trace:
#0 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/Controller/Plugin/Url.php(96): Laminas\Router\Http\TreeRouteStack->assemble()
#1 /var/www/omeka/omeka-s/modules/Sparql/Module.php(111): Laminas\Mvc\Controller\Plugin\Url->fromRoute()
#2 /var/www/omeka/omeka-s/modules/Common/TraitModule.php(113): Sparql\Module->postInstall()
#3 /var/www/omeka/omeka-s/application/src/Module/Manager.php(225): Sparql\Module->install()
#4 /var/www/omeka/omeka-s/application/src/Controller/Admin/ModuleController.php(117): Omeka\Module\Manager->install()
#5 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractActionController.php(71): Omeka\Controller\Admin\ModuleController->installAction()
#6 /var/www/omeka/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\Controller\AbstractActionController->onDispatch()
#7 /var/www/omeka/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#8 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/Controller/AbstractController.php(97): Laminas\EventManager\EventManager->triggerEventUntil()
#9 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/DispatchListener.php(132): Laminas\Mvc\Controller\AbstractController->dispatch()
#10 /var/www/omeka/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(319): Laminas\Mvc\DispatchListener->onDispatch()
#11 /var/www/omeka/omeka-s/vendor/laminas/laminas-eventmanager/src/EventManager.php(179): Laminas\EventManager\EventManager->triggerListeners()
#12 /var/www/omeka/omeka-s/vendor/laminas/laminas-mvc/src/Application.php(325): Laminas\EventManager\EventManager->triggerEventUntil()
#13 /var/www/omeka/omeka-s/index.php(21): Laminas\Mvc\Application->run()
#14 {main}

Previoulsy I have done this configuration as indicated on the module page

a2enmod headers
systemctl restart apache2

Then, you have to add the following rules, adapted to your needs, to the file .htaccess at the root of Omeka S or in the main config of the server:

# CORS access for some files.
<IfModule mod_headers.c>
    Header setIfEmpty Access-Control-Allow-Origin "*"
    Header setIfEmpty Access-Control-Allow-Headers "origin, x-requested-with, content-type"
    Header setIfEmpty Access-Control-Allow-Methods "GET, POST"
</IfModule>

1 Like

Hi! I have the same problem.
How did you fix it?
please suggestion are welcomed!
thanks in advance,
sab

Not solved yet, unfortunately!

Same error/issue here.
Has anyone solved/fixed this yet - or knows more on how we could assist in resolving this?

Thanks anyone in advance!

The issue is not related to apache or to cors. The module creates a single route to the sparql engine and it is /sparql and in fact the issue was just the message of successful install that is broken… This is fixed in 3.4.6.

1 Like

It works now!
Thank you so much! :smile:

Is there any documentation for basic example queries?
Just to check if things are basically up and running okay?

I’ve tried the following query, but it throws an error:
select ?item where { ?item } limit 5

but I may be simply plain wrong with the syntax, as I’m new to Sparql in general…

Grateful for any hints!