作者热门文章
- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中xdi2.core.syntax.XDIStatement.toString()
方法的一些代码示例,展示了XDIStatement.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XDIStatement.toString()
方法的具体详情如下:
包路径:xdi2.core.syntax.XDIStatement
类名称: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);
}
我是一名优秀的程序员,十分优秀!