Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ci authored Nov 18, 2016
1 parent ae50716 commit 0ebe247
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ public Model enrichWithTemplateSPARQL(Model model, Template template, HashMap<St
// Executing the enrichement.
QueryExecution e1 = null;
try{
e1 = QueryExecutionFactory.sparqlService(endpoint, query);
e1 = QueryExecutionFactory.sparql
(endpoint, query);
QueryEngineHTTP qeHttp = (QueryEngineHTTP) qe;
qeHttp.setModelContentType("application/rdf+xml");
Model resModel1 = e1.execConstruct();
enrichment.add(resModel1);
model.add(enrichment);
Expand Down Expand Up @@ -275,4 +278,4 @@ private String getFullStackTrace(Exception e) {
String exceptionAsString = sw.toString();
return exceptionAsString;
}
}
}

0 comments on commit 0ebe247

Please sign in to comment.