java.lang.Object
org.apache.jena.graph.impl.WrappedGraph
org.apache.jena.graph.impl.GraphPlain
- All Implemented Interfaces:
Graph,GraphWithPerform
A version of Graph that enforces term equality even if the base graph uses value-indexing.
With value-indexing, one value may have several object terms that represent it when the graph store
RDF terms, and but matches by value.
This only affects the object field of a triple in RDF but in "generalized RDF" literals can appear in any triple slot.
-
Field Summary
Fields inherited from interface org.apache.jena.graph.Graph
emptyGraph -
Method Summary
Modifier and TypeMethodDescriptionbooleanAnswer true iff the graph contains a triple matching (s, p, o).booleanAnswer true iff the graph contains a triple that t matches; t may be fluid.Returns an iterator over Triples matching a pattern.Returns an iterator over all the Triples that match the triple pattern.static Graphplain()Deprecated.From Jena5, graphs are all "same term".static GraphDeprecated.From Jena5, graphs are all "same term".voidRemove all triples that match by find(s, p, o)toString()Methods inherited from class org.apache.jena.graph.impl.WrappedGraph
add, clear, close, delete, dependsOn, getCapabilities, getEventManager, getPrefixMapping, getTransactionHandler, getWrapped, isClosed, isEmpty, isIsomorphicWith, performAdd, performDelete, size
-
Method Details
-
plain
Deprecated.From Jena5, graphs are all "same term".Return a graph that only has term-equality and storage in thebasegraph. Update affects the base graph. -
plain
Deprecated.From Jena5, graphs are all "same term".Return a graph that only has term-equality. -
remove
Description copied from interface:GraphRemove all triples that match by find(s, p, o)- Specified by:
removein interfaceGraph- Overrides:
removein classWrappedGraph
-
contains
Description copied from interface:GraphAnswer true iff the graph contains a triple that t matches; t may be fluid.- Specified by:
containsin interfaceGraph- Overrides:
containsin classWrappedGraph
-
contains
Description copied from interface:GraphAnswer true iff the graph contains a triple matching (s, p, o). s/p/o may be concrete or fluid. Equivalent to find(s,p,o).hasNext, but an implementation is expected to optimise this in easy cases.- Specified by:
containsin interfaceGraph- Overrides:
containsin classWrappedGraph
-
find
Description copied from interface:GraphReturns an iterator over all the Triples that match the triple pattern.- Specified by:
findin interfaceGraph- Overrides:
findin classWrappedGraph- Parameters:
m- a Triple encoding the pattern to look for- Returns:
- an iterator of all triples in this graph that match m
-
find
Description copied from interface:GraphReturns an iterator over Triples matching a pattern.- Specified by:
findin interfaceGraph- Overrides:
findin classWrappedGraph- Returns:
- an iterator of triples in this graph matching the pattern.
-
toString
-