This small change __import__ change is needed to make aacore behave under modwsgi
Implement a simple SPARQL endpoint, accessible through POST requests.

> Protocol clients may send protocol requests via the HTTP POST method
> by including the query directly and unencoded as the HTTP request
> message body.  [1]

Sends back Sparql results in an XML serialisation,
with mime/type application/sparql-results+xml [2]

[1] http://www.w3.org/TR/sparql11-protocol/#query-via-post-direct
[2] http://www.w3.org/TR/rdf-sparql-XMLres/#mime

Example code to call this in jQuery:

var query = jQuery.ajax({
    url: "/sparql/",
    type: "POST",
    data: SPARQL,
    dataType: "xml",
    contentType: "application/sparql-query",
    processData: false,
    success: function (data) {
        console.log(data);
    },
    error: function(xhr, status, error) {
        console.log("error!");
        console.log(xhr, status, error);
    },
});