File tree 2 files changed +14
-5
lines changed
2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -147,22 +147,27 @@ Hence graph -> uri -> types in which every URI is expressed as a string and the
147
147
148
148
(defparameter *uri-graph-user-type-providers* nil
149
149
" A list of functions that can calculate the types for a list of combined graph and uri." )
150
+ (defparameter *debug-prefix-functions* nil
151
+ " Set to non-nil to emit debugging information for prefix functions." )
150
152
151
153
(defun derive-type-from-prefix-function (prefix types &optional complete-p)
152
154
" Constructs a function that derives the types of uris starting with PREFIX.
153
155
154
156
If COMPLETE-P is non-nil processing may be short-circuited but no
155
157
guarantees are given for this to be used."
156
158
(let ((prefix-length (length prefix)))
157
- (format t " ~& Types is now: ~A~% " types)
159
+ (when *debug-prefix-functions*
160
+ (format t " ~& Types is now: ~A~% " types))
158
161
(lambda (uri graph)
159
162
(declare (ignore graph))
160
- (format t " ~& Types is now: ~A~% " types)
163
+ (when *debug-prefix-functions*
164
+ (format t " ~& Types is now: ~A~% " types))
161
165
(let ((uri-length (length uri)))
162
166
(if (and (>= uri-length prefix-length)
163
167
(string= prefix (subseq uri 0 prefix-length)))
164
- (progn (format t " ~& Returning types ~A for uri ~A~% "
165
- types uri)
168
+ (progn (when *debug-prefix-functions*
169
+ (format t " ~& Returning types ~A for uri ~A~% "
170
+ types uri))
166
171
(values types complete-p))
167
172
(values nil nil ))))))
168
173
Original file line number Diff line number Diff line change @@ -93,6 +93,9 @@ comparison."
93
93
(expand-bindings bindings)
94
94
bindings)))
95
95
96
+ (defparameter *log-batch-mapping* nil
97
+ " Set to t to warn on processes which want to execute batch mapping. Batch mapping is not implemented yet and will process as one big query." )
98
+
96
99
(defun batch-map-solutions-for-select-query* (query &key (for :read ) batch-size usage)
97
100
(declare (ignore for batch-size))
98
101
(sparql-parser :with-sparql-ast query
@@ -101,7 +104,8 @@ comparison."
101
104
query))
102
105
(query-string (sparql-generator :write-valid altered-query)))
103
106
; ; (break "Batch mapping ~A" query-string)
104
- (format t " ~& Batch mapping ~A~% " query-string)
107
+ (when *log-batch-mapping*
108
+ (format t " ~& Batch mapping ~A~% " query-string))
105
109
(client :bindings (client :query query-string)))))
106
110
107
111
(defun batch-create-full-solution-for-select-query (query &key (for :read ) batch-size usage)
You can’t perform that action at this time.
0 commit comments