Package openllet.core.rules
Class UsableRuleFilter
- java.lang.Object
-
- openllet.core.rules.UsableRuleFilter
-
public class UsableRuleFilter extends java.lang.Object
Title: Usable Rule Filter
Description: An iterable returning only rules that can be used by pellet, discarding and warning about all others.
Copyright: Copyright (c) 2007
Company: Clark & Parsia, LLC.
- Author:
- Ron Alford, Evren Sirin
-
-
Constructor Summary
Constructors Constructor Description UsableRuleFilter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
explainNotUsable(Rule rule)
Returns a string explaining why a rule cannot be used for reasoning, ornull
if the rule can be used for reasoningstatic boolean
isUsable(Rule rule)
Checks if a rule can be used for reasoning.
-
-
-
Method Detail
-
isUsable
public static boolean isUsable(Rule rule)
Checks if a rule can be used for reasoning.- Parameters:
rule
- rule to check- Returns:
true
if rule can be used for reasoning
-
explainNotUsable
public static java.lang.String explainNotUsable(Rule rule)
Returns a string explaining why a rule cannot be used for reasoning, ornull
if the rule can be used for reasoning- Parameters:
rule
- rule to check- Returns:
- a string explaining why a rule cannot be used for reasoning, or
null
if the rule can be used for reasoning
-
-