This document is the second edition of "A Semantic Web Primer" by Grigoris Antoniou and Frank van Harmelen. It provides an introduction to the key technologies underpinning the Semantic Web, including XML, RDF, RDF Schema, OWL, and rules languages. The book aims to explain these technologies and show how they can be used to publish and share machine-readable data on the Web.