Ontology is the definition of ideas and their relations. You can do ontology on a particular subject.

In the context of philosophy it’s focused on being -> ‘What is being?’

In information science it’s focused more on knowledge representation.