Interface IInputDataScenario
- All Known Implementing Classes:
InputDataScenario
public interface IInputDataScenario
Knowledge base reasoning scenario as input data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic IInputDataScenarioCompilation(RuleBase ruleBase) Builds a rule-compilation scenario from a rule base.Returns all file paths referenced by this handler.Retrieves the fact base object.Retrieves the path(s) to the fact base file(s).Gets the federated fact base.Gets the hybrid rule base for saturation.Gets the paths to the files defining the hybrid rule base for rewriting.Gets the hybrid rule base for saturation.Gets the paths to the files defining the hybrid rule base for saturation.Retrieves the path(s) to the mapping base file(s).getName()Retrieves the name of the scenario.Retrieves the query base object.Retrieves the path(s) to the query base file(s).Retrieves the rule base object.Retrieves the path(s) to the rule base file(s).Returns the configured strike length when one has been set.static IInputDataScenarioBuilds a knowledge-base scenario from a fact base and a rule base.static IInputDataScenarioOMQ(RuleBase rb, Collection<Query> queries) Builds an ontology-mediated-query scenario from rules and queries.static IInputDataScenarioOMQA(FactBase fb, RuleBase rb, Collection<Query> queries) Builds an ontology-mediated-query-answering scenario from facts, rules, and queries.static IInputDataScenarioOMQAHybrid(FactBase fb, RuleBase rb_sat, RuleBase rb_rew, Collection<Query> queries) Builds a hybrid OMQA scenario from facts, saturated rules, rewriting rules, and queries.static IInputDataScenarioQA(FactBase fb, Collection<Query> queries) Builds a query-answering scenario from facts and queries.voidsetFactbase(FactBase factbase) Sets the fact base object, if not already set.default voidsetFactBaseFromInputDLGP(Object inputObject) Sets the fact base object from an object that represents a DLGP string.voidsetFactbasePaths(String... factbasepath) Sets the path(s) to the fact base file, if not already set.voidsetFederatedFactBase(FederatedFactBase federatedfactbase) Sets the federated fact base object, if not already set.voidsetHybridRulebase(RuleBase rb_sat, RuleBase rb_rew) Sets the hybrid rule base fact base object, but only if the rulebase has not been already set.voidsetHybridRulebasePaths(Collection<String> rulebasepath_sat, Collection<String> rulebasepath_rew) Sets the path for the file holding the hynrid rule base, but only if the rulebase has not been already set.voidsetMappingbasePaths(String... mappingbasepath) Sets the path to the mapping base file, if not already set.default voidsetQuerybase(Query query) Sets the query base object, if not already set.voidsetQuerybase(Collection<Query> queries) Sets the query base object, if not already set.voidsetQuerybasePaths(String... querybasepath) Sets the path to the query base file, if not already set.voidsetRulebase(RuleBase rulebase) Sets the rule base object, if not already set.voidsetRulebasePaths(String... rulebasepath) Sets the path to the rule base file, if not already set.voidsetStrikeLength(int value) Sets the lenght of the prefix of the query sequence to consider
-
Method Details
-
getName
-
KB
Builds a knowledge-base scenario from a fact base and a rule base.- Parameters:
fb- the fact base to attachrb- the rule base to attach- Returns:
- the KB scenario
-
OMQ
Builds an ontology-mediated-query scenario from rules and queries.- Parameters:
rb- the rule base to attachqueries- the queries to attach- Returns:
- the OMQ scenario
-
OMQA
Builds an ontology-mediated-query-answering scenario from facts, rules, and queries.- Parameters:
fb- the fact base to attachrb- the rule base to attachqueries- the queries to attach- Returns:
- the OMQA scenario
-
QA
Builds a query-answering scenario from facts and queries.- Parameters:
fb- the fact base to attachqueries- the queries to attach- Returns:
- the QA scenario
-
Compilation
Builds a rule-compilation scenario from a rule base.- Parameters:
ruleBase- the rule base to compile- Returns:
- the Compilation scenario
-
OMQAHybrid
static IInputDataScenario OMQAHybrid(FactBase fb, RuleBase rb_sat, RuleBase rb_rew, Collection<Query> queries) Builds a hybrid OMQA scenario from facts, saturated rules, rewriting rules, and queries.- Parameters:
fb- the fact base to attachrb_sat- the saturation rule baserb_rew- the rewriting rule basequeries- the queries to attach- Returns:
- the hybrid OMQA scenario
-
getFactbasePaths
Optional<Collection<String>> getFactbasePaths()Retrieves the path(s) to the fact base file(s).- Returns:
- an
Optionalcontaining the file paths or empty if not set
-
setFactbasePaths
Sets the path(s) to the fact base file, if not already set.- Parameters:
factbasepath- the path to the fact base file
-
getFactBase
-
setFactbase
-
getFederatedFactBase
Gets the federated fact base.- Returns:
- FederatedFactBase
- Throws:
Exception- if the federated fact base cannot be constructed or retrieved
-
setFederatedFactBase
Sets the federated fact base object, if not already set.- Parameters:
federatedfactbase- theFederatedFactBaseobject to set
-
setFactBaseFromInputDLGP
Sets the fact base object from an object that represents a DLGP string.- Parameters:
inputObject- an object that can be turn into DLGP ; required not null
-
getMappingbasePaths
Optional<Collection<String>> getMappingbasePaths()Retrieves the path(s) to the mapping base file(s).- Returns:
- an
Optionalcontaining the file paths, or empty if not set
-
setMappingbasePaths
Sets the path to the mapping base file, if not already set.- Parameters:
mappingbasepath- the path to the mapping base file
-
getRulebasePath
Optional<Collection<String>> getRulebasePath()Retrieves the path(s) to the rule base file(s).- Returns:
- an
Optionalcontaining the file paths, or empty if not set
-
setRulebasePaths
Sets the path to the rule base file, if not already set.- Parameters:
rulebasepath- the path to the rule base file
-
getRuleBase
-
setRulebase
-
setHybridRulebasePaths
void setHybridRulebasePaths(Collection<String> rulebasepath_sat, Collection<String> rulebasepath_rew) Sets the path for the file holding the hynrid rule base, but only if the rulebase has not been already set.- Parameters:
rulebasepath_sat- for saturationrulebasepath_rew- for rewriting
-
setHybridRulebase
-
getHybridRulebaseSat
-
getHybridRulebaseRew
-
getHybridRulebaseSatPaths
Optional<Collection<String>> getHybridRulebaseSatPaths()Gets the paths to the files defining the hybrid rule base for saturation.- Returns:
- the rulebase for saturation
-
getHybridRulebaseRewPaths
Optional<Collection<String>> getHybridRulebaseRewPaths()Gets the paths to the files defining the hybrid rule base for rewriting.- Returns:
- the rulebase for rewriting
-
getQuerybasePaths
Optional<Collection<String>> getQuerybasePaths()Retrieves the path(s) to the query base file(s).- Returns:
- an
Optionalcontaining the file paths, or empty if not set
-
setQuerybasePaths
Sets the path to the query base file, if not already set.- Parameters:
querybasepath- the path to the query base file
-
getQueryBase
-
setQuerybase
Sets the query base object, if not already set. -
setQuerybase
-
setStrikeLength
void setStrikeLength(int value) Sets the lenght of the prefix of the query sequence to consider- Parameters:
value- the number of queries from the prefix to consider
-
getStrikeLength
-
getAllReferencedFilePaths
Collection<String> getAllReferencedFilePaths()Returns all file paths referenced by this handler.- Returns:
- the set of paths to files referenced by the object
-