Allow with form of SPARQL
This commit is contained in:
parent
5c543982f7
commit
ff71245de1
1 changed files with 3 additions and 3 deletions
|
@ -82,11 +82,11 @@ public class SparqlUpdateApiController extends VitroApiServlet {
|
|||
throw new ParseException("No 'update' parameter.");
|
||||
}
|
||||
|
||||
if (!StringUtils.containsIgnoreCase(update, "GRAPH")) {
|
||||
if (!StringUtils.containsIgnoreCase(update, "GRAPH") && !StringUtils.containsIgnoreCase(update, "WITH")) {
|
||||
if (log.isDebugEnabled()) {
|
||||
log.debug("No GRAPH uri in '" + update + "'");
|
||||
log.debug("No GRAPH or WITH uri in '" + update + "'");
|
||||
}
|
||||
throw new ParseException("SPARQL update must specify a GRAPH URI.");
|
||||
throw new ParseException("SPARQL update must specify a GRAPH ( or WITH) URI.");
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue