public interface Selector extends Predicate<Statement>
Model includes list and query methods which will return all the statements which are selected by a selector object. This is the interface of such selector objects.
Modifier and Type | Method and Description |
---|---|
RDFNode |
getObject()
Answer the only RDFNode object that this Selector will match, or null if
it can match more than a single node.
|
Property |
getPredicate()
Answer the only predicate Property that this Selector will match, or null
if it can match more than a single property.
|
Resource |
getSubject()
Answer the only subject Resource that this Selector will match, or null if it
can match more that a single resource.
|
boolean |
isSimple()
Answer true iff this Selector is completely characterised by its subject,
predicate, and object fields.
|
boolean isSimple()
test
predicate need
not be called to decide if a statement is acceptable. This allows query engines
latitude for optimisation (and our memory-based implementation both exploits
this licence).Resource getSubject()
Property getPredicate()
RDFNode getObject()
Licenced under the Apache License, Version 2.0