Class Statements


  • public final class Statements
    extends java.lang.Object

    Utilities for working with Statement.

    Since:
    1.0
    Version:
    1.0
    Author:
    Michael Grove
    • Constructor Detail

      • Statements

        public Statements()
        No instances
    • Method Detail

      • matches

        @Nonnull
        public static java.util.function.Predicate<Statement> matches​(@Nullable
                                                                      Resource theSubject,
                                                                      @Nullable
                                                                      IRI thePredicate,
                                                                      @Nullable
                                                                      Value theObject,
                                                                      @Nullable
                                                                      Resource... theContexts)
        Provide a 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.
        Parameters:
        theSubject - the subject to match
        thePredicate - the predicate to match
        theObject - the object to match
        theContexts - the contexts to match
        Returns:
        a predicate can be used for matching