Ontological Frameworks for Scientific Theories