Companion
object Companion
Functions
Link copied to clipboard
fun withDefaults(additionalMappings: List<PredicateMapping> = emptyList(), rulesPath: String = DICE_RULES_RESOURCE_PATH): PrologSchema
Create a schema with default mappings and rules loaded from classpath. Looks for rules at DICE_RULES_RESOURCE_PATH (prolog/dice-rules.pl). Falls back to empty rules if not found.
Link copied to clipboard
fun withRules(rules: String, additionalMappings: List<PredicateMapping> = emptyList()): PrologSchema
Create a schema with explicit rules string (for testing or inline rules).