Authors:Dominique Duval (LMC - IMAG), Rachid Echahed (LIG Laboratoire d'Informatique de Grenoble), Frederic Prost (LIG) (Submitted on 16 Oct 2019) Abstract: We consider the recommendations of the World Wide Web Consortium (W3C) about the Resource Description Framework (RDF) and the associated query language SPARQL. We propose a new formal framework based on category theory which provides clear and concise formal definitions of the main basic features of RDF and SPARQL.