all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Roel Janssen <roel@gnu.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 26807@debbugs.gnu.org
Subject: bug#26807: [PATCH] graph: Add Cypher backend.
Date: Thu, 11 May 2017 14:57:51 +0200	[thread overview]
Message-ID: <878tm3y2i8.fsf@gnu.org> (raw)
In-Reply-To: <87wp9oqvgk.fsf@gnu.org>

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


Ludovic Courtès writes:

> Hello!
>
> Roel Janssen <roel@gnu.org> skribis:
>
>> From 0e9c95ef3473fa7066ccd5991b1c14400aaa7076 Mon Sep 17 00:00:00 2001
>> From: Roel Janssen <roel@gnu.org>
>> 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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-doc-Add-documentation-about-cypher-backend-for-guix-.patch --]
[-- Type: text/x-patch, Size: 1081 bytes --]

From fe42c8fe8f50f7b58007f0ef8302307342695e07 Mon Sep 17 00:00:00 2001
From: Roel Janssen <roel@gnu.org>
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


  reply	other threads:[~2017-05-11 12:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-06 21:21 bug#26807: [PATCH] graph: Add Cypher backend Roel Janssen
2017-05-10 20:59 ` Ludovic Courtès
2017-05-11 12:57   ` Roel Janssen [this message]
2017-05-11 14:03     ` Ludovic Courtès
2017-05-11 14:15       ` Roel Janssen
2017-05-11 14:29         ` 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

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

  git send-email \
    --in-reply-to=878tm3y2i8.fsf@gnu.org \
    --to=roel@gnu.org \
    --cc=26807@debbugs.gnu.org \
    --cc=ludo@gnu.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.
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.