Java org.apache.commons.rdf.api Graph fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.rdf.api Graph fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.rdf.api Graph.

The text is from its open source code.

Implementation

org.apache.commons.rdf.api.Graph has the following implementations.
Click this link to see all its implementation.

Method

voidadd(Triple triple)
Add a triple to the graph, possibly mapping any of the components of the Triple to those supported by this Graph.
voidadd(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
Add a triple to the graph, possibly mapping any of the components to those supported by this Graph.
voidclear()
Clear the graph, removing all triples.
booleancontains(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
Check if graph contains a pattern of triples.
booleancontains(Triple triple)
Check if graph contains triple.
StreamgetTriples()
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 .

Iterableiterate(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
Get an Iterable for iterating over the triples in the graph that match the pattern.
Iterableiterate()
Get an Iterable for iterating over all triples in the graph.
voidremove(BlankNodeOrIRI subject, IRI predicate, RDFTerm object)
Remove a concrete pattern of triples from the graph.
voidremove(Triple triple)
Remove a concrete triple from the graph.
longsize()
Number of triples contained by the graph.