Enum Class InteGraalKeywords
- All Implemented Interfaces:
Serializable, Comparable<InteGraalKeywords>, Constable
The InteGraalKeywords enum provides a set of keywords and categorizations
that defines the realm of possibilities with InteGraal. These include:
- Algorithms: This section defines various algorithms for executing key operations within InteGraal, e.g., Knowledge Base Chase, Ontology-Mediated Query Rewriting, Rule Compilation, and Query Answering.
- For each algorithm, it also includes the set of its supported Parameters.
- Finally, it includes options for the algorithms' result options, such as Answer Types (e.g., list vs count-based results).
- Internal Storage Configuration: This section outlines the parameters for setting the storage of a factbase in InteGraal.
- Supported File Extensions: Defines the various file formats supported by the system, notably formats for factbases, query bases, rule bases, and mapping bases.
- Monitoring Operations: Specifies key operations that can be monitored within the system, such as loading factbases, rulebases, and query workloads, or running a specific algorithm.
This enumeration is meant to represent all features of InteGraal and is primarily (but not only) used by the component builder.
- Author:
- Federico Ulliana, Michel Leclère
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines various algorithms for InteGraal's operations.static enumDefines storage-related keywords for InteGraal.static enumDefines various operations in InteGraal.static enumSpecifies different file extensions supported by InteGraal.Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClosed parametersAnswer type keyword family.Chase rule-applier keyword family.Chase halting condition keyword family.Chase trigger-checker keyword family.Database clearing mode parameter.Rule-compilation strategy keyword family.Chase computer keyword family.Database name parameter.DBMS driver parameter keyword family.Database type keyword family.Database driver type keyword family.Chase evaluator keyword family.Graph-of-rule-instances computation parameter.Graph-of-rule-instances storage parameter.Explainer solver parameter.Explainer verbosity parameter.Explanation category parameter.GMUS solver threshold parameter.MARCO executable path parameter.Explanation support type parameter.Fact-base file extension keyword family.Hybrid reasoning type keyword family.Image type keyword family.Interrupt flag parameter.Inter-step treatment keyword family.Mapping-base file extension keyword family.Open parametersMonitoring operation keyword family.Existential naming strategy keyword family.DBMS port parameter.Query-base file extension keyword family.Maximum reasoning rank parameter.Rule-base file extension keyword family.Chase scheduler keyword family.Storage layout keyword family.Timeout parameter.Chase transformer keyword family.DBMS URL parameter.Database user name parameter.Database user password parameter. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectChecks an enumeration value against the expected keyword family and returns the resolved constant.static voidcheckValueType(Object s, InteGraalKeywords type) Checks that a runtime value matches the declared type of a keyword.static InteGraalKeywordsFinds the keyword associated with the given string.Finds the value associated with the keyword from the given string.Returns the parent enumeration keyword when this keyword is nested under another family.Class<?> getType()Gets the class type associated with the keyword.static ObjectgetValueType(String s, InteGraalKeywords inteGraalKeyword) Converts a raw string into the runtime type expected by a keyword.booleanTrue iff the keyword values are defined by an enumerationstatic InteGraalKeywordsReturns the enum constant of this class with the specified name.static InteGraalKeywords[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALGORITHMS
Closed parameters -
ANSWERS
Answer type keyword family. -
IMAGES
Image type keyword family. -
COMPILATION
Rule-compilation strategy keyword family. -
SCHEDULER
Chase scheduler keyword family. -
EVALUATOR
Chase evaluator keyword family. -
APPLIER
Chase rule-applier keyword family. -
TRANSFORMER
Chase transformer keyword family. -
COMPUTER
Chase computer keyword family. -
CHECKER
Chase trigger-checker keyword family. -
NAMER
Existential naming strategy keyword family. -
CHASEHALTER
Chase halting condition keyword family. -
INTERSTEPTREATMENT
Inter-step treatment keyword family. -
HYBRIDTYPES
Hybrid reasoning type keyword family. -
DBTYPE
Database type keyword family. -
DRIVERTYPE
Database driver type keyword family. -
DBMSDRIVERPARAMETERS
DBMS driver parameter keyword family. -
STORAGELAYOUT
Storage layout keyword family. -
FACTBASE
Fact-base file extension keyword family. -
QUERYBASE
Query-base file extension keyword family. -
RULEBASE
Rule-base file extension keyword family. -
MAPPINGBASE
Mapping-base file extension keyword family. -
MONITORINGOPERATIONS
Monitoring operation keyword family. -
MAX
Open parameters -
RANK
Maximum reasoning rank parameter. -
TIMEOUT
Timeout parameter. -
INTERRUPT
Interrupt flag parameter. -
URL
DBMS URL parameter. -
PORT
DBMS port parameter. -
DATABASE_NAME
Database name parameter. -
USER_NAME
Database user name parameter. -
USER_PASSWORD
Database user password parameter. -
CLEAR_DB
Database clearing mode parameter. -
EXPLANATION
Explanation category parameter. -
EXPLAINER_VERBOSITY
Explainer verbosity parameter. -
EXPLAINER_SOLVER
Explainer solver parameter. -
EXPLAINER_GRI_COMPUTATION
Graph-of-rule-instances computation parameter. -
EXPLAINER_GRI_TYPE
Graph-of-rule-instances storage parameter. -
EXPLANATION_SUPPORT_TYPE
Explanation support type parameter. -
EXPLANATION_GMUS_SOLVER_TREHSOLD
GMUS solver threshold parameter. -
EXPLANATION_MARCO_PATH_EXECUTBLE
MARCO executable path parameter.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
findKeyword
Finds the keyword associated with the given string.- Parameters:
s- The string representation of the keyword.- Returns:
- The corresponding InteGraalKeywords enum.
- Throws:
IllegalArgumentException- If the keyword is unknown.
-
checkAndGetEnumerationValue
Checks an enumeration value against the expected keyword family and returns the resolved constant.- Parameters:
s- the raw string value to resolvetype- the keyword describing the target enumeration- Returns:
- the resolved enumeration constant
-
checkValueType
Checks that a runtime value matches the declared type of a keyword.- Parameters:
s- the value to validatetype- the keyword carrying the expected value type
-
getValueType
Converts a raw string into the runtime type expected by a keyword.- Parameters:
s- the raw string representationinteGraalKeyword- the keyword describing the target type- Returns:
- the parsed value
-
getType
-
getParentEnum
Returns the parent enumeration keyword when this keyword is nested under another family.- Returns:
- A possibly empty optional containing the parent enumeration.
-
isEnumeration
public boolean isEnumeration()True iff the keyword values are defined by an enumeration- Returns:
- The class type.
-
findValue
Finds the value associated with the keyword from the given string.- Parameters:
s- The string representation of the value.- Returns:
- The corresponding value.
- Throws:
IllegalArgumentException- If the value is invalid for the keyword.
-