Skip to content

Commit f2bcfe9

Browse files
authored
Merge pull request #10 from mirdono/chore/extend-readme
doc: Extend README
2 parents 040b907 + 74c6282 commit f2bcfe9

8 files changed

Lines changed: 526 additions & 41 deletions

File tree

README.md

Lines changed: 512 additions & 28 deletions
Large diffs are not rendered by default.

acl/prefix.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
(defmacro define-prefixes (&body body)
1515
"Defines a series of prefixes by reading the list as a plist.
1616
17-
The car is assumed to be a keyward and the cadr is assumed to be the expanded string."
17+
The car is assumed to be a keyword and the cadr is assumed to be the expanded string."
1818
`(progn ,@(loop for (prefix expansion) on body
1919
by #'cddr
2020
collect `(define-prefix ,prefix ,expansion))))

cache/types.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ COMPLETE-P is to be understood as by DERIVE-TYPE-FROM-PREFIX-FUNCTION."
242242
else
243243
do
244244
(push (cons uri graph) missing-uri-graph-combinations)))
245-
;; now find which uri graph combitations are missing
245+
;; now find which uri graph combinations are missing
246246
;; query all missing uri graph combinations
247247
(let* ((grouped-by-uri (support:group-by missing-uri-graph-combinations #'string= :key #'car))
248248
(uri-graphs-combinations (loop for ((uri . graph) . rest) in grouped-by-uri

connection/client.lisp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
(defparameter *max-concurrent-connections* 8
1414
"The maximum amount of concurrent queries sent to a sparql endpoint.")
1515

16-
(defparameter *log-sparql-query-roundtrip* nil)
16+
(defparameter *log-sparql-query-roundtrip* nil
17+
"When set to non-nil, we log both the outgoing query sent to and response received from the sparql endpoint.")
1718

18-
(defparameter *aquire-db-semaphore-timeout* 55
19-
"Amount of time (in seconds) to wait to aquire the semaphore (default is now 55).
19+
(defparameter *acquire-db-semaphore-timeout* 55
20+
"Amount of time (in seconds) to wait to acquire the semaphore (default is now 55).
2021
21-
NIL symolizes to wait forever.")
22+
NIL symbolizes to wait forever.")
2223

2324
;; Overriding the default values here for now. Ideally these get calculated based on how much time we have left.
2425
(setf dexador.util:*default-connect-timeout* 60)
@@ -144,7 +145,7 @@ When the VERBOSE keyword is truethy, output is written to STDOUT."
144145
(defun query (string &key (send-to-single nil))
145146
"Sends a query to the backend and responds with the response body.
146147
147-
When SEND-TO-SINGLE is truethy and multple endpoints are available, the request is sent to only one of them."
148+
When SEND-TO-SINGLE is truethy and multiple endpoints are available, the request is sent to only one of them."
148149
(ensure-backends-variable)
149150
(let* ((selected-endpoints
150151
(if send-to-single
@@ -157,7 +158,7 @@ When SEND-TO-SINGLE is truethy and multple endpoints are available, the request
157158
;; - a single failing endpoint will bring the whole setup down in this implementation
158159
;; - the implementation does not fire off the queries in parallel, we may want a thread per semaphore for that
159160
;; - a full-fledged and parallel implementation likely means rewriting this whole logic and the construction of the sparql-endpoint struct
160-
(support:with-multiple-semaphores ((mapcar #'sparql-endpoint-semaphore selected-endpoints) :timeout *aquire-db-semaphore-timeout*)
161+
(support:with-multiple-semaphores ((mapcar #'sparql-endpoint-semaphore selected-endpoints) :timeout *acquire-db-semaphore-timeout*)
161162
(let ((post-handler (lambda () nil))) ; overwritten with handler on error
162163
(unwind-protect
163164
(support:with-exponential-backoff-retry

packages.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
#:operation-data-subfield
381381
#:operation-type
382382
#:operation-data)
383-
(:import-from #:sparql-parser
383+
(:import-from #:sparql-parser
384384
#:make-match
385385
#:terminal-match-string)
386386
(:import-from #:sparql-manipulation

reasoner/take-1/prefixes.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;;;; Prefixes extraction
44
;;;;
55
;;;; Many URIs are expressed using prefixes. This module extracts
6-
;;;; perfixes from a query and provides a cache-based variant to use
6+
;;;; prefixes from a query and provides a cache-based variant to use
77
;;;; them.
88
;;;;
99
;;;; This module is not thread-safe and assumes prefixes are constructed

sparql-ast/terminals.lisp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
;;;; this library was optimized to understand whether a Lisp based
99
;;;; variant would be sufficiently fast in the interpretation of the
1010
;;;; queries or whether it would be too slow. for this many parsers
11-
;;;; have to approaches available: a regular expression and hand-rolled
11+
;;;; have two approaches available: a regular expression and hand-rolled
1212
;;;; interpretation. further optimizations seem possible but the
1313
;;;; approach here has shown sufficient promise to verify the desired
1414
;;;; performance.
@@ -935,7 +935,7 @@ failure."
935935
(defmacro with-internal-runtime-processing ((var &optional (activep t)) (&rest operations) &body body)
936936
"Run code and do something with the time it took after processing.
937937
938-
The consumed time willb e stored in VAR.
938+
The consumed time will be stored in VAR.
939939
The timed operations are BODY.
940940
The cleanup processing are OPERATIONS."
941941
(if activep

updates/quad-operations-to-quads.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ variables are missing this will not lead to a pattern."
148148
(ebnf::|ValuesClause|))))))))
149149

150150
(defun quads-for-construct-bindings (bindings)
151-
"Ceates a series of quads fo the constructed bindings."
151+
"Creates a series of quads fo the constructed bindings."
152152
(loop for binding in bindings
153153
for subject = (jsown:val binding "s")
154154
for predicate = (jsown:val binding "p")

0 commit comments

Comments
 (0)