本文整理了Java中org.apache.jena.graph.Factory
类的一些代码示例,展示了Factory
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Factory
类的具体详情如下:
包路径:org.apache.jena.graph.Factory
类名称:Factory
[英]A factory class for creating Graphs.
[中]用于创建图形的工厂类。
代码示例来源:origin: apache/jena
/** Create a graph - always the Jena default graph type */
public static Graph createJenaDefaultGraph()
{
return Factory.createDefaultGraph() ;
}
代码示例来源:origin: apache/jena
/**
Answer a memory-based Graph.
*/
public static Graph createDefaultGraph()
{ return Factory.createGraphMem( ); }
代码示例来源:origin: apache/jena
private Graph getRootModel( Assembler a, Resource root, Mode mode )
{
Resource r = getUniqueResource( root, JA.rootModel );
return r == null ? Factory.empty() : a.openModel( r, mode ).getGraph();
}
代码示例来源:origin: org.apache.jena/jena-core
private Graph getRootModel( Assembler a, Resource root, Mode mode )
{
Resource r = getUniqueResource( root, JA.rootModel );
return r == null ? Factory.empty() : a.openModel( r, mode ).getGraph();
}
代码示例来源:origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl
/**
* A memory graph with no reification.
*/
public Graph createDefaultGraph() {
return Factory.createDefaultGraph();
}
代码示例来源:origin: apache/jena
/** Create a graph that is a Jena memory graph
* @see #createDefaultGraph
*/
public static Graph createGraphMem()
{
return Factory.createGraphMem() ;
}
代码示例来源:origin: ch.epfl.bluebrain.nexus.org.topbraid/shacl
/**
* Creates a memory Graph with no reification.
* @return a new memory graph
*/
public static Graph createMemoryGraph() {
return Factory.createDefaultGraph();
}
代码示例来源:origin: org.apache.jena/jena-core
/**
Answer a memory-based Graph.
*/
public static Graph createDefaultGraph()
{ return Factory.createGraphMem( ); }
代码示例来源:origin: TopQuadrant/shacl
/**
* Creates a memory Graph with no reification.
* @return a new memory graph
*/
public static Graph createMemoryGraph() {
return Factory.createDefaultGraph();
}
代码示例来源:origin: apache/jena
public static Graph readGraph(String uri, int limit)
{
Graph g = Factory.createGraphMem() ;
readUtil(g, uri, limit) ;
return g ;
}
代码示例来源:origin: TopQuadrant/shacl
/**
* A memory graph with no reification.
*/
public Graph createDefaultGraph() {
return Factory.createDefaultGraph();
}
代码示例来源:origin: apache/jena
/**
* Constructor.
* @param graph the inference graph which owns this context.
*/
public BFRuleContext(ForwardRuleInfGraphI graph) {
this.graph = graph;
env = new BindingStack();
stack = new ArrayList<>();
pending = new ArrayList<>();
pendingCache = Factory.createGraphMem();
}
代码示例来源:origin: com.github.galigator.openllet/openllet-jena
public PelletInfGraph(final KnowledgeBase kb, final PelletReasoner pellet, final GraphLoader loader)
{
this(kb, Factory.createDefaultGraph(), pellet, loader);
}
代码示例来源:origin: apache/jena
/**
Answer a fresh Model with the default specification.
*/
public static Model createDefaultModel()
{ return new ModelCom( Factory.createGraphMem( ) ); }
代码示例来源:origin: Galigator/openllet
public PelletInfGraph(final KnowledgeBase kb, final PelletReasoner pellet, final GraphLoader loader)
{
this(kb, Factory.createDefaultGraph(), pellet, loader);
}
代码示例来源:origin: apache/jena
/**
Answer a new graph which is the reachable subgraph from <code>node</code>
in <code>graph</code> with the terminating condition given by the
TripleBoundary passed to the constructor.
*/
public Graph extract( Node node, Graph graph )
{ return extractInto( Factory.createGraphMem(), node, graph ); }
代码示例来源:origin: Galigator/openllet
public PelletInfGraph(final KnowledgeBase kb, final PelletReasoner pellet, final GraphLoader loader)
{
this(kb, Factory.createDefaultGraph(), pellet, loader);
}
代码示例来源:origin: org.apache.jena/jena-core
/**
Answer a new graph which is the reachable subgraph from <code>node</code>
in <code>graph</code> with the terminating condition given by the
TripleBoundary passed to the constructor.
*/
public Graph extract( Node node, Graph graph )
{ return extractInto( Factory.createGraphMem(), node, graph ); }
代码示例来源:origin: apache/jena
public void testFactory()
{
Factory.createDefaultGraph();
}
}
代码示例来源:origin: org.apache.jena/jena-core
/**
Answer a fresh Model with the default specification.
*/
public static Model createDefaultModel()
{ return new ModelCom( Factory.createGraphMem( ) ); }
内容来源于网络,如有侵权,请联系作者删除!