Vertex
Vertex

Reputation: 2712

How to Execute SPARQL Queries via EasyRdf?

I don't know, how to get a SPARQL query executed on the Virtuoso server via EasyRdf.

Virtuoso is started via

virtuoso\bin\virtuoso-t +service create +instance VirtuosoService

and I can go to http://localhost:8890/conductor on my web browser. In the tab Linked Data/Graphs there is a list of graphs:

The latest is the graph wich I want to query and was created by uploading the file http://njh.me/foaf.rdf via Quad Store Upload.

Now comes the PHP part. What is the right way to execute a query via EasyRdf? The following code

$graph = new \EasyRdf_Graph('http://localhost:8890/foaf');
$numTriples = $graph->load();

throws this exception: HTTP request for http://localhost:8890/foaf failed: File not found

I also tested with

Upvotes: 1

Views: 1143

Answers (1)

Related Questions