Title
Type Checking Program Code Using SHACL.
Abstract
It is a strength of graph-based data formats, like RDF, that they are very flexible with representing data. To avoid run-time errors, program code that processes highly-flexible data representations exhibits the difficulty that it must always include the most general case, in which attributes might be set-valued or possibly not available. The Shapes Constraint Language (SHACL) has been devised to enforce constraints on otherwise random data structures. We present our approach, Type checking using SHACL (TyCuS), for type checking code that queries RDF data graphs validated by a SHACL shape graph. To this end, we derive SHACL shapes from queries and integrate data shapes and query shapes as types into a.-calculus. We provide the formal underpinnings and a proof of type safety for TyCuS. A programmer can use our method in order to process RDF data with simplified, type checked code that will not encounter run-time errors (with usual exceptions as type checking cannot prevent accessing empty lists).
Year
DOI
Venue
2019
10.1007/978-3-030-30793-6_23
Lecture Notes in Computer Science
Keywords
DocType
Volume
SHACL,Programming with RDF,Type checking
Conference
11778
ISSN
Citations 
PageRank 
0302-9743
0
0.34
References 
Authors
0
5
Name
Order
Citations
PageRank
Martin Leinberger1235.94
Philipp Seifer211.39
Claudia Schon3165.73
Ralf Lämmel400.34
Steffen Staab56658593.89