No results found in sparql endpoint

42 views
Skip to first unread message

haklaekim

unread,
Nov 22, 2012, 7:11:18 AM11/22/12
to arc...@googlegroups.com
Hi,

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.

SELECT * WHERE {
  GRAPH ?g { ?s ?p ?o . }
}
LIMIT 10

This code is used. (it is same code in wiki).
What it is a problem?

with thanks,
haklae


<?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();
*/
?>
Reply all
Reply to author
Forward
0 new messages