Example usage for Java org.apache.commons.rdf.api Dataset fields, constructors, methods, implement or subclass
The text is from its open source code.
void | add(Quad quad) Add a quad to the dataset, possibly mapping any of the components of the Quad to those supported by this dataset. |
void | add(BlankNodeOrIRI graphName, BlankNodeOrIRI subject, IRI predicate, RDFTerm object) Add a quad to the dataset, possibly mapping any of the components to those supported by this dataset. |
void | clear() Clear the dataset, removing all quads. |
boolean | contains(Quad quad) Check if dataset contains quad. |
boolean | contains(Optional Check if dataset contains a pattern of quads. |
Optional | getGraph(BlankNodeOrIRI graphName) Get a named graph in this dataset. |
void | remove(Quad quad) Remove a concrete quad from the dataset. |
long | size() Number of quads contained by the dataset. |
Stream extends Quad> | stream() Get all quads contained by the dataset. The iteration does not contain any duplicate quads, as determined by the Quad#equals(Object) method for each Quad . |