fr.inria.corese.kgram.core.Query.isUpdate()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(187)

本文整理了Java中fr.inria.corese.kgram.core.Query.isUpdate方法的一些代码示例,展示了Query.isUpdate的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.isUpdate方法的具体详情如下:
包路径:fr.inria.corese.kgram.core.Query
类名称:Query
方法名:isUpdate

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()) {

相关文章