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