Modifier and Type | Field and Description |
---|---|
static BiFunction<Statement,Resource,Statement> |
APPLY_CONTEXT |
Constructor and Description |
---|
Statements()
No instances
|
Modifier and Type | Method and Description |
---|---|
static Function<Statement,Statement> |
applyContext(Resource theContext) |
static Statement |
applyContext(Statement stmt,
Resource context) |
static Predicate<Statement> |
matches(Resource theSubject,
IRI thePredicate,
Value theObject,
Resource... theContexts)
Provide a
Predicate that can filter a graph based on which statements match the given SPOC pattern. |
public static BiFunction<Statement,Resource,Statement> APPLY_CONTEXT
@Nonnull public static Predicate<Statement> matches(@Nullable Resource theSubject, @Nullable IRI thePredicate, @Nullable Value theObject, @Nullable Resource... theContexts)
Predicate
that 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.theSubject
- the subject to matchthePredicate
- the predicate to matchtheObject
- the object to matchtheContexts
- the contexts to matchpublic static Statement applyContext(@Nonnull Statement stmt, @Nonnull Resource context)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.