unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Amirouche Boubekki <amirouche.boubekki-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Guile User <guile-user-mXXj517/zsQ@public.gmane.org>,
	 Discussion list for the Wikidata project
	<Wikidata-RusutVdil2icGmH+5r0DM0B+6BGkLq7r@public.gmane.org>,
	semantic-web <semantic-web-Pl0VvzL1eo4@public.gmane.org>
Subject: Re: [ANN] nomunofu v0.1.0
Date: Tue, 10 Dec 2019 10:52:35 +0100	[thread overview]
Message-ID: <CAL7_Mo-u0TF28rGmh88cPFF-KSkt0X-T1TUM5h7EnQoybcEvnQ@mail.gmail.com> (raw)
In-Reply-To: <CAL7_Mo_iaGff9qPOq7ic0i3epwd0wR-JKJcRAy_q4et5Lgo=bg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

Le dim. 8 déc. 2019 à 18:52, Amirouche Boubekki
<amirouche.boubekki@gmail.com> a écrit :
>
> I am very pleased to announce the immediate availability of nomunofu.
>
> nomunofu is database server written in GNU Guile that is powered by WiredTiger ordered key-value store.
>
> It allows to store and query triples.  The goal is to make it much easier, definitely faster to query as big as possible tuples of three items.  To achieve that goal, the server part of the database is made very simple and it only knows how to do pattern matching.  Also, it is possible to swap the storage engine to something that is horizontally scalable and resilient.
>

I pushed portable binaries built with gnu guix for amd64 with a small
database file. You can download it with the following command:

  $ wget https://hyper.dev/nomunofu-v0.1.3.tar.gz

The uncompressed directory is 7GB.

Once you have downloaded the tarball, you can do the following cli
dance to run the database server:

  $ tar xf nomunofu-v0.1.3.tar.gz && cd nomunofu && ./nomunofu serve 8080

The database will be available on port 8080. Then you can use the
python client to do queries.

Here is example run on the current dataset, that queries for instance
of (P31) government (Q3624078):

In [1]: from nomunofu import Nomunofu
In [2]: from nomunofu import var
In [3]: nomunofu = Nomunofu('http://localhost:8080');
In [4]: nomunofu.query((var('uid'),
'http://www.wikidata.org/prop/direct/P31',
'http://www.wikidata.org/entity/Q3624078'), (var('uid'),
'http://www.w3.org/2000/01/rdf-schema#label', var('label')))

Out[4]:
[{'uid': 'http://www.wikidata.org/entity/Q31', 'label': 'Belgium'},
 {'uid': 'http://www.wikidata.org/entity/Q183', 'label': 'Germany'},
 {'uid': 'http://www.wikidata.org/entity/Q148', 'label': 'China'},
 {'uid': 'http://www.wikidata.org/entity/Q148',
  'label': "People's Republic of China"},
 {'uid': 'http://www.wikidata.org/entity/Q801', 'label': 'Israel'},
 {'uid': 'http://www.wikidata.org/entity/Q45', 'label': 'Portugal'},
 {'uid': 'http://www.wikidata.org/entity/Q155', 'label': 'Brazil'},
 {'uid': 'http://www.wikidata.org/entity/Q916', 'label': 'Angola'},
 {'uid': 'http://www.wikidata.org/entity/Q233', 'label': 'Malta'},
 {'uid': 'http://www.wikidata.org/entity/Q878',
  'label': 'United Arab Emirates'},
 {'uid': 'http://www.wikidata.org/entity/Q686', 'label': 'Vanuatu'},
 {'uid': 'http://www.wikidata.org/entity/Q869', 'label': 'Thailand'},
 {'uid': 'http://www.wikidata.org/entity/Q863', 'label': 'Tajikistan'},
 {'uid': 'http://www.wikidata.org/entity/Q1049', 'label': 'Sudan'},
 {'uid': 'http://www.wikidata.org/entity/Q1044', 'label': 'Sierra Leone'},
 {'uid': 'http://www.wikidata.org/entity/Q912', 'label': 'Mali'},
 {'uid': 'http://www.wikidata.org/entity/Q819', 'label': 'Laos'},
 {'uid': 'http://www.wikidata.org/entity/Q298', 'label': 'Chile'},
 {'uid': 'http://www.wikidata.org/entity/Q398', 'label': 'Bahrain'},
 {'uid': 'http://www.wikidata.org/entity/Q12560', 'label': 'Ottoman Empire'}]

As of right now there is less than 10 000 000 triples that were
imported. Blank nodes are included, but only english labels are
imported.

You can find the source code at:

  https://github.com/amirouche/nomunofu

I hope you have a good day!

Amirouche ~ zig ~ https://hyper.dev

_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata

  parent reply	other threads:[~2019-12-10  9:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-08 17:52 [ANN] nomunofu v0.1.0 Amirouche Boubekki
     [not found] ` <CAL7_Mo_iaGff9qPOq7ic0i3epwd0wR-JKJcRAy_q4et5Lgo=bg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-12-10  9:52   ` Amirouche Boubekki [this message]
2019-12-12 14:57     ` Amirouche Boubekki
2019-12-12 15:57       ` tomas
2019-12-16 12:49         ` Amirouche Boubekki
2019-12-22 20:17     ` Amirouche Boubekki
     [not found]       ` <CAL7_Mo_JxZjrrXQzE99nKgoZ94mVrbQLMT+15Gb9PwioOFQVkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-12-22 23:36         ` Ted Thibodeau Jr
2019-12-23  8:56           ` [Wikidata] " tomas
2019-12-23 12:34             ` Roel Janssen

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=CAL7_Mo-u0TF28rGmh88cPFF-KSkt0X-T1TUM5h7EnQoybcEvnQ@mail.gmail.com \
    --to=amirouche.boubekki-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=Wikidata-RusutVdil2icGmH+5r0DM0B+6BGkLq7r@public.gmane.org \
    --cc=guile-user-mXXj517/zsQ@public.gmane.org \
    --cc=semantic-web-Pl0VvzL1eo4@public.gmane.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).