Re: [ANN] nomunofu v0.1.0

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

Received on Tuesday, 10 December 2019 09:52:49 UTC