error_reporting(E_ALL); $A = explode(':',trim(`uptime`)); $A = explode(',',$A[ 4 ]); if (( ($A[ 1 ] * 100) > 800)) { header("HTTP/1.0 503 Service Unavailable"); print '
Too many requests are being processed, please try again a little later.
'; exit; } /* ARC2 static class inclusion */ include_once('include/ARC2.php'); /* MySQL and endpoint configuration */ $config = array( /* db */ 'db_host' => 'localhost', /* optional, default is localhost */ 'db_name' => 'sparql', 'db_user' => 'sparql', 'db_pwd' => '58d9da1555cc2467b6bd134ae13761a9', /* store name */ 'store_name' => 'Muninn WW1 Sparql Store, data@muninn-project.org', 'store_name' => 'Muninn', /* 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' => '4w5y25y265y2y6', /* optional */ 'endpoint_max_limit' => 20000, /* optional */ ); /* instantiation */ $ep = ARC2::getStoreEndpoint($config); if (!empty($_POST)) { error_log("query " . $_POST["query"]); } if (!empty($_GET)) { $_GET["query"] = " PREFIX rdf: