Jump to content

ioanamaria08

Members
  • Posts

    1
  • Joined

  • Last visited

ioanamaria08's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter

Recent Badges

0

Reputation

  1. 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; ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.