Skip to content
Snippets Groups Projects
Commit 8c02c800 authored by Stein Magne Bjorklund's avatar Stein Magne Bjorklund
Browse files

Revert 0c67dc17 - Class Endpoint.php expect parameters

We cannot just remove data from common.inc.php
The class expect and try to use it throwing errors/warning every
time the application load.
parent 9500ac15
No related branches found
No related tags found
1 merge request!16Resolve "Introduce PSR-4 autoloading"
......@@ -8,7 +8,7 @@ class Endpoint
private $sparqlUrl;
private $params;
public function __construct($sparqlUrl, $params)
public function __construct($sparqlUrl, array $params)
{
$this->sparqlUrl = $sparqlUrl;
$this->params = $params;
......@@ -29,7 +29,7 @@ class Endpoint
} elseif ($output == 'rdf') {
$accept = 'application/rdf+xml';
}
$aux = "";
$modified = 0;
$now = time();
$cacheFile = "";
......
......@@ -5,8 +5,7 @@ $conf['home'] = LOADSPEAKR_ROOT . '/';
$conf['output']['select'] = 'json';
$conf['output']['ask'] = 'json';
$conf['output']['describe'] = 'rdf';
//$conf['endpointParams']['config']['show_inline'] = 0;
//$conf['endpointParams']['config']['named_graph'] = '';
$conf['endpointParams']['config'] = [];
//ALternative endpoints
$conf['endpoint']['dbpedia'] = 'http://dbpedia.org/sparql';
$conf['endpoint']['data_gov'] = 'http://services.data.gov/sparql';
......
......@@ -36,7 +36,6 @@ if ($conf['debug']) {
$results = array();
$firstResults = array();
$endpoints = array();
$endpoints['local'] = new Endpoint($conf['endpoint']['local'], $conf['endpointParams']['config']);
$acceptContentType = Utils::getBestContentType($_SERVER['HTTP_ACCEPT'], $conf['http_accept']);
$extension = Utils::getExtension($acceptContentType, $conf['http_accept']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment