[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
New library: guile-wikidata
From: |
swedebugia |
Subject: |
New library: guile-wikidata |
Date: |
Sun, 09 Dec 2018 01:11:05 -0800 |
Hi
I worked hard for a few days playing with guile.
Pre-release now at https://gitlab.com/swedebugia/guile-wikidata
Next step is to implement looking up the entities for the result and
filter on instance of (the properties). E.g. software. Or query wikidata
with SPARQL and guile-sparql.
:D
What do you think?
I tried reuse code and abstract away a la Guile. This is my first
program so feel free to give it a review and ideas for improvement.
It depends on (guix import json) right now to be able to fetch and
return an alist and I'm keen on removing this dependency before the
first release.
Happy hacking with wikidata!
Cheers
swedebugia
-------- Original Message --------
Subject: New library: guile-wikidata
Date: 2018-12-04 23:03
From: address@hidden
To: guix-devel <address@hidden>
Hi
I worked hard for a few hours playing with guile and came up with this.
Next step is to implement looking up the entities for the result and
filter on instance of (the properties). E.g. software.
:D
What do you think?
I tried reuse code and abstract away in a a la Guile. This is my first
program so feel free to give it a review and ideas for improvement.
It depends on (guix import json) right now and I think we should
upstream those two json-to-alist functions to guile-json.
Example output:
scheme@(guile-user) [25]> (show-first-result "gcc")
1.: Q178940: GNU Compiler Collection: compiler system with support for
various programming languages
scheme@(guile-user) [25]> (show-first-result "emacs")
1.: Q189722: Emacs: family of text editors
scheme@(guile-user) [25]> (show-first-result "guile")
1.: Q601244: Guile: character from the Street Fighter fighting game
series
scheme@(guile-user) [25]> (show-first-result "openssh")
1.: Q847062: OpenSSH: set of computer programs providing encrypted
communication sessions
scheme@(guile-user) [25]> (show-first-result "automake")
1.: Q1324275: Automake: tool for generating GNU Standards-compliant
Makefiles
Not so reliable output for bioinformatics packages:
scheme@(guile-user) [25]> (show-first-result "aragorn")
1.: Q180322: Aragorn: character from the Lord of the Rings
$19 = #t
scheme@(guile-user) [25]> (show-first-result "bamm")
1.: Q12819323: Bamm: Uzbek name of deep and dark sounds of stringed
instruments
$20 = #t
scheme@(guile-user) [25]> (show-first-result "bamtools")
1.: Q30426432: BamTools: a C++ API and toolkit for analyzing and
managing BAM files.: scientific article
$21 = #t
scheme@(guile-user) [25]> (show-first-result "bcftools")
1.: Q31041251: BCFtools/RoH: a hidden Markov model approach for
detecting autozygosity from next-generation sequencing data.:\
scientific article
$22 = #t
scheme@(guile-user) [25]> (show-first-result "bedops")
1.: Q36076319: BEDOPS: high-performance genomic feature operations.:
scientific article
$23 = #t
scheme@(guile-user) [25]> (show-first-result "blast+")
1.: Q179057: explosion: sudden release of energy through high
temperatures and gas expansion
$24 = #t
--
Cheers
Swedebugia
- New library: guile-wikidata,
swedebugia <=
- Re: New library: guile-wikidata, tomas, 2018/12/09
- Re: New library: guile-wikidata, Arne Babenhauserheide, 2018/12/09
- Re: New library: guile-wikidata, swedebugia, 2018/12/10
- Re: New library: guile-wikidata, Roel Janssen, 2018/12/11
- Re: New library: guile-wikidata, swedebugia, 2018/12/13
- Trouble parsing a response (Was: Re: New library: guile-wikidata), swedebugia, 2018/12/13
- Re: Trouble parsing a response (Was: Re: New library: guile-wikidata), Roel Janssen, 2018/12/13
- Re: Trouble parsing a response, swedebugia, 2018/12/13
- Re: Trouble parsing a response, Roel Janssen, 2018/12/14
- Re: Trouble parsing a response (Was: Re: New library: guile-wikidata), swedebugia, 2018/12/26