Functional Categorization of Knowledge: Applications in Modeling Scientific Research and Discovery