public class JenaGraph
extends com.hp.hpl.jena.graph.impl.GraphBase
implements com.hp.hpl.jena.graph.Graph
Graph
basing
on a TripleCollection
. A JenaGraph
can be instanciated using mutable TripleCollection
s
(i.e. MGraph
S) as well as immutable ones (i.e. Graph
),
an attempt to add or remove triples to a JenaGraph
based on
an immutable TripleCollection
will result in
a UnsupportedOperationException
being thrown by the
underlying TripleCollection
.
Typically an instance of this class is passed as argument
to ModelFactory.createModelForGraph(com.hp.hpl.jena.graph.Graph)
to
get a Model
.Constructor and Description |
---|
JenaGraph(TripleCollection graph) |
Modifier and Type | Method and Description |
---|---|
protected com.hp.hpl.jena.util.iterator.ExtendedIterator |
graphBaseFind(com.hp.hpl.jena.graph.TripleMatch m) |
void |
performAdd(com.hp.hpl.jena.graph.Triple triple) |
void |
performDelete(com.hp.hpl.jena.graph.Triple triple) |
add, checkOpen, clear, close, contains, contains, containsByFind, createPrefixMapping, createStatisticsHandler, delete, dependsOn, find, find, forTestingOnly_graphBaseFind, getBulkUpdateHandler, getCapabilities, getEventManager, getPrefixMapping, getStatisticsHandler, getTransactionHandler, graphBaseContains, graphBaseFind, graphBaseSize, isClosed, isEmpty, isIsomorphicWith, notifyAdd, notifyDelete, remove, size, toString, toString
public JenaGraph(TripleCollection graph)
public void performAdd(com.hp.hpl.jena.graph.Triple triple)
performAdd
in interface com.hp.hpl.jena.graph.impl.GraphWithPerform
performAdd
in class com.hp.hpl.jena.graph.impl.GraphBase
public void performDelete(com.hp.hpl.jena.graph.Triple triple)
performDelete
in interface com.hp.hpl.jena.graph.impl.GraphWithPerform
performDelete
in class com.hp.hpl.jena.graph.impl.GraphBase
protected com.hp.hpl.jena.util.iterator.ExtendedIterator graphBaseFind(com.hp.hpl.jena.graph.TripleMatch m)
graphBaseFind
in class com.hp.hpl.jena.graph.impl.GraphBase
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.