Example usage for Java org.apache.commons.rdf.api Graph fields, constructors, methods, implement or subclass
The text is from its open source code.
void | add(Triple triple) Add a triple to the graph, possibly mapping any of the components of the Triple to those supported by this Graph. |
void | add(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) Add a triple to the graph, possibly mapping any of the components to those supported by this Graph. |
void | clear() Clear the graph, removing all triples. |
boolean | contains(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) Check if graph contains a pattern of triples. |
boolean | contains(Triple triple) Check if graph contains triple. |
Stream extends Triple> | getTriples() Get all triples contained by the graph. The iteration does not contain any duplicate triples, as determined by the Triple#equals(Object) method for each Triple . |
Iterable | iterate(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) Get an Iterable for iterating over the triples in the graph that match the pattern. |
Iterable | iterate() Get an Iterable for iterating over all triples in the graph. |
void | remove(BlankNodeOrIRI subject, IRI predicate, RDFTerm object) Remove a concrete pattern of triples from the graph. |
void | remove(Triple triple) Remove a concrete triple from the graph. |
long | size() Number of triples contained by the graph. |