In constraint languages for RDF graphs, such as ShEx and SHACL, constraints on nodes and their properties in RDF graphs are known as "shapes". Schemas in these languages list the various shapes that certain targeted nodes must satisfy for the graph to conform to the schema. Using SHACL, we propose in this paper a novel use of shapes, by which a set of shapes is used to extract a subgraph from an RDF graph, the so-called shape fragment. Our proposed mechanism fits in the framework of Linked Data Fragments. In this paper, (i) we define our extraction mechanism formally, building on recently proposed SHACL formalizations; (ii) we establish correctness properties, which relate shape fragments to notions of provenance for database queries; (iii) we compare shape fragments with SPARQL queries; (iv) we discuss implementation options; and (v) we present initial experiments demonstrating that shape fragments are a feasible new idea.
TU Wien(维也纳工业大学);Univ. Lille(里尔大学);Birkbeck, University of London(伦敦大学伯贝克学院);University of Oviedo(奥维耶多大学);University of Bayreuth(拜罗伊特大学);Universita di Napoli Federico II(那不勒斯费德里科二世大学);University of Warsaw(华沙大学);Paderborn University(帕德博恩大学);Free University of Bolzano(波尔扎诺自由大学);University of Białystok(比亚韦斯托克大学)
sheval: An RDF data shapes evaluation tool and test-suite for recursive shapes
Birkbeck, University of London(伦敦大学伯贝克学院);University of Oviedo(奥维耶多大学);University of Bayreuth(拜罗伊特大学);University of Warsaw(华沙大学);Paderborn University(帕德博恩大学);Free University of Bolzano(博尔扎诺自由大学);University of Białystok(比亚韦斯托克大学)
A Formal Diagnostic Framework for Graph Repair Systems
UC Berkeley(加州大学伯克利分校);Lawrence Berkeley National Laboratory(伯克利国家实验室);National Renewable Energy Laboratory(国家可再生能源实验室);Colorado School of Mines(科罗拉多矿业学院)
Transforming Shape Schemas with Composable Property-Graph Queries (Extended Version)
The Software Languages Team(软件语言团队);University of Koblenz(科伦茨大学);Institute for Artificial Intelligence(人工智能研究所);University of Stuttgart(斯图加特大学);University of Southampton(南安普顿大学)