Companion

object Companion

Properties

Link copied to clipboard
val DEFAULT_MAPPINGS: <Error class: unknown class>

Default relationship-to-predicate mappings.

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).