org.apache.jena.graph.Graph.isClosed()方法的使用及代码示例

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

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

Graph.isClosed介绍

[英]Answer true iff .close() has been called on this Graph.
[中]回答正确。已在此图形上调用close()。

代码示例

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

@Override
public boolean isClosed()
{
  return graph.isClosed() ;
}

代码示例来源:origin: vivo-project/Vitro

@Override
public boolean isClosed() {
  return graph.isClosed();
}

代码示例来源:origin: vivo-project/Vitro

@Override
public boolean isClosed() {
  return g.isClosed();
}

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

@Override
public boolean isClosed()
{ return base.isClosed(); }

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

@Override
public boolean isClosed()
{ return graph.isClosed(); }

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

@Override
public boolean isClosed()
{ return graph.isClosed(); }

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

@Override
public boolean isClosed()
{ return base.isClosed(); }

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

@Override
public boolean isClosed() {
  return holder.getBaseItem().isClosed();
}

代码示例来源:origin: vivo-project/Vitro

@Override
public boolean isClosed() {
  try {
    regenerateIfClosed();
    return g.isClosed();
  } catch (Exception e) {
    regenerate();
    return g.isClosed();
  }
}

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

public void testCloseSetsIsClosed()
{
  Graph g = getGraph();
  assertFalse( "unclosed Graph shouild not be isClosed()", g.isClosed() );
  g.close();
  assertTrue( "closed Graph should be isClosed()", g.isClosed() );
}

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

public void testCloseSetsIsClosed()
{
  Graph g = getGraph();
  assertFalse( "unclosed Graph shouild not be isClosed()", g.isClosed() );
  g.close();
  assertTrue( "closed Graph should be isClosed()", g.isClosed() );
}

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

@Override
final public void cleanUp() {
  for (Graph g : graphList) {
    if (!g.isClosed()) {
      GraphHelper.txnBegin(g);
      g.close();
      GraphHelper.txnCommit(g);
    }
    afterClose(g);
  }
  graphList.clear();
}

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

@Override
final public void cleanUp() {
  for (Graph g : graphList) {
    if (!g.isClosed()) {
      GraphHelper.txnBegin(g);
      g.close();
      GraphHelper.txnCommit(g);
    }
    afterClose(g);
  }
  graphList.clear();
}

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

@ContractTest
public void testIsClosed()
{
  Graph g = producer.newInstance();
  assertFalse("Graph created in closed state", g.isClosed());
  txnBegin(g);
  g.close();
  txnCommit(g);
  txnBegin(g);
  assertTrue("Graph does not report closed state after close called",
      g.isClosed());
  txnRollback(g);
}

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

@ContractTest
public void testIsClosed()
{
  Graph g = producer.newInstance();
  assertFalse("Graph created in closed state", g.isClosed());
  txnBegin(g);
  g.close();
  txnCommit(g);
  txnBegin(g);
  assertTrue("Graph does not report closed state after close called",
      g.isClosed());
  txnRollback(g);
}

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

"S P O; S P2 O2; S3 P P3");
graph.getEventManager().register(GL);
assertFalse("Graph was constructed closed", graph.isClosed());
assertTrue("Graph should be closed", graph.isClosed());

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

"S P O; S P2 O2; S3 P P3");
graph.getEventManager().register(GL);
assertFalse("Graph was constructed closed", graph.isClosed());
assertTrue("Graph should be closed", graph.isClosed());

相关文章