From debbugs-submit-bounces@debbugs.gnu.org Sat May 06 17:21:52 2017 Received: (at submit) by debbugs.gnu.org; 6 May 2017 21:21:52 +0000 Received: from localhost ([127.0.0.1]:58664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d779E-0004Lr-1c for submit@debbugs.gnu.org; Sat, 06 May 2017 17:21:52 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34252) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d779C-0004Lf-KC for submit@debbugs.gnu.org; Sat, 06 May 2017 17:21:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7796-0003Pc-DB for submit@debbugs.gnu.org; Sat, 06 May 2017 17:21:45 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56139) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d7796-0003PU-A1 for submit@debbugs.gnu.org; Sat, 06 May 2017 17:21:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7795-0000JK-2v for guix-patches@gnu.org; Sat, 06 May 2017 17:21:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7791-0003Lp-Uk for guix-patches@gnu.org; Sat, 06 May 2017 17:21:43 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7791-0003L8-R8 for guix-patches@gnu.org; Sat, 06 May 2017 17:21:39 -0400 Received: from [31.21.75.66] (port=50610 helo=antelope) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d778z-0004N4-1V for guix-patches@gnu.org; Sat, 06 May 2017 17:21:37 -0400 User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: guix-patches@gnu.org Subject: [PATCH] graph: Add Cypher backend. Date: Sat, 06 May 2017 23:21:32 +0200 Message-ID: <87fughk7fn.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-graph-Add-Cypher-backend.patch >From 0e9c95ef3473fa7066ccd5991b1c14400aaa7076 Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Sat, 6 May 2017 23:15:03 +0200 Subject: [PATCH] graph: Add Cypher backend. * guix/graph.scm (%cypher-backend): New variable. --- guix/graph.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/guix/graph.scm b/guix/graph.scm index 7af2cd3b8..d7fd5f3e4 100644 --- a/guix/graph.scm +++ b/guix/graph.scm @@ -229,6 +229,35 @@ nodeArray.push(nodes[\"~a\"]);~%" emit-d3js-prologue emit-d3js-epilogue emit-d3js-node emit-d3js-edge)) + + +;;; +;;; Cypher export. +;;; + +(define (emit-cypher-prologue name port) + (format port "")) + +(define (emit-cypher-epilogue port) + (format port "")) + +(define (emit-cypher-node id label port) + (format port "MERGE (p:Package { id: ~s }) SET p.name = ~s;~%" + id label )) + +(define (emit-cypher-edge id1 id2 port) + (format port "MERGE (a:Package { id: ~s });~%" id1) + (format port "MERGE (b:Package { id: ~s });~%" id2) + (format port "MATCH (a:Package { id: ~s }), (b:Package { id: ~s }) CREATE UNIQUE (a)-[:NEEDS]->(b);~%" + id1 id2)) + +(define %cypher-backend + (graph-backend "cypher" + "Generate Cypher queries." + emit-cypher-prologue emit-cypher-epilogue + emit-cypher-node emit-cypher-edge)) + + ;;; ;;; Shared. @@ -236,7 +265,8 @@ nodeArray.push(nodes[\"~a\"]);~%" (define %graph-backends (list %graphviz-backend - %d3js-backend)) + %d3js-backend + %cypher-backend)) (define* (export-graph sinks port #:key -- 2.12.2 --=-=-= Content-Type: text/plain Dear Guix, I would like to add another backend to the 'guix graph' command. This backend will return a bunch of queries that can be used to create a graph database for any database engine that uses openCypher (although I only know one engine and it's called neo4j, which should be GPLv3 code). If there was a way to ensure node definitions are written to the output before the edges, I could simplify the queries a bit. But I believe it is quite fast anyway. Thanks! Kind regards, Roel Janssen --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed May 10 16:59:53 2017 Received: (at 26807) by debbugs.gnu.org; 10 May 2017 20:59:53 +0000 Received: from localhost ([127.0.0.1]:37238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8Yi9-0005vH-C3 for submit@debbugs.gnu.org; Wed, 10 May 2017 16:59:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8Yi8-0005v5-06 for 26807@debbugs.gnu.org; Wed, 10 May 2017 16:59:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8Yhz-0003JL-P1 for 26807@debbugs.gnu.org; Wed, 10 May 2017 16:59:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8Yhz-0003JB-LN for 26807@debbugs.gnu.org; Wed, 10 May 2017 16:59:43 -0400 Received: from reverse-83.fdn.fr ([80.67.176.83]:59512 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d8Yhy-0004xp-Ok; Wed, 10 May 2017 16:59:43 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Roel Janssen Subject: Re: bug#26807: [PATCH] graph: Add Cypher backend. References: <87fughk7fn.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 21 =?utf-8?Q?Flor=C3=A9al?= an 225 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Wed, 10 May 2017 22:59:39 +0200 In-Reply-To: <87fughk7fn.fsf@gnu.org> (Roel Janssen's message of "Sat, 06 May 2017 23:21:32 +0200") Message-ID: <87wp9oqvgk.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26807 Cc: 26807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hello! Roel Janssen skribis: > From 0e9c95ef3473fa7066ccd5991b1c14400aaa7076 Mon Sep 17 00:00:00 2001 > From: Roel Janssen > Date: Sat, 6 May 2017 23:15:03 +0200 > Subject: [PATCH] graph: Add Cypher backend. > > * guix/graph.scm (%cypher-backend): New variable. If Neo4j is free software and packageable (is it Java?), why not! Could you add a few lines in guix.texi under =E2=80=9CInvoking guix graph= =E2=80=9D? Maybe give an example invocation of cypher and explain how it differs from the other backends (interactive features maybe?). Thanks, Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu May 11 08:58:18 2017 Received: (at 26807) by debbugs.gnu.org; 11 May 2017 12:58:18 +0000 Received: from localhost ([127.0.0.1]:37809 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8nfa-0006fV-2D for submit@debbugs.gnu.org; Thu, 11 May 2017 08:58:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42090) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8nfX-0006fH-Gr for 26807@debbugs.gnu.org; Thu, 11 May 2017 08:58:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8nfR-0002IW-6G for 26807@debbugs.gnu.org; Thu, 11 May 2017 08:58:06 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8nfM-0002F8-Mn; Thu, 11 May 2017 08:58:00 -0400 Received: from ip-80-113-14-101.ip.prioritytelecom.net ([80.113.14.101]:39052 helo=antelope) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d8nfM-0006h6-2l; Thu, 11 May 2017 08:58:00 -0400 References: <87fughk7fn.fsf@gnu.org> <87wp9oqvgk.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#26807: [PATCH] graph: Add Cypher backend. In-reply-to: <87wp9oqvgk.fsf@gnu.org> Date: Thu, 11 May 2017 14:57:51 +0200 Message-ID: <878tm3y2i8.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26807 Cc: 26807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Ludovic Courtès writes: > Hello! > > Roel Janssen skribis: > >> From 0e9c95ef3473fa7066ccd5991b1c14400aaa7076 Mon Sep 17 00:00:00 2001 >> From: Roel Janssen >> Date: Sat, 6 May 2017 23:15:03 +0200 >> Subject: [PATCH] graph: Add Cypher backend. >> >> * guix/graph.scm (%cypher-backend): New variable. > > If Neo4j is free software and packageable (is it Java?), why not! Yes, it's Java, so a lot of work to package. Fortunately, there is also AgensGraph which is similar to the PostgreSQL package, and it supports openCypher as well. So I tried it, and the queries will work with the latest git checkout of AgensGraph. Their latest release does not support automatically creating labels for the nodes and edges, which was fixed in this commit: https://github.com/bitnine-oss/agensgraph/commit/5eaecc1d429a08165bb964013ab8ee5516a062e7 So I think the output of what my patch produces should be fine for multiple implementations of openCypher. > Could you add a few lines in guix.texi under “Invoking guix graph”? > Maybe give an example invocation of cypher and explain how it differs > from the other backends (interactive features maybe?). Would the attached patch be fine for the manual? Thanks! Kind regards, Roel Janssen --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-doc-Add-documentation-about-cypher-backend-for-guix-.patch >From fe42c8fe8f50f7b58007f0ef8302307342695e07 Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Thu, 11 May 2017 14:50:09 +0200 Subject: [PATCH] doc: Add documentation about cypher backend for 'guix graph'. * doc/guix.texi: Add documentation. --- doc/guix.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/guix.texi b/doc/guix.texi index 81aa957c6..a5b787510 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -6197,7 +6197,9 @@ provides a visual representation of the DAG. By default, @uref{http://www.graphviz.org/, Graphviz}, so its output can be passed directly to the @command{dot} command of Graphviz. It can also emit an HTML page with embedded JavaScript code to display a ``chord diagram'' -in a Web browser, using the @uref{https://d3js.org/, d3.js} library. +in a Web browser, using the @uref{https://d3js.org/, d3.js} library, or +emit Cypher queries to construct a graph in a graph database supporting +the @uref{http://www.opencypher.org/, openCypher} query language. The general syntax is: @example -- 2.13.0 --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Thu May 11 10:03:46 2017 Received: (at 26807) by debbugs.gnu.org; 11 May 2017 14:03:46 +0000 Received: from localhost ([127.0.0.1]:38844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8oh0-0001mt-B6 for submit@debbugs.gnu.org; Thu, 11 May 2017 10:03:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8ogy-0001mh-N1 for 26807@debbugs.gnu.org; Thu, 11 May 2017 10:03:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8ogp-00058r-Bc for 26807@debbugs.gnu.org; Thu, 11 May 2017 10:03:39 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8ogp-00058f-8Y for 26807@debbugs.gnu.org; Thu, 11 May 2017 10:03:35 -0400 Received: from [193.50.110.138] (port=37506 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d8ogo-0006TT-Hv; Thu, 11 May 2017 10:03:34 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Roel Janssen Subject: Re: bug#26807: [PATCH] graph: Add Cypher backend. References: <87fughk7fn.fsf@gnu.org> <87wp9oqvgk.fsf@gnu.org> <878tm3y2i8.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?utf-8?Q?Flor=C3=A9al?= an 225 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Thu, 11 May 2017 16:03:32 +0200 In-Reply-To: <878tm3y2i8.fsf@gnu.org> (Roel Janssen's message of "Thu, 11 May 2017 14:57:51 +0200") Message-ID: <87bmqztrrf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26807 Cc: 26807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Hi, Roel Janssen skribis: > Ludovic Court=C3=A8s writes: > >> Hello! >> >> Roel Janssen skribis: >> >>> From 0e9c95ef3473fa7066ccd5991b1c14400aaa7076 Mon Sep 17 00:00:00 2001 >>> From: Roel Janssen >>> Date: Sat, 6 May 2017 23:15:03 +0200 >>> Subject: [PATCH] graph: Add Cypher backend. >>> >>> * guix/graph.scm (%cypher-backend): New variable. >> >> If Neo4j is free software and packageable (is it Java?), why not! > > Yes, it's Java, so a lot of work to package. > > Fortunately, there is also AgensGraph which is similar to the PostgreSQL > package, and it supports openCypher as well. So I tried it, and the > queries will work with the latest git checkout of AgensGraph. Their > latest release does not support automatically creating labels for the > nodes and edges, which was fixed in this commit: > > https://github.com/bitnine-oss/agensgraph/commit/5eaecc1d429a08165bb96401= 3ab8ee5516a062e7 > > So I think the output of what my patch produces should be fine for > multiple implementations of openCypher. OK. Do these tools support interactive visualization in addition to graph queries? >> Could you add a few lines in guix.texi under =E2=80=9CInvoking guix grap= h=E2=80=9D? >> Maybe give an example invocation of cypher and explain how it differs >> from the other backends (interactive features maybe?). > > Would the attached patch be fine for the manual? Yes, perfect (please squash it with the patch that adds the new backend). Thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu May 11 10:15:53 2017 Received: (at 26807) by debbugs.gnu.org; 11 May 2017 14:15:53 +0000 Received: from localhost ([127.0.0.1]:38860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8osj-00023E-JU for submit@debbugs.gnu.org; Thu, 11 May 2017 10:15:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36733) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8osi-000232-GL for 26807@debbugs.gnu.org; Thu, 11 May 2017 10:15:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8osc-0002Ai-6G for 26807@debbugs.gnu.org; Thu, 11 May 2017 10:15:47 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8osW-00028C-PH; Thu, 11 May 2017 10:15:40 -0400 Received: from [143.121.198.177] (port=48692 helo=cog147) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d8osW-0001Rp-0M; Thu, 11 May 2017 10:15:40 -0400 References: <87fughk7fn.fsf@gnu.org> <87wp9oqvgk.fsf@gnu.org> <878tm3y2i8.fsf@gnu.org> <87bmqztrrf.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.2.1 From: Roel Janssen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#26807: [PATCH] graph: Add Cypher backend. In-reply-to: <87bmqztrrf.fsf@gnu.org> Date: Thu, 11 May 2017 16:15:30 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26807 Cc: 26807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Ludovic Courtès writes: > Hi, > > Roel Janssen skribis: > >> Ludovic Courtès writes: >> >>> Hello! >>> >>> Roel Janssen skribis: >>> >>>> From 0e9c95ef3473fa7066ccd5991b1c14400aaa7076 Mon Sep 17 00:00:00 2001 >>>> From: Roel Janssen >>>> Date: Sat, 6 May 2017 23:15:03 +0200 >>>> Subject: [PATCH] graph: Add Cypher backend. >>>> >>>> * guix/graph.scm (%cypher-backend): New variable. >>> >>> If Neo4j is free software and packageable (is it Java?), why not! >> >> Yes, it's Java, so a lot of work to package. >> >> Fortunately, there is also AgensGraph which is similar to the PostgreSQL >> package, and it supports openCypher as well. So I tried it, and the >> queries will work with the latest git checkout of AgensGraph. Their >> latest release does not support automatically creating labels for the >> nodes and edges, which was fixed in this commit: >> >> https://github.com/bitnine-oss/agensgraph/commit/5eaecc1d429a08165bb964013ab8ee5516a062e7 >> >> So I think the output of what my patch produces should be fine for >> multiple implementations of openCypher. > > OK. Do these tools support interactive visualization in addition to > graph queries? Neo4j does that in a web browser, see: https://neo4j.com/developer/guide-data-visualization/ AgensGraph does not AFAIK. It just looks like (and it is) a PostgreSQL prompt. > >>> Could you add a few lines in guix.texi under “Invoking guix graph”? >>> Maybe give an example invocation of cypher and explain how it differs >>> from the other backends (interactive features maybe?). >> >> Would the attached patch be fine for the manual? > > Yes, perfect (please squash it with the patch that adds the new > backend). > > Thank you! > > Ludo’. Great! I will do that. Kind regards, Roel Janssen From debbugs-submit-bounces@debbugs.gnu.org Thu May 11 10:30:09 2017 Received: (at 26807-done) by debbugs.gnu.org; 11 May 2017 14:30:09 +0000 Received: from localhost ([127.0.0.1]:38876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8p6X-0002Oh-8E for submit@debbugs.gnu.org; Thu, 11 May 2017 10:30:09 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8p6V-0002Ne-Mm for 26807-done@debbugs.gnu.org; Thu, 11 May 2017 10:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8p6P-0003Sq-K6 for 26807-done@debbugs.gnu.org; Thu, 11 May 2017 10:30:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8p6J-0003Nm-Ol; Thu, 11 May 2017 10:29:55 -0400 Received: from ip-80-113-14-101.ip.prioritytelecom.net ([80.113.14.101]:26764 helo=antelope) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d8p6I-0007aM-Ib; Thu, 11 May 2017 10:29:55 -0400 References: <87fughk7fn.fsf@gnu.org> <87wp9oqvgk.fsf@gnu.org> <878tm3y2i8.fsf@gnu.org> <87bmqztrrf.fsf@gnu.org> User-agent: mu4e 0.9.18; emacs 25.1.1 From: Roel Janssen To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#26807: [PATCH] graph: Add Cypher backend. In-reply-to: Date: Thu, 11 May 2017 16:29:44 +0200 Message-ID: <8760h7xy93.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 26807-done Cc: 26807-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Roel Janssen writes: > Ludovic Courtès writes: > >> Hi, >> >> Roel Janssen skribis: >> >>> Ludovic Courtès writes: >>> >>>> Hello! >>>> >>>> Roel Janssen skribis: >>>> >>>>> From 0e9c95ef3473fa7066ccd5991b1c14400aaa7076 Mon Sep 17 00:00:00 2001 >>>>> From: Roel Janssen >>>>> Date: Sat, 6 May 2017 23:15:03 +0200 >>>>> Subject: [PATCH] graph: Add Cypher backend. >>>>> >>>>> * guix/graph.scm (%cypher-backend): New variable. >>>> >>>> If Neo4j is free software and packageable (is it Java?), why not! >>> >>> Yes, it's Java, so a lot of work to package. >>> >>> Fortunately, there is also AgensGraph which is similar to the PostgreSQL >>> package, and it supports openCypher as well. So I tried it, and the >>> queries will work with the latest git checkout of AgensGraph. Their >>> latest release does not support automatically creating labels for the >>> nodes and edges, which was fixed in this commit: >>> >>> https://github.com/bitnine-oss/agensgraph/commit/5eaecc1d429a08165bb964013ab8ee5516a062e7 >>> >>> So I think the output of what my patch produces should be fine for >>> multiple implementations of openCypher. >> >> OK. Do these tools support interactive visualization in addition to >> graph queries? > > Neo4j does that in a web browser, see: > https://neo4j.com/developer/guide-data-visualization/ > > AgensGraph does not AFAIK. It just looks like (and it is) a PostgreSQL > prompt. > >> >>>> Could you add a few lines in guix.texi under “Invoking guix graph”? >>>> Maybe give an example invocation of cypher and explain how it differs >>>> from the other backends (interactive features maybe?). >>> >>> Would the attached patch be fine for the manual? >> >> Yes, perfect (please squash it with the patch that adds the new >> backend). >> >> Thank you! >> >> Ludo’. > > Great! I will do that. Pushed in 5899fafbfefcd7682aec8f2caaaad3add678a3c4. Thanks! Kind regards, Roel Janssen From unknown Sat Sep 13 02:39:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 09 Jun 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator