PrologSchema

class PrologSchema(mappings: List<PredicateMapping>, baseRules: String = "")

Schema defining how relationships map to Prolog predicates. Also holds base inference rules.

Constructors

Link copied to clipboard
constructor(mappings: List<PredicateMapping>, baseRules: String = "")

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

All defined predicates.

Link copied to clipboard

Get the base inference rules.

Link copied to clipboard
fun getMapping(relationshipType: String): PredicateMapping?

Get the predicate mapping for a relationship type. Handles both UPPER_SNAKE_CASE and camelCase input.

Link copied to clipboard
fun getPredicate(relationshipType: String): String

Get the predicate name for a relationship type, or derive one. Converts camelCase (e.g., "expertIn") to snake_case (e.g., "expert_in").