From http://jena.apache.org/documentation/query/app_api.html