From Semantic Web and MAS to Agentic AI: A Unified Narrative of the Web of Agents