The three shikhar (top) of a Jain temple represents Ratnatraya (three jewels)
The ratnatraya are the three jewels of Jainism, namely samyak darshana (right faith or view), samyak gyana (right knowledge), and samyak charitra (right conduct), which constitute the path to liberation.
The path to liberation
Right faith, right knowledge, and right conduct (together) constitute the path to liberation.
—Tattvārthasūtra (1-1)
For ascetics, the spiritual goal in Jainism is to reach moksha. But for most Jain laypersons, it is to accumulate good karma that leads to a better rebirth and brings them a step closer to liberation. Purification of the soul and liberation can be achieved through the three jewels (ratnatraya): samyak darśana, right vision or faith in the Jain teachings or scriptures, more specifically faith in the seven tattvas; samyak gyana, right knowledge and understanding of the Jain teachings, more specifically of self (jiva) and non-self (ajiva); and samyak charitra, correct conduct, that is, behavior consistent with these teachings and the five vows. Jain texts often add samyak tapas (correct asceticism) as a fourth jewel, emphasizing ascetic practices as the means to liberation (moksha). The four jewels are called Moksha Marga (the path of liberation).
Right faith
Acharya Umaswami states in Tattvārthasūtra (1-2) that "Belief in substances [tattvas] ascertained as they are is right faith." According to the Digambara, there are seven tattva:
jīva — the soul which is characterized by consciousness.
ajīva — the non-soul
āsrava — inflow of auspicious and evil karmic matter into the soul.
bondage (Bandha) — mutual intermingling of the soul and karmas
Samvara (stoppage) — obstruction of the inflow of karmic matter into the soul.
Nirjara — gradual dissociation of karmic matter from the soul
Moksha (liberation) — complete annihilation of all karmic matter (bound with any particular soul)
Right conduct
Right conduct is the application of the knowledge developed, so as to exercise control over our inner desires and reach a stage where there is no attachment or aversion.