Did you know? SWI-Prolog can talk to Java,C,C++,Python,and C#Search Documentation:
SWI-Prolog owl logoPredicate aggregate/4