Class InternalReasoningService
java.lang.Object
fr.inria.rules.integraal.api.internal.impl.InternalReasoningService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildDataSources(IntegraalEnvironment env, Collection<fr.inria.integraal.view_parser.parser.DatasourceDescription> datasourceDefinitions, Collection<fr.inria.integraal.view_parser.parser.ViewDefinition> viewDefinitions) final <RW extends MaterializedData & Writable>
RWcoreChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBasecoreChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) createCompilation(RuleBase ruleBase, InteGraalKeywords.Algorithms.Parameters.Compilation compilation) final <RW extends MaterializedData & Writable>
RWcustomChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBasecustomChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) final FactBasedefaultChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) Deprecated.final <RW extends MaterializedData & Writable>
RWdelegatedDatalogChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBasedelegatedDatalogChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) final Iterator<Substitution> evaluate(QueryableData factBase, Query query, IGParameter<InteGraalKeywords, ?>... params) final Iterator<Substitution> evaluate(QueryableData factBase, Query query, Substitution preHom, IGParameter<InteGraalKeywords, ?>... params) evaluateRew(FactBase fb, Query query, RuleBase rb, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilationType, ExternalHaltingCondition... conds) evaluateSat(FactBase fb, Query query, RuleBase rb, IAlgorithmParameters algoParam) extractCompilableRules(RuleBase ruleBase, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilation, ExternalHaltingCondition... conds) extractNonCompilableRules(RuleBase ruleBase, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilation, ExternalHaltingCondition... conds) formatSubstitutions(IntegraalEnvironment environment, Collection<Substitution> substitutions) final <RW extends MaterializedData & Writable>
RWinMemoryDatalogChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBaseinMemoryDatalogChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) final <RW extends MaterializedData & Writable>
RWlinearRuleChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBaselinearRuleChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) final FactBaselinearRulesChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) Deprecated, for removal: This API element is subject to removal in a future version.final FactBaseloadFactBase(IntegraalEnvironment env, String filePath, IGParameter<InteGraalKeywords, ?>... storageParams) final FactBaseloadFactBase(IntegraalEnvironment env, Collection<String> filePaths, IGParameter<InteGraalKeywords, ?>... storageParams) final KnowledgeBaseloadKnowledgeBase(IntegraalEnvironment env, String kbPath, IGParameter<InteGraalKeywords, ?>... params) final KnowledgeBaseloadKnowledgeBase(IntegraalEnvironment env, String rulesPath, String factBasePath, IGParameter<InteGraalKeywords, ?>... params) final KnowledgeBaseloadKnowledgeBase(IntegraalEnvironment env, Collection<String> kbPaths, IGParameter<InteGraalKeywords, ?>... params) final RuleBaseloadRuleBase(IntegraalEnvironment env, String path, IGParameter<InteGraalKeywords, ?>... params) final RuleBaseloadRuleBase(IntegraalEnvironment env, Collection<String> paths, IGParameter<InteGraalKeywords, ?>... params) final Collection<Substitution> nextAnswers(Iterator<Substitution> iterator, IGParameter<InteGraalKeywords, ?>... params) final <RW extends MaterializedData & Writable>
RWobliviousChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBaseobliviousChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) parseCompilationType(String compilationType) parseSubstitution(IntegraalEnvironment environment, String json) booleanregisterViewDefinitions(IntegraalEnvironment env, String vdFilePath) booleanregisterViewDefinitions(IntegraalEnvironment env, Collection<String> vdFilePaths) rewrite(RuleBase ruleBase, Query query, InteGraalKeywords.Algorithms.Parameters.Compilation compilation) rewrite(Query query, CompilationResult compiled) saturate(FactBase fb, RuleBase rb, IAlgorithmParameters algoParam) Deprecated.final <RW extends MaterializedData & Writable>
RWsemiObliviousChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBasesemiObliviousChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) final <RW extends MaterializedData & Writable>
RWstandardChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBasestandardChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) final <RW extends MaterializedData & Writable>
RWstratifiedChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) final FactBasestratifiedChase(FactBase fb, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) unfold(RuleBase ruleBase, Collection<Query> queries, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilation, ExternalHaltingCondition... conds)
-
Constructor Details
-
InternalReasoningService
public InternalReasoningService()
-
-
Method Details
-
loadFactBase
@SafeVarargs public final FactBase loadFactBase(IntegraalEnvironment env, String filePath, IGParameter<InteGraalKeywords, ?>... storageParams) throws ParseException, IGParameterException - Throws:
ParseExceptionIGParameterException
-
loadFactBase
@SafeVarargs public final FactBase loadFactBase(IntegraalEnvironment env, Collection<String> filePaths, IGParameter<InteGraalKeywords, ?>... storageParams) throws ParseException, IGParameterException - Throws:
ParseExceptionIGParameterException
-
registerViewDefinitions
public boolean registerViewDefinitions(IntegraalEnvironment env, String vdFilePath) throws ViewBuilder.ViewBuilderException - Throws:
ViewBuilder.ViewBuilderException
-
registerViewDefinitions
public boolean registerViewDefinitions(IntegraalEnvironment env, Collection<String> vdFilePaths) throws ViewBuilder.ViewBuilderException - Throws:
ViewBuilder.ViewBuilderException
-
buildDataSources
public QueryableDataCollection<QueryableData> buildDataSources(IntegraalEnvironment env, Collection<fr.inria.integraal.view_parser.parser.DatasourceDescription> datasourceDefinitions, Collection<fr.inria.integraal.view_parser.parser.ViewDefinition> viewDefinitions) throws ViewBuilder.ViewBuilderException - Throws:
ViewBuilder.ViewBuilderException
-
loadRuleBase
@SafeVarargs public final RuleBase loadRuleBase(IntegraalEnvironment env, String path, IGParameter<InteGraalKeywords, ?>... params) throws ParseException, IGParameterException - Throws:
ParseExceptionIGParameterException
-
loadRuleBase
@SafeVarargs public final RuleBase loadRuleBase(IntegraalEnvironment env, Collection<String> paths, IGParameter<InteGraalKeywords, ?>... params) throws ParseException, IGParameterException - Throws:
ParseExceptionIGParameterException
-
loadKnowledgeBase
@SafeVarargs public final KnowledgeBase loadKnowledgeBase(IntegraalEnvironment env, String kbPath, IGParameter<InteGraalKeywords, ?>... params) throws ParseException, IGParameterException - Throws:
ParseExceptionIGParameterException
-
loadKnowledgeBase
@SafeVarargs public final KnowledgeBase loadKnowledgeBase(IntegraalEnvironment env, Collection<String> kbPaths, IGParameter<InteGraalKeywords, ?>... params) throws ParseException, IGParameterException - Throws:
ParseExceptionIGParameterException
-
loadKnowledgeBase
@SafeVarargs public final KnowledgeBase loadKnowledgeBase(IntegraalEnvironment env, String rulesPath, String factBasePath, IGParameter<InteGraalKeywords, ?>... params) throws ParseException, IGParameterException - Throws:
ParseExceptionIGParameterException
-
evaluate
@SafeVarargs public final Iterator<Substitution> evaluate(QueryableData factBase, Query query, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException, EvaluationException -
evaluate
@SafeVarargs public final Iterator<Substitution> evaluate(QueryableData factBase, Query query, Substitution preHom, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException, EvaluationException -
nextAnswers
@SafeVarargs public final Collection<Substitution> nextAnswers(Iterator<Substitution> iterator, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
saturate
Deprecated. -
defaultChase
@Deprecated @SafeVarargs public final FactBase defaultChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException Deprecated.- Throws:
IGParameterException
-
stratifiedChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW stratifiedChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
stratifiedChase
@SafeVarargs public final FactBase stratifiedChase(FactBase fb, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
obliviousChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW obliviousChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
obliviousChase
@SafeVarargs public final FactBase obliviousChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
semiObliviousChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW semiObliviousChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
semiObliviousChase
@SafeVarargs public final FactBase semiObliviousChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
standardChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW standardChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
standardChase
@SafeVarargs public final FactBase standardChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
coreChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW coreChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
coreChase
@SafeVarargs public final FactBase coreChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
linearRuleChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW linearRuleChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
linearRuleChase
@SafeVarargs public final FactBase linearRuleChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
linearRulesChase
@Deprecated(forRemoval=true) @SafeVarargs public final FactBase linearRulesChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException Deprecated, for removal: This API element is subject to removal in a future version.UselinearRuleChase(FactBase, RuleBase, IGParameter[])instead.- Throws:
IGParameterException
-
inMemoryDatalogChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW inMemoryDatalogChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
inMemoryDatalogChase
@SafeVarargs public final FactBase inMemoryDatalogChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
delegatedDatalogChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW delegatedDatalogChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
delegatedDatalogChase
@SafeVarargs public final FactBase delegatedDatalogChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
customChase
@SafeVarargs public final <RW extends MaterializedData & Writable> RW customChase(ChasableData<RW> data, RuleBase rb, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
customChase
@SafeVarargs public final FactBase customChase(FactBase factBase, RuleBase ruleBase, IGParameter<InteGraalKeywords, ?>... params) throws IGParameterException - Throws:
IGParameterException
-
evaluateSat
public Iterator<Substitution> evaluateSat(FactBase fb, Query query, RuleBase rb, IAlgorithmParameters algoParam) throws IGParameterException, EvaluationException -
evaluateRew
public Iterator<Substitution> evaluateRew(FactBase fb, Query query, RuleBase rb, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilationType, ExternalHaltingCondition... conds) throws IGParameterException, EvaluationException -
extractCompilableRules
public RuleBase extractCompilableRules(RuleBase ruleBase, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilation, ExternalHaltingCondition... conds) -
extractNonCompilableRules
public RuleBase extractNonCompilableRules(RuleBase ruleBase, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilation, ExternalHaltingCondition... conds) -
unfold
public Collection<Query> unfold(RuleBase ruleBase, Collection<Query> queries, InteGraalKeywords.Algorithms.Parameters.Compilation ruleCompilation, ExternalHaltingCondition... conds) -
decompose
-
createCompilation
public CompilationResult createCompilation(RuleBase ruleBase, InteGraalKeywords.Algorithms.Parameters.Compilation compilation) -
parseCompilationType
public InteGraalKeywords.Algorithms.Parameters.Compilation parseCompilationType(String compilationType) -
rewrite
public UnionFOQuery rewrite(RuleBase ruleBase, Query query, InteGraalKeywords.Algorithms.Parameters.Compilation compilation) -
rewrite
-
parseSubstitution
public Substitution parseSubstitution(IntegraalEnvironment environment, String json) throws NoSuchMethodException, ParseException - Throws:
NoSuchMethodExceptionParseException
-
formatSubstitutions
public List<Map<String,Object>> formatSubstitutions(IntegraalEnvironment environment, Collection<Substitution> substitutions) throws IOException - Throws:
IOException
-
linearRuleChase(FactBase, RuleBase, IGParameter[])instead.