public class FilteredStatements extends Object
Statements with handy utility methods for
filtering based on common criteria.| Constructor and Description |
|---|
FilteredStatements(Collection<org.openrdf.model.Statement> statements)
Enriches the given collection of
Statements. |
| Modifier and Type | Method and Description |
|---|---|
static FilteredStatements |
filtered(Collection<org.openrdf.model.Statement> statements)
Enriches the given collection of
Statements. |
Collection<org.openrdf.model.Statement> |
withSubject(String subject)
Returns a collection of statements, filtering out any with a subject
different from the given
String. |
Collection<org.openrdf.model.Statement> |
withSubjectStarts(String prefix)
Returns a collection of statements that have subject start with given
String. |
public FilteredStatements(Collection<org.openrdf.model.Statement> statements)
Statements.public static FilteredStatements filtered(Collection<org.openrdf.model.Statement> statements)
Statements.public Collection<org.openrdf.model.Statement> withSubject(String subject)
String.public Collection<org.openrdf.model.Statement> withSubjectStarts(String prefix)
String.Copyright © 2016. All rights reserved.