Package com.inrupt.rdf.wrapping.commons
Class WrapperDataset
java.lang.Object
com.inrupt.rdf.wrapping.commons.WrapperDataset
- All Implemented Interfaces:
AutoCloseable
,Dataset
,GraphLike<Quad>
- Direct Known Subclasses:
RDFSource
A wrapper class for
Dataset
objects.-
Constructor Summary
ModifierConstructorDescriptionprotected
WrapperDataset
(Dataset original) Create a new dataset wrapper object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(BlankNodeOrIRI graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object) void
void
clear()
boolean
contains
(Optional<BlankNodeOrIRI> graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object) boolean
getGraph()
getGraph
(BlankNodeOrIRI graphName) void
remove
(Optional<BlankNodeOrIRI> graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object) void
long
size()
stream()
stream
(Optional<BlankNodeOrIRI> graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
-
Constructor Details
-
WrapperDataset
Create a new dataset wrapper object.- Parameters:
original
- The original dataset to be wrapped, may not benull
-
-
Method Details
-
add
-
add
-
contains
-
contains
public boolean contains(Optional<BlankNodeOrIRI> graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object) -
getGraph
-
getGraph
-
getGraphNames
- Specified by:
getGraphNames
in interfaceDataset
-
remove
-
remove
public void remove(Optional<BlankNodeOrIRI> graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object) -
clear
public void clear() -
size
public long size() -
stream
-
stream
public Stream<? extends Quad> stream(Optional<BlankNodeOrIRI> graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
-