I have installed and stored rdf data into store. After loading a sparql endpoint, it gives "no results found" when a default query is executed as followed.
This code is used. (it is same code in wiki).
<?php
/* ARC2 static class inclusion */
include_once('/Applications/arc/ARC2.php');
/* MySQL and endpoint configuration */
$config = array(
/* db */
'db_host' => 'localhost', /* optional, default is localhost */
'db_name' => 'linked',
'db_user' => 'root',
'db_pwd' => '',
/* store name */
'store_name' => 'endpoint_store',
/* endpoint */
'endpoint_features' => array(
'select', 'construct', 'ask', 'describe',
'load', 'insert', 'delete',
'dump' /* dump is a special command for streaming SPOG export */
),
'endpoint_timeout' => 60, /* not implemented in ARC2 preview */
'endpoint_read_key' => '', /* optional */
'endpoint_write_key' => 'REPLACE_THIS_WITH_SOME_KEY', /* optional, but without one, everyone can write! */
'endpoint_max_limit' => 250, /* optional */
);
/* instantiation */
$ep = ARC2::getStoreEndpoint($config);
if (!$ep->isSetUp()) {
$ep->setUp(); /* create MySQL tables */
}
/* request handling */
$ep->go();
/*
$ep->handleRequest();
$ep->sendHeaders();
echo $ep->getResult();
*/
?>