Skip to content
Snippets Groups Projects
Commit d9f702bc authored by alvaro's avatar alvaro
Browse files

Show path of query file on debug mode

parent 8acece2c
No related branches found
No related tags found
No related merge requests found
...@@ -234,8 +234,14 @@ class Utils{ ...@@ -234,8 +234,14 @@ class Utils{
case 'rdf': case 'rdf':
$ser = ARC2::getRDFXMLSerializer(); $ser = ARC2::getRDFXMLSerializer();
break; break;
default:
$ser = null;
} }
if($ser != null){
$doc = $ser->getSerializedTriples($triples); $doc = $ser->getSerializedTriples($triples);
}else{
$doc = var_export($data, true);
}
return $doc; return $doc;
} }
...@@ -435,7 +441,8 @@ class Utils{ ...@@ -435,7 +441,8 @@ class Utils{
} }
} }
if($conf['debug']){ if($conf['debug']){
echo "$modelFile (against ".$e->getSparqlUrl().")\n-------------------------------------------------\n"; echo "\n-------------------------------------------------\nIn ".getcwd()."\n";
echo "$modelFile (against ".$e->getSparqlUrl().")\n-------------------------------------------------\n\n";
echo $query; echo $query;
} }
trigger_error("Running query from ".$modelFile." on endpoint ".$e->getSparqlURL(), E_USER_NOTICE); trigger_error("Running query from ".$modelFile." on endpoint ".$e->getSparqlURL(), E_USER_NOTICE);
......
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