org.mindswap.owls.process
Interface Condition

All Superinterfaces:
Expression, OWLEntity, OWLIndividual, OWLObject, OWLValue

public interface Condition
extends Expression

A condition is simply an expression. Thhe truth value of a condition needs to be evaluated with respect to a KB. By default, this KB is the one that the condition is coming from but condition can be evaluated with respect to another KB (execution environment may be different)

Author:
Evren Sirin

Method Summary
 boolean isTrue()
          Returns true if this condition is true in its own KB.
 boolean isTrue(OWLModel model, ValueMap binding)
          Returns true if the condition is true in the given model.
 boolean isTrue(ValueMap binding)
          Returns true if this condition is true in its own KB after applying the given binding.
 
Methods inherited from interface org.mindswap.owls.generic.expression.Expression
getBody, getLanguage, setBody, setLanguage
 
Methods inherited from interface org.mindswap.owl.OWLIndividual
addProperty, addProperty, addProperty, addProperty, addType, getDifferentIndividuals, getIncomingProperties, getIncomingProperties, getIncomingProperty, getOWLSOntology, getProperties, getProperties, getProperties, getProperty, getProperty, getProperty, getSameIndividuals, getSourceOntology, getType, getTypes, hasProperty, hasProperty, isDifferentFrom, isSameAs, isType, removeProperties, removeProperty, removeTypes, setProperty, setProperty, setProperty, setProperty, toRDF, toRDF
 
Methods inherited from interface org.mindswap.owl.OWLEntity
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, getAnonID, getKB, getLabel, getLabel, getLabels, getLocalName, getOntology, getQName, getURI, isAnon, removeAnnotations, setAnnotation, setAnnotation, setAnnotation, setLabel, setLabel
 
Methods inherited from interface org.mindswap.owl.OWLObject
canCastTo, castTo, debugString, getImplementation, getNextView, setNextView
 
Methods inherited from interface org.mindswap.owl.OWLValue
isDataValue, isIndividual
 
Methods inherited from interface org.mindswap.owl.OWLObject
canCastTo, castTo, debugString, getImplementation, getNextView, setNextView
 

Method Detail

isTrue

boolean isTrue()
Returns true if this condition is true in its own KB. This is equivalent to the call condition.isTrue(condition.getKB(), new ValueMap()).

Returns:

isTrue

boolean isTrue(ValueMap binding)
Returns true if this condition is true in its own KB after applying the given binding. Condition expression may have some variables in it, so the binding is applied to the expression and then the resulting condition is evaluated.

Returns:

isTrue

boolean isTrue(OWLModel model,
               ValueMap binding)
Returns true if the condition is true in the given model.

Parameters:
model -
Returns:


Copyright © 2004 Evren Sirin. All Rights Reserved.