CycL: The Representation Language

Cyc represents knowledge in CycL, a logic-based language with a Lisp-like notation. A constant normally begins with #$, a variable begins with ?, and the predicate is written first.

MeaningSimplified CycL-Style Expression
Dana is a nurse.(#$isa #$Dana #$Nurse)
Nurses are medical professionals.(#$genls #$Nurse #$MedicalProfessional)
Dana works at City Hospital.(#$worksFor #$Dana #$CityHospital)
Every medical professional requires medical training.(#$implies
  (#$isa ?PERSON #$MedicalProfessional)
  (#$requiresTraining ?PERSON #$MedicalTraining))

The examples on this page are simplified for teaching. A production Cyc knowledge base uses existing ontology terms, argument constraints, carefully chosen contexts, and more detailed representations.

Ontology

CycL is more expressive than a simple subject–relation–object knowledge graph. It can represent rules, quantifiers, events, propositions as arguments, relations with more than two arguments, and statements about beliefs or hypothetical situations.