Module fr.boreal.backward_chaining
Package fr.boreal.backward_chaining.core
Class QueryCoreProcessorImpl
java.lang.Object
fr.boreal.backward_chaining.core.QueryCoreProcessorImpl
- All Implemented Interfaces:
QueryCoreProcessor
- Author:
- Florent Tornil, Guillaume Pérution-Kihli Core computing for small sets of atoms, used mostly for queries This is based on an implementation by Guillaume Pérution-Kihli
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor using generic homomorphismQueryCoreProcessorImpl(CoreProcessor coreProcessor) Constructor using a specific core processorQueryCoreProcessorImpl(RuleCompilation compilation) Constructor using a homomorphism with compilation testQueryCoreProcessorImpl(RuleCompilation compilation, CoreProcessor coreProcessor) Constructor using a homomorphism with compilation test and a specific core processor -
Method Summary
Modifier and TypeMethodDescriptioncomputeCore(FOQuery query) Compute the core of a query by removing all the redundant atoms in it, in considering the answer variables as constants, these variables must belong to the core.
-
Constructor Details
-
QueryCoreProcessorImpl
public QueryCoreProcessorImpl()Default constructor using generic homomorphism -
QueryCoreProcessorImpl
Constructor using a specific core processor- Parameters:
coreProcessor- the core processor
-
QueryCoreProcessorImpl
Constructor using a homomorphism with compilation test- Parameters:
compilation- the compilation of the rules to use
-
QueryCoreProcessorImpl
Constructor using a homomorphism with compilation test and a specific core processor- Parameters:
compilation- the compilation of the rules to usecoreProcessor- the core processor
-
-
Method Details
-
computeCore
Description copied from interface:QueryCoreProcessorCompute the core of a query by removing all the redundant atoms in it, in considering the answer variables as constants, these variables must belong to the core.- Specified by:
computeCorein interfaceQueryCoreProcessor- Parameters:
query- a FOQuery we want to compute the core- Returns:
- a query representing the core of the given query
-