Package com.inrupt.rdf.wrapping.commons
Class WrapperGraph
java.lang.Object
com.inrupt.rdf.wrapping.commons.WrapperGraph
- All Implemented Interfaces:
AutoCloseable
,Graph
,GraphLike<Triple>
A wrapper class for
Graph
objects.-
Constructor Summary
ModifierConstructorDescriptionprotected
WrapperGraph
(Graph original) Create a new graph wrapper object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) void
void
clear()
boolean
contains
(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) boolean
void
remove
(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) void
long
size()
stream()
stream
(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.rdf.api.Graph
close, getTriples, getTriples, iterate, iterate
-
Constructor Details
-
WrapperGraph
Create a new graph wrapper object.- Parameters:
original
- The original graph to be wrapped, may not benull
-
-
Method Details
-
add
-
add
-
contains
-
contains
-
remove
-
remove
-
clear
public void clear() -
size
public long size() -
stream
-
stream
-