From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Amirouche Boubekki Newsgroups: gmane.lisp.guile.user,gmane.org.wikimedia.wikidata,gmane.org.w3c.semantic-web Subject: Re: [ANN] nomunofu v0.1.0 Date: Thu, 12 Dec 2019 15:57:18 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="5399"; mail-complaints-to="usenet@blaine.gmane.org" To: Guile User , Discussion list for the Wikidata project , semantic-web Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Dec 12 15:57:58 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ifPue-0001D8-UZ for guile-user@m.gmane.org; Thu, 12 Dec 2019 15:57:57 +0100 Original-Received: from localhost ([::1]:60946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifPud-0003nV-5J for guile-user@m.gmane.org; Thu, 12 Dec 2019 09:57:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40005) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ifPuH-0003nK-49 for guile-user@gnu.org; Thu, 12 Dec 2019 09:57:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ifPuF-0006df-L7 for guile-user@gnu.org; Thu, 12 Dec 2019 09:57:32 -0500 Original-Received: from mail-vs1-xe29.google.com ([2607:f8b0:4864:20::e29]:38013) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ifPuF-0006as-E3 for guile-user@gnu.org; Thu, 12 Dec 2019 09:57:31 -0500 Original-Received: by mail-vs1-xe29.google.com with SMTP id y195so1761310vsy.5 for ; Thu, 12 Dec 2019 06:57:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=6aNbs4nsid7FdU0tTfLcu1/0qkoGLJGnpwmBGO36Mjk=; b=sD8AjHY79NuxSHK5XHgqnpCaFIkLQTE9V88r18IuVi0hp9zCFrFlGG8MbrPxEPlxhC MBLMEzmRM8pogjr3a9ee4pOOKFtr+pN9hyOzlW30JGIuVngrtX0W4Qs7acRCcZtayLAc UMgyFpUZ9sosaXmqHOaiNEJDFOe+tNNG3AxlWGl2qtGZUdGp2VL/QQOWMs3uS876Ubqf L0HjqLIRom+2HjckVAJmQgxKlz9QJiCLhanopbScfPs7c19Uc2XU0vRbe4l6IjxCX4WF s7tV29s552hh/TVq9neflSLLJkH41nIBH3LB6rpH7O+iDd8PJ6s8HTzGXU33C0RAxkch yCyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=6aNbs4nsid7FdU0tTfLcu1/0qkoGLJGnpwmBGO36Mjk=; b=NWaDDu7jh8NL8QXt27phPRYPHYkXry6ZPB2ZxFkF9pA8lLWHaWUwMuOQjpNEkOzQNr UZTVknpwiUGTNnzTlIjGurqjXIt1kUpTNgFKMcEfjyx6IYR+tasXvPhOSl0wrgPhRW8M jZZIDeOC6uLwcZIs3Gi0/Ksp2VMrOqpG7toiHFfplukJ4Qxag21tl57M7QMx4jBSx2G4 BsA6PVEPU50M+8TkH06SbTNMkiYCIsrNmJ40L4XLSkpHk0hmz1rspYgxj2U138jZewVC 7hL4Oc4NSReXxu4VWOSKlqIMfa12LwQF4CzGtYkDf5hashgeXgFtmuijtmgUmWTn0Dkr Ldyg== X-Gm-Message-State: APjAAAXF3h32IdQkhQP153H6lVZMgQu4Xrwr9uJHobj9mgX0MfPA2MLY EuDoBGdG6Kn9SqWtFbgmbwGuzKqcCyyO1Jt08AN4wuRC X-Google-Smtp-Source: APXvYqzTTbBBEZw71gN0dSmNJW+rxiQoInU8dutV1vrWXw2U3vCdHHvrDBhXBTJzrHr6z1lrbQIldL2A253QjuvtvSk= X-Received: by 2002:a67:f2d7:: with SMTP id a23mr6936849vsn.114.1576162649960; Thu, 12 Dec 2019 06:57:29 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::e29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15946 gmane.org.wikimedia.wikidata:12812 gmane.org.w3c.semantic-web:26082 Archived-At: I am pleased to share with you the v0.1.4 binary release. It contains the following improvements: - The REST API takes JSON as input, which will make it easier to create clients in other programming languages; - The REST API takes limit and offset as query string. The maximum limit is 1000; - There is better error handling, the server will return a HTTP status code 400 if it detects an error; - Add aggregation queries `sum`, `count` and `average`, see the Python client (nomunofu.py) to know how to properly format the query; - Python client method `Nomunofu.query(*patterns, limit=None, offset=None)` returns a generator. Also, the harmless warnings are silenced. The database files are compatible with the previous release. This release comes with full wikidata lexemes triples. You can download the amd64 portable binary release plus database files with the following command: wget http://hyper.dev/nomunofu-v0.1.4.tar.bz2 The directory is 11G uncompressed. Grab the source code with the following command: git clone https://github.com/amirouche/nomunofu Here is an example Python query that returns at most 5 adverbs: In [10]: for item in nomunofu.query( ...: (var('uid'), wikibase('lexicalCategory'), 'http://www.wikidata.org/entity/Q380057'), ...: (var('uid'), rdfschema('label'), var('label')), ...: limit=5): ...: print(item) ...: {'uid': 'http://www.wikidata.org/entity/L3244', 'label': 'always'} {'uid': 'http://www.wikidata.org/entity/L4124', 'label': 'here'} {'uid': 'http://www.wikidata.org/entity/L4326', 'label': 'often'} {'uid': 'http://www.wikidata.org/entity/L5201', 'label': 'too'} {'uid': 'http://www.wikidata.org/entity/L5321', 'label': 'yet'} Cheers, Amirouche ~ zig ~ https://hyper.dev