Merge branch 'develop' of git://github.com/vivo-project/Vitro into develop
This commit is contained in:
commit
17155d4f21
2 changed files with 5 additions and 1 deletions
|
@ -96,6 +96,7 @@ public class SparqlQueryController extends FreemarkerHttpServlet {
|
|||
SimplePermission.USE_SPARQL_QUERY_PAGE.ACTION)) {
|
||||
return;
|
||||
}
|
||||
resp.addHeader("X-XSS-Protection", "0");
|
||||
if (req.getParameterMap().containsKey("query")) {
|
||||
respondToQuery(req, resp);
|
||||
} else {
|
||||
|
|
|
@ -106,7 +106,10 @@ public class JenaExportController extends BaseEditController {
|
|||
String formatParam = vreq.getParameter("format");
|
||||
String subgraphParam = vreq.getParameter("subgraph");
|
||||
String assertedOrInferredParam = vreq.getParameter("assertedOrInferred");
|
||||
StringBuilder ontologyURI = new StringBuilder(vreq.getParameter("ontologyURI"));
|
||||
StringBuilder ontologyURI = new StringBuilder();
|
||||
if (vreq.getParameter("ontologyURI") != null) {
|
||||
ontologyURI.append(vreq.getParameter("ontologyURI"));
|
||||
}
|
||||
|
||||
Model model = null;
|
||||
OntModel ontModel = ModelFactory.createOntologyModel();
|
||||
|
|
Loading…
Add table
Reference in a new issue