com.hp.hpl.jena.graph.Graph.remove()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(81)

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

Graph.remove介绍

[英]Remove all triples that match by find(s, p, o)
[中]删除按查找匹配的所有三元组(s、p、o)

代码示例

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override
public void remove(Node s, Node p, Node o)
{ graph.remove(s, p, o) ; }

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
public void remove(Node s, Node p, Node o)
{
  base.remove(s,p,o) ;
  getEventManager().notifyEvent(this, GraphEvents.remove(s, p, o) ) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
public Model removeAll( Resource s, Property p, RDFNode o )
{
  getGraph().remove( asNode( s ), asNode( p ), asNode( o ) );
  return this;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
@Deprecated
public void remove( Node s, Node p, Node o )
  {
  BaseInfGraph g = (BaseInfGraph) graph;
  g.getRawGraph().remove( s, p, o );
  g.discardState();
  g.rebind();
  manager.notifyEvent( graph, GraphEvents.remove( s, p, o ) );
  }

代码示例来源:origin: org.fcrepo/fcrepo-kernel

@Override
protected Triple computeNext() {
  if (source.hasNext()) {
    Triple next = source.next();
    // we only want to return this element if it is not common
    // to the two inputs
    while (common.contains(next) || notCommon.contains(next)) {
      // it was common, so shift it to common
      if (notCommon.contains(next)) {
        notCommon.remove(next.getSubject(), next.getPredicate(), next.getObject());
        common.add(next);
      }
      // move onto the next candidate
      if (!source.hasNext()) {
        return endOfData();
      }
      next = source.next();
    }
    // it was not common so return it
    return next;
  }
  return endOfData();
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-core

@Override
public void remove( Node s, Node p, Node o )
{
  getRawGraph().remove( s, p, o );
  discardState();
  rebind();
  getEventManager().notifyEvent( this, GraphEvents.remove( s, p, o ) );
}

相关文章