|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnectec.semantic.web.knowledge.application.framework.recommender.RuleHandler
public class RuleHandler
Act as a rule handler for Recommender application and contain all the convenient methods of applying rules to data, adding data to the model by means of rules.
Constructor Summary | |
---|---|
RuleHandler(String root)
Constructor method and should not be called directly. |
Method Summary | |
---|---|
void |
applyRuleAndAddNewKnowledge(boolean debug)
Apply the rules and add new knowledge to the model as appropriate. |
HashMap<String,String> |
getRuleDependencies()
Get the pairs of rule dependencies. |
String |
getRuleDependency(String ruleName)
Get Dependency about given rule. |
String |
getRuleInformation(String ruleName)
Get Information about given rule. |
HashMap<String,String> |
getRuleInfos()
Get the pairs of rule information. |
void |
printListOfMalformedLineInRules()
|
void |
setCurrentApplicationPath(String newAppPath)
Set the current application path (domain) to another. |
void |
setModels(com.hp.hpl.jena.ontology.OntModel model)
Set the main model for knowledge base. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuleHandler(String root)
root
- - Root path of the Recommender application.Method Detail |
---|
public void applyRuleAndAddNewKnowledge(boolean debug) throws Exception
Exception
public void printListOfMalformedLineInRules()
public HashMap<String,String> getRuleDependencies()
public HashMap<String,String> getRuleInfos()
public String getRuleInformation(String ruleName)
ruleName
- Rule name.
public String getRuleDependency(String ruleName)
ruleName
- Rule name.
public void setCurrentApplicationPath(String newAppPath)
newAppPath
- New application path.public void setModels(com.hp.hpl.jena.ontology.OntModel model)
model
- Model to be set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |