@FunctionalInterface public interface GetStatementOptional
Optional.empty()
otherwise.Modifier and Type | Method and Description |
---|---|
Optional<Statement> |
get(Resource subject,
IRI predicate,
Value object,
Resource... contexts)
Either supplies a statement matching the given pattern, or
Optional.empty() otherwise. |
Optional<Statement> get(Resource subject, IRI predicate, Value object, Resource... contexts)
Optional.empty()
otherwise.subject
- A Resource
to be used to match to statements.predicate
- An IRI
to be used to match to statements.object
- A Value
to be used to match to statements.contexts
- An array of context Resource
objects, or left out (not null) to select from all
contexts.Optional
either containing a single statement matching the pattern or Optional.empty()
otherwise.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.