• SPARQL debugger for DBpedia queries • SPARQL query rewriting for expected and unexpected answers • Sound and complete rule and constraint based solving procedure • Web tool support DBpedia serves as the principal resource for Linked Open Data available on the Web and is currently the largest Knowledge Graph. Queries to DBpedia resources typically utilize the SPARQL query language through its SPARQL endpoint. Errors can occur within SPARQL queries. A recent study examining SPARQL endpoint executions found that 66.9% experience runtime errors, while 20.0% may not have errors but produce empty results. Ensuring a query is both error-free and aligned with user expectations presents a challenge. This paper introduces a debugging technique for DBpedia queries aimed at aligning a specific query with expected and unexpected answers. By converting SPARQL into rules, the debugger identifies query rewrites that meet these criteria. It employs constraint solving to determine filter conditions aligning with expected and unexpected results. A semantic characterization of query rewriting is defined, for which the proposed method has been proved to be sound and complete. The paper showcases the practical use of rule systems and constraint solving within databases, more specifically in SPARQL and DBpedia, facilitating real-time query adjustment to actual datasets.
Enciso-Baños et al. (Sun,) studied this question.