Package com.stardog.stark
Class Statements
java.lang.Object
com.stardog.stark.Statements
Utilities for working with Statement.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyContext(Resource theContext) static StatementapplyContext(Statement stmt, Resource context) Provide aPredicatethat can filter a graph based on which statements match the given SPOC pattern.
-
Field Details
-
APPLY_CONTEXT
-
-
Constructor Details
-
Statements
public Statements()No instances
-
-
Method Details
-
matches
@Nonnull public static Predicate<Statement> matches(@Nullable Resource theSubject, @Nullable IRI thePredicate, @Nullable Value theObject, @Nullable Resource... theContexts) Provide aPredicatethat can filter a graph based on which statements match the given SPOC pattern. All arguments accept `null` as a wildcard argument to indicate that the results _should not_ be filtered on that attribute.- Parameters:
theSubject- the subject to matchthePredicate- the predicate to matchtheObject- the object to matchtheContexts- the contexts to match- Returns:
- a predicate can be used for matching
-
applyContext
-
applyContext
-