A Java-based SPARQL query generator