We consider the recommendations of the World Wide Web Consortium (W3C) about RDF framework and its 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. We define RDF graphs as well as SPARQL basic graph patterns as objects of some nested categories. This allows one to clarify, in particular, the role of blank nodes. Furthermore, we consider basic SPARQL CONSTRUCT and SELECT queries and formalize their operational semantics following a novel algebraic graph transformation approach called POIM.
翻译:我们考虑了万维网联合会(W3C)关于卢旺达发展基金框架及其相关查询语言SPARQL的建议,我们根据分类理论提出了一个新的正式框架,对卢旺达发展基金和SPARQL的主要基本特征提供了明确和简洁的正式定义。我们把卢旺达发展基金的图表以及SPARQL基本图表模式界定为某些嵌套类别的对象,从而可以特别澄清空白节点的作用。此外,我们考虑了基础的SPARQL CONSTRCUCT和SELECT查询,并按照称为POIM的新型代数图变换法,正式确定其作业语义。