From a8c56937150ece2a0da8ad61b8a546de5217b0cd Mon Sep 17 00:00:00 2001 From: Alvaro Graves <alvaro@graves.cl> Date: Wed, 25 Jan 2012 22:10:59 -0800 Subject: [PATCH] Tiny improvement in debugging output --- classes/Endpoint.php | 4 ++++ classes/Utils.php | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/Endpoint.php b/classes/Endpoint.php index d05c3865..aa2cff11 100644 --- a/classes/Endpoint.php +++ b/classes/Endpoint.php @@ -60,6 +60,10 @@ class Endpoint{ return $result; } + public function getSparqlURL(){ + return $this->sparqlUrl; + } + } ?> diff --git a/classes/Utils.php b/classes/Utils.php index 7338ca06..cbeac440 100644 --- a/classes/Utils.php +++ b/classes/Utils.php @@ -400,9 +400,10 @@ class Utils{ } if($conf['debug']){ + echo "$modelFile\n------------------\n"; echo $query; } - trigger_error("Running query on endpoint", E_USER_NOTICE); + trigger_error("Running query from ".$modelFile." on endpoint ".$e->getSparqlURL(), E_USER_NOTICE); $aux = $e->query($query, Utils::getResultsType($query)); if($modelFile != $lodspk['type']){ if(!isset($rPointer[$strippedModelFile])){ -- GitLab