I am trying to filter out this database written in Turtle
@prefix : <http://www.essepuntato.it/resource/> . @prefix vcard: <http://www.w3.org/2006/vcard/ns#> . @prefix cs: <http://cs.unibo.it/ontology/> . :pt0001 vcard:category "Poste e Telegrafi" ; vcard:fn "Ufficio Bologna 1" ; vcard:extended-address "Via Cairoli 9, Bologna BO, Italy" ; vcard:latitude "44.504192" ; vcard:longitude "11.338661" ; vcard:tel "051 243425" ; vcard:fax "051 244459" ; cs:opening "Mon, Tue, Wed, Thu, Fri: 0800-1330. Sat: 0800-1230." ; cs:closing "01-01, 01-06, P, LA, 04-25, 05-01, 06-02, 08-15, 11-01, 12-08, 12-25, 12-26: .".
I am using arc2 api beacause since RAP is not working. I wrote this code, but it will not work:
<?php include_once('./arc2/ARC2.php'); $config = array( 'db_host' => 'localhost', 'db_name' => 'my_db', 'db_user' => 'user', 'db_pwd' => 'secret', 'store_name' => 'my_endpoint_store', 'endpoint_features' => array( 'select', 'construct', 'ask', 'describe', 'load', 'insert', 'delete', 'dump' ), 'endpoint_timeout' => 60, 'endpoint_read_key' => '', 'endpoint_write_key' => 'somekey', 'endpoint_max_limit' => 250, ); $ssp = ARC2::getSPARQLScriptProcessor($config); $scr = ' PREFIX vcard: <http://www.w3.org/2006/vcard/ns#> PREFIX dbpedia2: <http://dbpedia.org/property/> ENDPOINT "database.ttl" $rows = SELECT ?x ?y WHERE { ?x vcard: ?y. } '; $ssp->processScript($scr); echo $ssp->env['output']; ?>
The script does not return an error, not a result.