|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnectec.semantic.web.knowledge.application.framework.representative.ApplicationTemplate
nectec.semantic.web.knowledge.application.framework.recommender.Recommender
public class Recommender
Contain all the methods regarding to Recommender application. Some of the methods available in this class contain a parameter named 'path' and it is actually the name of a class in ontology. The name is called 'path' due to the system expectation that the directory(path) name must be similar to the respective class name in the ontology.
Field Summary |
---|
Fields inherited from class nectec.semantic.web.knowledge.application.framework.representative.ApplicationTemplate |
---|
PROPERTY_CLASSIFICATION_DISPLAY, PROPERTY_CLASSIFICATION_PROCESSING, TO_DISPLAY, TO_PROCESS |
Constructor Summary | |
---|---|
Recommender(String root)
Constructor method. |
Method Summary | |
---|---|
static boolean |
checkDataExistence(String root,
boolean afterRule)
Check whether the data is ready or not, in order to run Recommender application. |
ArrayList<String> |
getAllPropertiesInvolved(String classOfInterest)
Get all the properties configured to be involved in the current class of interest. |
HashMap<String,String> |
getAvailableConditionalProperties(String classOfInterest)
Get the list of properties which users can use for defining rule in condition part, as defined in its configuration. |
HashMap<String,String> |
getAvailableRecommendedProperties(String classOfInterest)
Get the list of properties which are added due to the rule. |
boolean |
isInIncludedProperties(String propertyName,
int propertyClassification)
Check whether the given property is included in the configuration or not. |
static void |
prepareData(String root,
String plginData)
Prepare the data required for use of Semantic Search, which includes merging data, applying the rules from common place, and insert additional inferences to the base data. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Recommender(String root)
root
- Location of the Recommender data directory on the system (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").Method Detail |
---|
public HashMap<String,String> getAvailableConditionalProperties(String classOfInterest)
classOfInterest
- Class of interest (if used null, the class of current interest, which was defined when you create the object, is applied).
public HashMap<String,String> getAvailableRecommendedProperties(String classOfInterest)
classOfInterest
- Class of interest (if used null, the class of current interest, which was defined when you create the object, is applied).
public static boolean checkDataExistence(String root, boolean afterRule)
root
- Root of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").
public boolean isInIncludedProperties(String propertyName, int propertyClassification)
isInIncludedProperties
in class ApplicationTemplate
propertyName
- Property of interest.propertyClassification
- Property type (Types are defined as Constants (Start with the word 'PROPERTY_CLASSIFICATION_') in ApplicationTemplate class and callable.)
public ArrayList<String> getAllPropertiesInvolved(String classOfInterest)
getAllPropertiesInvolved
in class ApplicationTemplate
classOfInterest
- Class of interest.
public static void prepareData(String root, String plginData)
root
- Location of the Recommender data directory on the system (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").plginData
- File name that contains data plugged in from other sources.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |