|
||||||||||
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.ServiceRepresentative
public class ServiceRepresentative
Main representative for the applications (Semantic Search, Recommender, etc). It can also act as a class factory.
Constructor Summary | |
---|---|
ServiceRepresentative()
|
Method Summary | |
---|---|
static boolean |
checkDataExistenceForRecommender(String root)
Check whether all data is in place in order to get recommender properly running or not. |
static boolean |
checkDataExistenceForSemanticSearch(String root)
Check whether all data is in place in order to get Semantic Search properly running or not. |
static Mapping |
createMappingInstance()
Get the object of the Mapping class. |
static Recommender |
createRecommenderInstance(String targetClass,
String root,
com.hp.hpl.jena.ontology.OntModel kbase)
Get the object of the Recommender class which will handle all the querying task to the given model. |
static RuleHandler |
createRuleHandler(String root,
boolean combineData)
Get the object of the RuleHandler class. |
static SemanticSearch |
createSemanticSearchInstance(String targetClass,
String root,
com.hp.hpl.jena.ontology.OntModel kbase)
Get the object of the SemanticSearch class which will handle all the querying task to the given model. |
static String |
getAbsoloutePath(String alias)
Get the absolute path of the given alias, on file system. |
static String |
getAlias(String absPath)
Get the alias of the given absolute path on file system. |
static ArrayList<String> |
getAliasesForIncludedPaths()
Get alias names for application domains that are set to be included.(in java property file). |
static ArrayList<String> |
getAppPathOfGivenClass(String className)
Get the application path (alias name) of given class (concept). |
static ArrayList<String> |
getClassesInAllAppPaths()
Get the class names in all included application paths. |
static com.hp.hpl.jena.ontology.OntModel |
loadModelForRecommender(String root,
boolean combineData)
Load the model which contains instance data to be used in recommender queries. |
static com.hp.hpl.jena.ontology.OntModel |
loadModelForRecommenderBeforeRule(String root,
boolean combineData)
Load the model which contains instance data to be used in recommender queries. |
static com.hp.hpl.jena.ontology.OntModel |
loadModelForSemanticSearch(String root,
boolean combineData)
Load the model which contains instance data to be used in Semantic Search. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceRepresentative()
Method Detail |
---|
public static com.hp.hpl.jena.ontology.OntModel loadModelForSemanticSearch(String root, boolean combineData)
root
- File location of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").combineData
- If it is true, all the data from specified paths will be collected into the memory instead of getting only from specified root.
public static com.hp.hpl.jena.ontology.OntModel loadModelForRecommender(String root, boolean combineData)
root
- Root of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").combineData
- If it is true, all the data from specified paths will be collected into the memory instead of getting only from specified root.
public static com.hp.hpl.jena.ontology.OntModel loadModelForRecommenderBeforeRule(String root, boolean combineData)
root
- Root of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").combineData
- If it is true, all the data from specified paths will be collected into the memory instead of getting only from specified root.
public static boolean checkDataExistenceForSemanticSearch(String root)
root
- File location of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").
public static boolean checkDataExistenceForRecommender(String root)
root
- File location of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").
public static SemanticSearch createSemanticSearchInstance(String targetClass, String root, com.hp.hpl.jena.ontology.OntModel kbase)
targetClass
- Target class name to be searched (e.g. Person, Food, etc).root
- Root of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").kbase
- Ontology model which contains instance data.
public static Recommender createRecommenderInstance(String targetClass, String root, com.hp.hpl.jena.ontology.OntModel kbase)
targetClass
- Target class name to be recommended (e.g. Person, Food, etc).root
- Root of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").kbase
- Ontology model to be used.
public static Mapping createMappingInstance()
public static RuleHandler createRuleHandler(String root, boolean combineData)
root
- File location of the application data (e.g. "D:/NECTEC/SKAF_HOME/AppData/Employee").
public static ArrayList<String> getAliasesForIncludedPaths()
public static String getAbsoloutePath(String alias)
alias
- Alias name.
public static String getAlias(String absPath)
alias
- Absolute path.
public static ArrayList<String> getAppPathOfGivenClass(String className)
className
- Input class name.
public static ArrayList<String> getClassesInAllAppPaths()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |