[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New library: guile-wikidata

From: Roel Janssen
Subject: Re: New library: guile-wikidata
Date: Tue, 11 Dec 2018 11:29:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

On 11-12-18 01:32, address@hidden wrote:
On 2018-12-09 22:26, Arne Babenhauserheide wrote:
address@hidden writes:

On Sun, Dec 09, 2018 at 01:11:05AM -0800, address@hidden wrote:

I worked hard for a few days playing with guile.

Pre-release now at

This is pretty exciting. Hoping to find a relief from my stern project

That looks pretty cool — I didn’t know wikidata.

The search procedure looks like it wants to be in the readme as an
example :-)

You could add a header and exported main function to also use this
module as script file:


#!/usr/bin/env bash
# -*- scheme -*
exec -a "$0" guile -L "$(dirname "$0")" -e '(wikidata)' -c '' "$@"
;; !# ;; this ends the inline comment started by the hashbang


   #:export (show main))


(define (main args)
   (if (null? (cdr args)) (format #t "usage: ... ~s" (first args))
     (let ((query (first args))
           (count (if (> (len args) 1) (second args) 10)))
          (search query count))))

Add `chmod +x wikidata.scm` and you can run it as

./wikidata.scm <query> [<count>]

Best wishes,

Thanks for the tips.

I now implemented sparql queries as well. See

"guile-wikidata" looks cool! And I'm glad to see you've added SPARQL support as well. It would be great to integrate it with "guile-sparql" if you find the time for it. The "guile-sparql" code is quite short, and hopefully readable enough.. :)

I've been working on a web interface to work with RDF/SPARQL (written mostly in Guile Scheme, which uses "guile-sparql" as well). You might find it interesting:

The Guile Scheme parts are in the "web" subfolder.

Kind regards,
Roel Janssen

reply via email to

[Prev in Thread] Current Thread [Next in Thread]