Skip to main content

SPARQLog: SPARQL with Rules and Quantification

  • Chapter
  • First Online:
Semantic Web Information Management

Abstract

SPARQL has become the gold-standard for RDF query languages. Nevertheless, we believe there is further room for improving RDF query languages. In this chapter, we investigate the addition of rules and quantifier alternation to SPARQL. That extension, called SPARQLog, extends previous RDF query languages by arbitrary quantifier alternation: blank nodes may occur in the scope of all, some, or none of the universal variables of a rule. In addition, SPARQLog is aware of important RDF features such as the distinction between blank nodes, literals and IRIs or the RDFS vocabulary. The semantics of SPARQLog is closed (every answer is an RDF graph), but lifts RDF’s restrictions on literal and blank node occurrences for intermediary data. We show how to define a sound and complete operational semantics that can be implemented using existing logic programming techniques. While SPARQLog is Turing complete, we identify a decidable (in fact, polynomial time) fragment SwARQLog ensuring polynomial data-complexity inspired from the notion of super-weak acyclicity in data exchange. Furthermore, we prove that SPARQLog with no universal quantifiers in the scope of existential ones ( fragment) is equivalent to full SPARQLog in presence of graph projection. Thus, the convenience of arbitrary quantifier alternation comes, in fact, for free. These results, though here presented in the context of RDF querying, apply similarly also in the more general setting of data exchange.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Broekstra, J., Kampman, A.: An rdf query and transformation language. In: Semantic Web and Peer-to-Peer, pp. 23–39. Springer, Berlin (2006)

    Chapter  Google Scholar 

  2. Bry, F., Furche, T., Ley, C., Linse, B., Marnette, B.: Rdflog: It’s like datalog for rdf. In: Proc. Workshop on (Constraint) Logic Programming (WLP) (2008)

    Google Scholar 

  3. Bry, F., Furche, T., Ley, C., Linse, B., Marnette, B.: Taming existence in rdf querying. In: Proc. Int’l. Conf. on Web Reasoning and Rule Systems (RR) (2008)

    Google Scholar 

  4. Deutsch, A., Nash, A., Remmel, J.: The chase revisited. In: Proc. ACM Symp. on Principles of Database Systems (PODS), pp. 149–158. ACM, New York (2008)

    Google Scholar 

  5. Ebbinghaus, H.D., Flum, J., Thomas, W.: Mathematical Logic. Springer, Berlin (1994)

    MATH  Google Scholar 

  6. Fagin, R., Kolaitis, P.G., Miller, R.J., Popa, L.: Data exchange: Semantics and query answering. In: Proc. Int’l. Conf. on Database Theory (ICDT), pp. 207–224 (2003)

    Google Scholar 

  7. Fagin, R., Kolaitis, P.G., Popa, L.: Data exchange: Getting to the core. ACM Trans. Database Syst. 30(1), 174–210 (2005)

    Article  MathSciNet  Google Scholar 

  8. Fagin, R., Kolaitis, P.G., Popa, L., Tan, W.C.: Composing schema mappings: Second-order dependencies to the rescue. ACM Trans. Database Syst. 30(4), 994–1055 (2005)

    Article  Google Scholar 

  9. Furche, T., Linse, B., Bry, F., Plexousakis, D., Gottlob, G.: RDF querying: language constructs and evaluation methods compared. In: Tutorial Lectures Int’l. Summer School ‘Reasoning Web’. Lecture Notes in Computer Science, vol. 4126, pp. 1–52. Springer, Berlin (2006). 19 citations [Google Scholar]

    Google Scholar 

  10. Gutierrez, C., Hurtado, C., Mendelzon, A.O.: Foundations of Semantic Web databases. In: Proc. ACM Symp. on Principles of Database Systems (PODS), pp. 95–106. ACM, New York (2004)

    Google Scholar 

  11. Hayes, P., McBride, B.: Rdf semantics. Recommendation, W3C (2004)

    Google Scholar 

  12. Karvounarakis, G., Alexaki, S., Christophides, V., Plexousakis, D., Scholl, M.: Rql: a declarative query language for rdf. In: Proc. Int’l. World Wide Web Conf. (WWW), pp. 592–603. ACM, New York (2002)

    Google Scholar 

  13. Marnette, B.: Generalized schema-mappings: From termination to tractability. In: Proc. ACM Symp. on Management of Data (SIGMOD). ACM, New York (2009)

    Google Scholar 

  14. Meier, M., Schmidt, M., Lausen, G.: Stop the chase. CoRR (2009). arXiv:0901.3984

  15. Muñoz, S., Pérez, J., Gutierrez, C.: Minimal deductive systems for rdf. In: Proc. European Semantic Web Conf. (ESWC). Lecture Notes in Computer Science, vol. 4519, pp. 53–67. Springer, Berlin (2007)

    Google Scholar 

  16. Noy, N., Rector, A., Hayes, P., Welty, C.: Defining n-ary relations on the Semantic Web. Working group note, W3C (2006)

    Google Scholar 

  17. Oetsch, J., Tompits, H., Woltran, S.: Facts do not cease to exist because they are ignored: Relativised uniform equivalence with answer-set projection. In: Proc. Nat’l. Conf. on Artificial Intelligence (AAAI), pp. 458–464 (2007)

    Google Scholar 

  18. Polleres, A.: From sparql to rules (and back). In: Proc. Int’l. World Wide Web Conf. (WWW), pp. 787–796. ACM, New York (2007)

    Chapter  Google Scholar 

  19. Prud’hommeaux, E., Seaborne, A.: SPARQL Query Language for RDF. Proposed Recommendation, W3C (2007)

    Google Scholar 

  20. Rosati, R.: The limits and possibilities of combining description logics and datalog. In: Proc. Int. Conf. on Rule Markup Languages (RuleML), pp. 3–4 (2006)

    Google Scholar 

  21. Schenk, S., Staab, S.: Networked graphs: a declarative mechanism for sparql rules, sparql views and rdf data integration on the web. In: Proc. Int’l. World Wide Web Conf. (WWW), pp. 585–594. ACM, New York (2008)

    Chapter  Google Scholar 

  22. Schmidt, M., Meier, M., Lausen, G.: Foundations of sparql query optimization. CoRR (2008). arXiv:0812.3788

  23. Sintek, M., Decker, S.: Triple—a query, inference, and transformation language for the Semantic Web. In: Proc. Int’l. Semantic Web Conf. (ISWC) (2002)

    Google Scholar 

  24. ter Horst, H.J.: Completeness, decidability and complexity of entailment for rdf schema and a semantic extension involving the owl vocabulary. In: Web Semantics: Science, Services and Agents on the World Wide Web3 (2005)

    Google Scholar 

  25. Yang, G., Kifer, M.: Reasoning about anonymous resources and meta statements on the Semantic Web. J. Data Semant. 1, 69–97 (2003)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to François Bry .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2010 Springer-Verlag Berlin Heidelberg

About this chapter

Cite this chapter

Bry, F., Furche, T., Marnette, B., Ley, C., Linse, B., Poppe, O. (2010). SPARQLog: SPARQL with Rules and Quantification. In: de Virgilio, R., Giunchiglia, F., Tanca, L. (eds) Semantic Web Information Management. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-04329-1_15

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-04329-1_15

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-04328-4

  • Online ISBN: 978-3-642-04329-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics