all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: swedebugia <swedebugia@riseup.net>
To: Pjotr Prins <pjotr.public12@thebird.nl>
Cc: guix-devel@gnu.org
Subject: Re: [Feature idea] Adding wikidata, wikipedia & screenshot-url fields to package-recipes
Date: Fri, 2 Nov 2018 12:37:15 +0100	[thread overview]
Message-ID: <bf66028d-f788-d6eb-a201-465adaa0e232@riseup.net> (raw)
In-Reply-To: <20181102072426.t6od5xusftivw6t6@thebird.nl>

[-- Attachment #1: Type: text/plain, Size: 2297 bytes --]



On 2018-11-02 08:24, Pjotr Prins wrote:
> On Thu, Nov 01, 2018 at 11:33:48PM +0100, swedebugia wrote:  >> When you have a proof-of-concept we can even consider writing a >> 
paper about it.
That would probably be fun :) I did not write a paper for a long time 
and never in the field of computing.

>> This wikidata endeavor would likely take some time for me to  >> accomplish with a good mentor. > > No problem! I think it is 
actually a very good learning project. We > can help. Start small is my 
advice.
Thank you! I feel motivated.
>  >> First up is deciding whether the core procedures interacting with >> 
wikidata should be in guix or as a separate module. I suggest >> 
separate module. > > Agree. I think it can be a tool that is separate 
from Guix itself. > Just start with a simple query and store that either 
as an > S-expression or as JSON. I think (eventually) we ought to do 
both so > other languages may use output too. Have a look at the tooling 
that > generates the website.
Ok. Is there a json guile module?
Will take a close look at the python module.

>  >> Then writing client procedures to interface with the SPARQL API in 
 >> wikidata. This has already been done in python 3 (beta) see >> 
[3]https://github.com/dahlia/wikidata gplv3+ >> >> We could piggyback on 
this client (essentially making guix >> dependent on python :/) or 
better yet contribute to one of the >> existing guile sql libraries: > > 
Personally I would use the Python stuff first and then slowly > replace 
that with Guile. That way you get to results fast and we can > improve 
over time. I personally take no issue with mixing stuff. And > because 
it is a separate tool it is your choice anyway. I think also, > 
initially, we should build a separate website that can display all > 
this information. That way you have full freedom on implementation > and 
experiments.
How would I go about mixing python and guile?
Export the list of package records from guile -> JSON and import in a 
python script?
Can I call a python-script from guile and receive input from it?

So something like:
iterate over record fields
calling a python script to fetch data from wikidata
acting on the data
feeding it to the console/web template code
fire up the webserver serving the html

Cheers
Swedebugia


[-- Attachment #2: Type: text/html, Size: 3262 bytes --]

  reply	other threads:[~2018-11-02 11:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-01  9:44 [Feature idea] Adding wikidata, wikipedia & screenshot-url fields to package-recipes swedebugia
2018-11-01 10:21 ` Pjotr Prins
2018-11-01 22:33   ` swedebugia
2018-11-02  7:24     ` Pjotr Prins
2018-11-02 11:37       ` swedebugia [this message]
2018-11-02 15:37         ` Pjotr Prins
2018-11-01 13:37 ` Amirouche Boubekki
2018-11-01 23:25   ` swedebugia
2018-11-03  7:53     ` Catonano
2018-11-01 15:00 ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bf66028d-f788-d6eb-a201-465adaa0e232@riseup.net \
    --to=swedebugia@riseup.net \
    --cc=guix-devel@gnu.org \
    --cc=pjotr.public12@thebird.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.