Skip to content
Permalink
Browse files

Trace WHERE query construction

Signed-off-by: Andrew Berezovskyi <andriib@kth.se>
  • Loading branch information...
berezovskyi committed Apr 18, 2019
1 parent 5154831 commit 112e45ef9afcd0a737cfb09bcb1d6b71c92bbff9
@@ -15,6 +15,7 @@
* #L%
*/

import com.google.common.base.Strings;
import org.apache.jena.graph.NodeFactory;
import org.apache.jena.graph.Triple;
import org.apache.jena.query.Query;
@@ -296,6 +297,11 @@ public Model getResources(final URI namedGraph, final String prefixes, final Str
.addGraph("?g", sparqlWhereQuery);
}

if (log.isTraceEnabled() && !Strings.isNullOrEmpty(where)) {
log.trace("SPARQL WHERE query for oslc.where='{}': {}", where,
sparqlWhereQuery.buildString());
}

Query describeQuery = describeBuilder.build() ;
String describeQueryString = describeQuery.toString();
final QueryExecution queryExecution = queryExecutor.prepareSparqlQuery(describeQueryString);

0 comments on commit 112e45e

Please sign in to comment.
You can’t perform that action at this time.