Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- initial pass at .add method with Reader

- testing infrastructure
  • Loading branch information...
commit 2dcd3cbef27b38537bae933f3bf1c7a07d990d52 1 parent 83710e3
Mike Hugo mjhugo authored
4 grails-app/services/com/entagen/rdf/SparqlQueryService.groovy
@@ -107,14 +107,13 @@ class SparqlQueryService {
107 107 def engine = new groovy.text.SimpleTemplateEngine()
108 108 def queryTemplate = engine.createTemplate(queryString)
109 109
110   - log.trace("executing query [${queryString}]")
111   -
112 110 for (int foundCount = limit; foundCount >= limit; offset += limit) {
113 111 foundCount = 0
114 112 TupleQueryResult result
115 113 RepositoryConnection sourceConn = sourceRepo.connection
116 114 try {
117 115 String queryWithLimits = queryTemplate.make([limits: [limit: limit, offset: offset]])
  116 + log.trace("executing query [${queryWithLimits}]")
118 117 TupleQuery tupleQuery = sourceConn.prepareTupleQuery(queryLanguage, queryWithLimits);
119 118 log.trace "Evaluating query..."
120 119 def startTime = System.currentTimeMillis()
@@ -142,6 +141,7 @@ class SparqlQueryService {
142 141 result?.close()
143 142 sourceConn.close()
144 143 }
  144 + log.trace ("done with limit ${limit} and offset ${offset}")
145 145 }
146 146 }
147 147

0 comments on commit 2dcd3cb

Please sign in to comment.
Something went wrong with that request. Please try again.