本文整理了Java中org.apache.jena.graph.Graph.dependsOn()
方法的一些代码示例,展示了Graph.dependsOn()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Graph.dependsOn()
方法的具体详情如下:
包路径:org.apache.jena.graph.Graph
类名称:Graph
方法名:dependsOn
[英]true if this graph's content depends on the other graph. May be pessimistic (ie return true if it's not sure). Typically true when a graph is a composition of other graphs, eg union.
[中]如果此图的内容依赖于其他图,则为true。可能是悲观的(如果不确定,则返回true)。当一个图是其他图的组合(如并集)时,通常为真。
代码示例来源:origin: apache/jena
@Override
public boolean dependsOn(Graph other)
{
return graph.dependsOn(other) ;
}
代码示例来源:origin: apache/jena
/**
Generic dependsOn, true iff it depends on either of the subgraphs.
*/
@Override
public boolean dependsOn( Graph other )
{ return other == this || L.dependsOn( other ) || R.dependsOn( other ); }
代码示例来源:origin: org.apache.jena/jena-core
/**
Generic dependsOn, true iff it depends on either of the subgraphs.
*/
@Override
public boolean dependsOn( Graph other )
{ return other == this || L.dependsOn( other ) || R.dependsOn( other ); }
代码示例来源:origin: apache/jena
@Override
public boolean dependsOn( Graph other )
{ return base.dependsOn( other ); }
代码示例来源:origin: vivo-project/Vitro
@Override
public boolean dependsOn(Graph arg0) {
return g.dependsOn(arg0);
}
代码示例来源:origin: org.apache.jena/jena-core
@Override
public boolean dependsOn( Graph other )
{ return base.dependsOn( other ); }
代码示例来源:origin: vivo-project/Vitro
@Override
public boolean dependsOn(Graph arg0) {
return graph.dependsOn(arg0);
}
代码示例来源:origin: vivo-project/Vitro
@Override
public boolean dependsOn(Graph arg0) {
try {
regenerateIfClosed();
return g.dependsOn(arg0);
} catch (Exception e) {
regenerate();
return g.dependsOn(arg0);
}
}
代码示例来源:origin: apache/jena
@Override
public boolean dependsOn(final Graph other) throws ReadDeniedException,
AuthenticationRequiredException {
checkRead();
if (other.equals(holder.getBaseItem())) {
return true;
}
return holder.getBaseItem().dependsOn(other);
}
代码示例来源:origin: org.apache.jena/jena-core
@ContractTest
public void testDependsOn()
{
Graph g = producer.newInstance();
Graph[] depGraphs = producer.getDependsOn(g);
if (depGraphs != null)
{
for (Graph dg : depGraphs)
{
assertTrue(
String.format("Graph %s should depend upon %s", g, dg),
g.dependsOn(dg));
}
}
depGraphs = producer.getNotDependsOn(g);
if (depGraphs != null)
{
for (Graph dg : depGraphs)
{
assertFalse(String.format("Graph %s should not depend upon %s",
g, dg), g.dependsOn(dg));
}
}
}
代码示例来源:origin: apache/jena
@ContractTest
public void testDependsOn()
{
Graph g = producer.newInstance();
Graph[] depGraphs = producer.getDependsOn(g);
if (depGraphs != null)
{
for (Graph dg : depGraphs)
{
assertTrue(
String.format("Graph %s should depend upon %s", g, dg),
g.dependsOn(dg));
}
}
depGraphs = producer.getNotDependsOn(g);
if (depGraphs != null)
{
for (Graph dg : depGraphs)
{
assertFalse(String.format("Graph %s should not depend upon %s",
g, dg), g.dependsOn(dg));
}
}
}
代码示例来源:origin: apache/jena
public void testEmptyGraph() {
Graph m = new MultiUnion();
Graph g0 = graphWith( "x p y");
assertEquals( "Empty model should have size zero", 0, m.size() );
assertFalse( "Empty model should not contain another graph", m.dependsOn( g0 ) );
}
代码示例来源:origin: org.apache.jena/jena-core
public void testEmptyGraph() {
Graph m = new MultiUnion();
Graph g0 = graphWith( "x p y");
assertEquals( "Empty model should have size zero", 0, m.size() );
assertFalse( "Empty model should not contain another graph", m.dependsOn( g0 ) );
}
内容来源于网络,如有侵权,请联系作者删除!