org.dllearner.core.owl
Class BooleanDataRange
java.lang.Object
org.dllearner.core.owl.BooleanDataRange
- All Implemented Interfaces:
- Serializable, DataRange, KBElement, PropertyRange
public class BooleanDataRange
- extends Object
- implements DataRange
Allows to specify the value of a boolean datatype restriction,
e.g. ChemicalSubstance AND EXISTS acidTest = true
- Author:
- Jens Lehmann
- See Also:
- Serialized Form
BooleanDataRange
public BooleanDataRange(boolean isTrue)
isTrue
public boolean isTrue()
- Returns:
- The boolean value of this restriction.
getLength
public int getLength()
- Description copied from interface:
KBElement
- Gets the length of this knowledge base element. For instance,
A AND B should have length 3 (as three constructs are involved).
There are different ways to define the length of an axiom,
class description etc., but this method provides a straightforward
definition of it.
- Specified by:
getLength in interface KBElement
- Returns:
- The syntactic length of the KB element, defined as the
number of syntactic constructs not including brackets.
toString
public String toString(String baseURI,
Map<String,String> prefixes)
- Specified by:
toString in interface KBElement
toKBSyntaxString
public String toKBSyntaxString(String baseURI,
Map<String,String> prefixes)
- Specified by:
toKBSyntaxString in interface KBElement
accept
public void accept(KBElementVisitor visitor)
- Specified by:
accept in interface KBElement
toManchesterSyntaxString
public String toManchesterSyntaxString(String baseURI,
Map<String,String> prefixes)
- Specified by:
toManchesterSyntaxString in interface KBElement
DL-Learner is licenced under the terms of the GNU General Public License.
Copyright © 2007-2011 Jens Lehmann