org.apache.clerezza.commons.rdf.Graph.clear()方法的使用及代码示例

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

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

Graph.clear介绍

暂无

代码示例

代码示例来源:origin: org.apache.clerezza.commons-rdf/commons-rdf-impl-utils

@Override
public void clear() {
  wrapped.clear();
}

代码示例来源:origin: org.apache.clerezza/rdf.core

@Override
  public Object run() {
    graph.clear();
    return null;
  }
});

代码示例来源:origin: apache/clerezza

@Override
  public Object run() {
    graph.clear();
    return null;
  }
});

代码示例来源:origin: apache/clerezza

@Override
public void clear() {
  wrapped.clear();
}

代码示例来源:origin: org.apache.clerezza/rdf.core.test

@Override
public void clear() {
  wrapped.clear();
}

代码示例来源:origin: org.apache.clerezza/rdf.core

@Override
public void clear() {
  checkWrite();
  wrapped.clear();
}

代码示例来源:origin: apache/stanbol

@Override
public final void removeAll() throws YardException {
  final Lock writeLock = writeLockGraph();
  try {
    graph.clear();
  } finally {
    writeLock.unlock();
  }
}
@Override

代码示例来源:origin: apache/clerezza

@Override
public void clear() {
  checkWrite();
  wrapped.clear();
}

代码示例来源:origin: org.apache.clerezza/rdf.utils

newTriples.clear();
newTriples.clear();

代码示例来源:origin: apache/clerezza

newTriples.clear();
newTriples.clear();

代码示例来源:origin: apache/clerezza

@Test
public void testRemoveAllTriples() {
  Graph graph = getEmptyGraph();
  Assert.assertEquals(0, graph.size());
  graph.add(new TripleImpl(uriRef1, uriRef2, uriRef3));
  graph.add(new TripleImpl(uriRef2, uriRef3, uriRef4));
  Assert.assertEquals(2, graph.size());
  graph.clear();
  Assert.assertEquals(0, graph.size());
}

代码示例来源:origin: org.apache.clerezza/rdf.core.test

@Test
public void testRemoveAllTriples() {
  Graph graph = getEmptyGraph();
  Assert.assertEquals(0, graph.size());
  graph.add(new TripleImpl(uriRef1, uriRef2, uriRef3));
  graph.add(new TripleImpl(uriRef2, uriRef3, uriRef4));
  Assert.assertEquals(2, graph.size());
  graph.clear();
  Assert.assertEquals(0, graph.size());
}

代码示例来源:origin: apache/stanbol

log.debug("Metadata of the content will replace old ones.", this);
} else {
  metadataGraph.clear();
  log.debug("Content metadata will be appended to the existing ones.", this);

相关文章