From Semantic Web Standards

The SPARQL2XQuery framework

Name of the tool: The SPARQL2XQuery framework
Home page: The SPARQL2XQuery framework
Date of latest release:
Programming language(s) that can be used with the tool: Java
Relevant semantic web technologies: RDF, RDFS, OWL, SPARQL, XML, XML2RDF, XMLSchema2OWL, SPARQL2XQuery, Direct Mapping, GRDDL
Categories: Converter, RDF Generator, XML2RDF, SPARQL Endpoint, RDB2RDF, Search Engine
See also:
Public mailing list:
Preferred project URI:
DOAP reference:
Company or institution:

(Tool description last modified on 2014-11-12.)


The SPARQL2XQuery Framework bridges the gap and creates an interoperable environment between the Web of Linked Data (OWL/RDF/SPARQL) and the XML (XML Schema/XML/XQuery) worlds. Using the SPARQL2XQuery Framework, XML datasets can be turned into SPARQL endpoints.

The SPARQL2XQuery Framework provides a generic method for SPARQL to XQuery translation, with respect to a set of predefined mappings between ontologies and XML Schemas.

Particularly, the SPARQL2XQuery Framework provides mechanisms for: (a) Query translation (SPARQL to XQuery) (b) Mapping specification & generation (Ontology to XML Schema) and (c) Schema transformation (XML Schema to OWL).

Key Features

This SPARQL2XQuery Framework is an essential component in the Web of Linked Data that allows setting SPARQL endpoints over the existing XML data, as well as a fundamental part of ontology-based integration frameworks involving XML data sources.

  • Schema Transformation. XML Schemas are transformed to OWL ontologies using the XS2OWL module.
  • Mapping Generation. The mappings between the XML Schemas and their OWL representations can be automatically detected and stored as XML documents.
  • Mappings Specification. Mappings between OWL-RDF/S ontologies and XML Schemas can be manually specified and used in the SPARQL to XQuery translation.
  • Query Translation. SPARQL to XQuery Translation: SPARQL queries that are posed over ontologies (RDF/S - OWL), are translated into an XQuery queries that can be answered from the XML data.
  • Query Results Transformation. The query results are transformed in either SPARQL Query Result XML Format or in RDF format.
  • XML - RDF Transformation.Transformation of XML data in RDF and vice versa.


Family Frameworks

  • SPARQL-RW: Ontology Mapping and SPARQL Query Rewriting.
  • XS2OWL: Transform XML Schema into OWL otnologies.