本文整理了Java中fr.inria.corese.kgram.core.Query.isUpdate
方法的一些代码示例,展示了Query.isUpdate
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.isUpdate
方法的具体详情如下:
包路径:fr.inria.corese.kgram.core.Query
类名称:Query
方法名:isUpdate
暂无
代码示例来源:origin: fr.inria.corese/kgram
public boolean isSelect(){
return ! (isConstruct() || isUpdate() || isDelete());
}
代码示例来源:origin: Wimmics/corese
public Mappings sparqlQuery(Query q, Mapping map) throws EngineException {
if (q.isUpdate()) {
throw new EngineException("Unauthorized Update in SPARQL Query:\n" + q.getAST().toString());
}
return eval(q, map);
}
代码示例来源:origin: Wimmics/corese
public Mappings sparqlUpdate(String squery) throws EngineException {
Query q = compile(squery, null);
if (!q.isUpdate()) {
throw new EngineException("Unauthorized Query in SPARQL Update:\n" + squery);
}
return query(q);
}
代码示例来源:origin: Wimmics/corese
/**
* ****************************************
*
* Secure Query OR Update
*
*****************************************
*/
public Mappings sparqlQuery(String squery) throws EngineException {
Query q = compile(squery, null);
if (q.isUpdate()) {
throw new EngineException("Unauthorized Update in SPARQL Query:\n" + squery);
}
return query(q);
}
代码示例来源:origin: Wimmics/corese
void fillTable(Mappings map) {
Query q = map.getQuery();
List<fr.inria.corese.kgram.api.core.Node> vars = q.getSelect();
if (q.isUpdate() && map.size() > 0){
vars = map.get(0).getQueryNodeList();
代码示例来源:origin: Wimmics/corese
if (q.isUpdate() || q.isRule()) {
log(Log.UPDATE, q);
map = synUpdate(q, m, ds);
代码示例来源:origin: fr.inria.corese/corese-core
return process(map, g, getTransformation(constructTransform));
else if (map.getQuery().isUpdate() && graph != null){
return process(map, graph, getTransformation(constructTransform));
代码示例来源:origin: Wimmics/corese
return process(map, g, getTransformation(constructTransform));
else if (map.getQuery().isUpdate() && graph != null){
return process(map, graph, getTransformation(constructTransform));
代码示例来源:origin: fr.inria.corese/compiler
Query qq = sub.getQuery();
qq.setFun(true);
if (qq.isConstruct() || qq.isUpdate()) {
代码示例来源:origin: Wimmics/corese
Query qq = sub.getQuery();
qq.setFun(true);
if (qq.isConstruct() || qq.isUpdate()) {
内容来源于网络,如有侵权,请联系作者删除!