Semantic Agent Systems: Foundations and Applications