aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-07-18 17:16:03 +0300
committerBonfaceKilz2023-07-30 12:29:56 +0300
commit5968603917672915f46d0715a47a0d0f9da34bec (patch)
tree8a0b7877ae991cb78a0630338db00e5020aa7109
parent90225bfaef8227ae47a592a2e3319633ff367adb (diff)
downloadgn-transform-databases-5968603917672915f46d0715a47a0d0f9da34bec.tar.gz
Use size of the results set to come up with sparql example
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rw-r--r--dump/special-forms.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/dump/special-forms.scm b/dump/special-forms.scm
index 738c48c..88c2e82 100644
--- a/dump/special-forms.scm
+++ b/dump/special-forms.scm
@@ -498,8 +498,8 @@ The above query results to triples that have the form:
(let ((n (truncate
(+ (max (exact-integer-sqrt (length result))) 1))))
(if (< n 3)
- (truncate (/ (length result) 2))
- n)))))
+ (length result)
+ n)))))
(format #t "SELECT ?s ?p ?o WHERE { ~%")
(for-each (match-lambda
((predicate . object)