Efficient Approximation of Well-Designed SPARQL Queries
Query response time often influences user experience in the real world. However, the time of answering a SPARQL query with its all exact solutions in large scale RDF dataset possibly exceeds users’ tolerable waiting time, especially when it contains the OPT operations since the OPT operation is the least conventional operator in SPARQL. So it becomes essential to make a trade-off between the query response time and the accuracy of their solutions. That is, partial answers can be provided for users to reduce the response query time within their tolerable waiting time. In this paper, based on the depth of the OPT operation occurring in a query, we propose an approach to obtain its all approximate queries with less depth of the OPT operation. Although queries are approximated in this method, it remains the “non-optional” query patterns from users. This paper mainly discusses those queries with well-designed patterns since the OPT operation in a well-designed pattern is really “optional”. We remove “optional” triple patterns with less depth of the OPT operation and then obtain approximate queries with different depths of the OPT operation. Furthermore, we evaluate the approximate query efficiency and solutions precision with the degree of approximation. It shows that users can keep the balance between query efficiency and solutions precision by changing the degree of approximation.
KeywordsRDF SPARQL Well-designed patterns Approximate queries
This work is supported by the program of the National Key Research and Development Program of China under 2016YFB1000603 and the National Natural Science Foundation of China (NSFC) under 61502336, 61373035. Xiaowang Zhang is supported by the Tianjin Thousand Young Talents Program.
- 2.Barcelo, P., Pichler, R., Skritek, S.: Efficient evaluation and approximation of well-designed pattern trees. In: Proceedings of PODS 2015, pp. 131–144. ACM (2015)Google Scholar
- 4.Han, X., Feng, Z., Zhang, X., Wang, X., Rao, G., Jiang, S.: On the statistical analysis of practical SPARQL queries. In: Proceedings of WebDB (2016). http://dx.doi.org/10.1145/2932194.2932196
- 5.Carroll, J.J., Dickinson, I., Dollin, C., Reynolds, D., Seaborne, A., Wilkinson, K.: Jena: implementing the semantic web recommendations. In: Proceedings of WWW 2004, pp. 74–83 (2004)Google Scholar
- 6.Kaminski, M., Kostylev, E.V.: Beyond well-designed SPARQL. In: Proceedings of ICDT 2016, pp. 5:1–5:18 (2016)Google Scholar
- 7.Klyne, G., Jeremy, C.J., McBride, B.: Resource description framework (RDF): concepts and abstract syntax. W3C Recommendation (2004)Google Scholar
- 10.Prez, J., Arenas, M., Gutierrez, C.: Semantics and complexity of SPARQL. ACM Trans. Database Syst. 34(3), 30–43 (2009)Google Scholar
- 11.Prud’Hommeaux, E., Seaborne, A.: SPARQL query language for RDF. W3C Recommendation (2008)Google Scholar