Commits

Sam Adams committed 0b6ee86

Tidying up SparqlBuilder

  • Participants
  • Parent commits 01a7522

Comments (0)

Files changed (1)

File chemistry-search-structure/src/main/java/net/chempound/webapp/search/chemistry/StructureSearchProvider.java

 import net.chempound.chemistry.inchi.InchiTool;
 import net.chempound.rdf.cml.CmlRdf;
 import net.chempound.webapp.search.AbstractSearchProvider;
-import net.chempound.webapp.search.SparqlQuery;
+import net.chempound.webapp.search.SparqlQueryBuilder;
 import nu.xom.Document;
 import org.apache.commons.io.IOUtils;
 import org.apache.http.HttpResponse;
     }
 
     @Override
-    public SparqlQuery createSparqlQuery(final Map<String, String> form) {
+    public SparqlQueryBuilder createSparqlQuery(final Map<String, String> form) {
         final StructureSparqlQuery queryString = new StructureSparqlQuery();
         processName(form, queryString);
         processSmiles(form, queryString);
         }
     }
 
-    static class StructureSparqlQuery extends SparqlQuery {
+    static class StructureSparqlQuery extends SparqlQueryBuilder {
 
         public void addInchiKey(final String value) {
             statements.add("  ?item <"+ CmlRdf.inchiKey +"> ?id"+i+ " .\n");