Idea e următoarea: doresc să extrag de pe serverul RDF4J printr-o interogare SPARQL date din graf si sa le afisez intr-o pagina, dar primesc urmatoarea eroare: Uncaught exception 'InvalidArgumentException' with message '$config should be an array and cannot be null.
Codul php:
<?php
require 'vendor/autoload.php';
print"<b>Lista participantilor:</b><br/>";
$adresa="http://localhost:8080/rdf4j-server/repositories/maraton?query=";
$interogare=urlencode("prefix gi: <http://vaduvescu.toma.ro#> select ?subiect ?nume where {?subiect gi:hasName ?nume}");
$clienthttp = new EasyRdf_Http_Client($adresa,$interogare);
$clienthttp->setHeaders("Accept","application/sparql-results+json");
$rezultatJSON = $clienthttp->request()->getBody();
print "<br/><br/><b>Raspunsul JSON sosit este : </b>".$rezultatJSON;
$rezultatRestructurat = new EasyRdf_Sparql_Result($rezultatJSON, "application/sparql-results+json");
print "<br/><br/><b>Raspunsul structurat este: </b>".$rezultatRestructurat;
?>