Ontologies -- Effective Integration of Declarative Rules with External Evaluations for