| com.hp.hpl.jena.rdf.model.Selector
All known Subclasses: com.hp.hpl.jena.rdf.model.SimpleSelector,
Selector | public interface Selector (Code) | | A Statement selector.
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.
author: bwm, kers version: Release='$Name: $' Revision='$Revision: 1.9 $' Date='$Date: 2008/01/02 12:05:48 $' |
Method Summary | |
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 | test(Statement s) Determine whether a Statement should be selected.
Parameters: s - The statement to be considered. |
getObject | RDFNode getObject()(Code) | | Answer the only RDFNode object that this Selector will match, or null if
it can match more than a single node.
|
getPredicate | Property getPredicate()(Code) | | Answer the only predicate Property that this Selector will match, or null
if it can match more than a single property.
|
getSubject | Resource getSubject()(Code) | | Answer the only subject Resource that this Selector will match, or null if it
can match more that a single resource.
|
isSimple | boolean isSimple()(Code) | | Answer true iff this Selector is completely characterised by its subject,
predicate, and object fields. If so, the test predicate need
not be called to decide if a statement is acceptable. This allows query engines
lattitude for optimisation (and our memory-based and RDB-based model
implementations both exploit this licence).
|
test | boolean test(Statement s)(Code) | | Determine whether a Statement should be selected.
Parameters: s - The statement to be considered. true if the statement has been selected. |
|
|