|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.common.SelectorImpl
|
+--com.hp.hpl.jena.daml.common.DAMLSelector
An extension to the standard Jena selector for querying models, which respects the
equivalence that DAML can assert between values. That is, for example, this selector will
match a statement:
with a selector:
myns:ian isCalled "ian".
if it is known that
new DAMLSelector( resIan, model.getProperty( myns + "sAppel" );
myns:ian daml:samePropertyAs myns:sAppel.
Equivalences between classes, properties, instances (individuals) and arbitrary
values (using daml:equivalentTo) are respected. This does inevitably add a significant
overhead to accessing the values from the model, but is necessary for correctly
processing DAML models.
Note that the current release of Jena does not permit us to correctly process
equivalence among resources efficiently. Therefore, as a performance hack,
DAMLModel.setUseEquivalence(boolean) has been added to the
model to allow this behaviour to be turned off under user control. By default,
equivalence will be tested.
| Constructor Summary | |
DAMLSelector(Resource subject,
Property predicate,
RDFNode object)
Create a DAML selector. |
|
| Method Summary | |
boolean |
test(Statement stmt)
Answer true if a statement should be included in a selection. |
| Methods inherited from class com.hp.hpl.mesa.rdf.jena.common.SelectorImpl |
getObject, getPredicate, getSubject, selects |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DAMLSelector(Resource subject,
Property predicate,
RDFNode object)
subject - The subject of the statement, or null.predicate - The predicate of the statement, or null.object - The object of the statement, or null.| Method Detail |
public boolean test(Statement stmt)
test in interface Selectortest in class SelectorImplstmt - the statement to be tested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||