XSPARQL: Traveling between the XML and RDF Worlds – and Avoiding the XSLT Pilgrimage

  • Waseem Akhtar
  • Jacek Kopecký
  • Thomas Krennwallner
  • Axel Polleres
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 5021)


With currently available tools and languages, translating between an existing XML format and RDF is a tedious and error-prone task. The importance of this problem is acknowledged by the W3C GRDDL working group who faces the issue of extracting RDF data out of existing HTML or XML files, as well as by the Web service community around SAWSDL, who need to perform lowering and lifting between RDF data from a semantic client and XML messages for a Web service. However, at the moment, both these groups rely solely on XSLT transformations between RDF/XML and the respective other XML format at hand. In this paper, we propose a more natural approach for such transformations based on merging XQuery and SPARQL into the novel language XSPARQL.We demonstrate that XSPARQL provides concise and intuitive solutions for mapping between XML and RDF in either direction, addressing both the use cases of GRDDL and SAWSDL. We also provide and describe an initial implementation of an XSPARQL engine, available for user evaluation.


SPARQL Query Triple Pattern XPath Query XPath Expression Lift Task 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


  1. 1.
    Akthar, W., Kopecký, J., Krennwallner, T., Polleres, A.: XSPARQL: Traveling between the XML and RDF worlds – and avoiding the XSLT pilgrimage. Technical Report DERI-TR-2007-12-14, DERI Galway (December 2007)Google Scholar
  2. 2.
    Beckett, D., McBride, B. (eds.): RDF/XML syntax specification (revised). W3C Rec. (February 2004)Google Scholar
  3. 3.
    Beckett, D.: Turtle - Terse RDF Triple Language (November 2007)Google Scholar
  4. 4.
    Carroll, J., Stickler, P.: TriX: RDF Triples in XML. Tech. Report HPL-2004-56, HP (May 2004)Google Scholar
  5. 5.
    Chamberlin, D., Robie, J., Boag, S., Fernández, M.F., Siméon, J., Florescu, D. (eds.): XQuery 1.0: An XML Query Language, W3C Rec. (January 2007)Google Scholar
  6. 6.
    Clark, K., Feigenbaum, L., Torres, E.: SPARQL Protocol for RDF, W3C Prop. Rec. (November 2007)Google Scholar
  7. 7.
    Draper, D., Fankhauser, P., Fernández, M., Malhotra, A., Rose, K., Rys, M., Siméon, J., Wadler, P. (eds.): XQuery 1.0 and XPath 2.0 Formal Semantics, W3C Rec. (January 2007)Google Scholar
  8. 8.
    Droop, M., Flarer, M., Groppe, J., Groppe, S., Linnemann, V., Pinggera, J., Santner, F., Schier, M., Schöpf, F., Staffler, H., Zugal, S.: TranslatingXPath Queries into SPARQLQueries. In: ODBASE 2007 (2007)Google Scholar
  9. 9.
    Connolly, D. (ed.): Gleaning Resource Descriptions from Dialects of Languages (GRDDL), W3C Rec. (September 2007)Google Scholar
  10. 10.
    Kay, M. (ed.): XSL Transformations (XSLT) Version 2.0, W3C Recommendation (January 2007)Google Scholar
  11. 11.
    Euzenat, J., Shvaiko, P.: Ontology matching. Springer, Heidelberg (2007)zbMATHGoogle Scholar
  12. 12.
    Farrell, J., Lausen, H. (eds.): Semantic Annotations for WSDL and XML Schema. W3C Rec. (August 2007)Google Scholar
  13. 13.
    Groppe, S., Groppe, J., Linneman, V., Kukulenz, D., Hoeller, N., Reinke, C.: Embedding SPARQL into XQuery/XSLT. In: SAC 2008 (March 2008) (to appear) Google Scholar
  14. 14.
    Kopecký, J., Vitvar, T., Bournez, C., Farrell, J.: SAWSDL: Semantic Annotations for WSDL and XML Schema. IEEE Internet Computing 11(6), 60–67 (2007)CrossRefGoogle Scholar
  15. 15.
    Malhotra, A., Melton, J., Walsh, N. (eds.): XQuery 1.0 and XPath 2.0 Functions and Operators, W3C Rec. (January 2007)Google Scholar
  16. 16.
    Morbidoni, C., Polleres, A., Tummarello, G., Phuoc, D.L.: Semantic Web Pipes. Technical Report DERI-TR-2007-11-07, DERI Galway (December 2007)Google Scholar
  17. 17.
    Pérez, J., Arenas, M., Gutierrez, C.: Semantics and Complexity of SPARQL. In: Cruz, I., Decker, S., Allemang, D., Preist, C., Schwabe, D., Mika, P., Uschold, M., Aroyo, L.M. (eds.) ISWC 2006. LNCS, vol. 4273, Springer, Heidelberg (2006)CrossRefGoogle Scholar
  18. 18.
    Polleres, A.: From SPARQL to Rules (and back). In: Proc. WWW 2007 (May 2007)Google Scholar
  19. 19.
    Polleres, A., Scharffe, F., Schindlauer, R.: SPARQL++ for mapping between RDF vocabularies. In: ODBASE 2007 (November 2007)Google Scholar
  20. 20.
    Prud’hommeaux, E., Seaborne, A. (eds.): SPARQL Query Language for RDF, W3C Rec. (January 2008)Google Scholar
  21. 21.
    Walsh, N.: RDF Twig: Accessing RDF Graphs in XSLT. In: Extreme Markup Languages (2003)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2008

Authors and Affiliations

  • Waseem Akhtar
    • 1
  • Jacek Kopecký
    • 2
  • Thomas Krennwallner
    • 1
  • Axel Polleres
    • 1
  1. 1.Digital Enterprise Research InstituteNational University of IrelandGalway
  2. 2.STI InnsbruckUniversity of InnsbruckAustria

Personalised recommendations