returning empty result when SPARQL query cannot be parsed.
This commit is contained in:
parent
9b8ebb1214
commit
cf7a20a30f
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
package edu.cornell.mannlib.vitro.webapp.dao.jena;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
@ -264,6 +265,7 @@ public class ObjectPropertyStatementDaoJena extends JenaBaseDao implements Objec
|
|||
} catch(Throwable th){
|
||||
log.error("Could not create SPARQL query for query string. " + th.getMessage());
|
||||
log.error(queryString);
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
QuerySolutionMap bindings = new QuerySolutionMap();
|
||||
|
|
Loading…
Add table
Reference in a new issue