gpt4 book ai didi

xdi2.core.syntax.XDIStatement.toString()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 02:41:05 26 4
gpt4 key购买 nike

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

XDIStatement.toString介绍

暂无

代码示例

代码示例来源:origin: projectdanube/xdi2

@Override
public String toString() {
  return this.getXDIStatement().toString();
}

代码示例来源:origin: projectdanube/xdi2

@Override
public String toString() {
  return this.getXDIStatement().toString();
}

代码示例来源:origin: projectdanube/xdi2

} else {
  throw new Xdi2RuntimeException("Invalid statement: " + XDIstatement.toString() + " (" + XDIstatement.getClass().getName() + ")");

代码示例来源:origin: projectdanube/xdi2

private static void assertEqualsGraphs(Graph graph1, Graph graph2) throws Exception {
  assertEquals(graph1.getRootContextNode().getAllStatementCount(), graph2.getRootContextNode().getAllStatementCount());
  assertEquals(graph1.getRootContextNode().getAllContextNodeCount(), graph2.getRootContextNode().getAllContextNodeCount());
  assertEquals(graph1.getRootContextNode().getAllRelationCount(), graph2.getRootContextNode().getAllRelationCount());
  assertEquals(graph1.getRootContextNode().getAllLiteralCount(), graph2.getRootContextNode().getAllLiteralCount());
  Iterator<Statement> s1 = graph1.getRootContextNode().getAllStatements();
  Iterator<Statement> s2 = graph2.getRootContextNode().getAllStatements();
  while (s1.hasNext()) { XDIStatement s = s1.next().getXDIStatement(); assertTrue(s.toString(), graph2.containsStatement(s)); }
  while (s2.hasNext()) { XDIStatement s = s2.next().getXDIStatement(); assertTrue(s.toString(), graph1.containsStatement(s)); }
  assertEquals(graph1, graph2);
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com