<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi Jeffrey,</p>
    <p>at least two of the pages you link to reference the github of the
      package, which has a very short example. That alone is not very
      useful, but the magic seems to happen in the <tt>r</tt><tt><span
          class="hs-definition">unMatch</span></tt><span
        class="hs-definition"> function. That function obviously comes
        from is the package you linked to, so we know where to find the
        source code. There you can see that <tt>runMatch</tt> basically
        just calls</span><span class="hs-varid"> <tt>runGraql</tt>.
        (And it also presents the results in a somewhat nicer form than
        pure json, but that's not relevant.) The </span><span
        class="hs-varid"><tt>runGraql</tt> function in turn is just a
        few lines below in the source code and exposes that</span><span
        class="hs-str"> it does nothing more than call the <tt>graql.sh</tt>
        shell script. So all the library does is to add a bit of Haskell
        type checking on top of the Java+JavaScript+Bash proprietary
        behemoth. That means even if someone has a Haskell program, the
        core question is how to use the </span><span class="hs-str"><tt>graql.sh</tt>
        script – which is outside the scope of a Haskell mailing list I
        suppose, but I hope the Grakn project has some documentation
        about that.<br>
      </span></p>
    The Grakn approach to modeling a knowledge graph looks good, but I'm
    not even sure if we have something equivalent Haskell-side. We do
    have the necessary hypergraph libraries and all, and it's a fun
    area, so we probably do. But I highly doubt whatever we do have
    supports Graql. After all, why use an extra language if you can use
    functions directly? Sorry I have to disappoint you there.<br>
    <br>
    Cheers,<br>
    MarLinn<br>
    <br>
    <div class="moz-cite-prefix">On 2017-03-14 04:53, Jeffrey Brown
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEc4Ma3XMPqCoPtLoXQ2XOfGFioR3KXAfsXH6jH1tyh1kQuqvA@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>Graql[1] is a (and stands for) graph query language. It is
          unusually expressive, allowing relationships to be members of
          other relationships[2] -- effectively, allowing one edge to be
          an endpoint of another edge. </div>
        <div><br>
        </div>
        <div>Someone named Felix posted a Haskell library for generating
          Graql queries[3].</div>
        <div><br>
        </div>
        <div>Does anyone have a Haskell program that not only generates
          but uses such a query?</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>[1] <a moz-do-not-send="true"
            href="https://hackage.haskell.org/package/graql">https://hackage.haskell.org/package/graql</a></div>
        <div>[2] <a moz-do-not-send="true"
            href="https://discuss.grakn.ai/t/nested-relationships/">https://discuss.grakn.ai/t/nested-relationships/</a></div>
        <div>[3] <a moz-do-not-send="true"
href="https://discuss.grakn.ai/t/graql-haskell-how-to-run-the-test-program/">https://discuss.grakn.ai/t/graql-haskell-how-to-run-the-test-program/</a></div>
        <div><br>
        </div>
        <div><br>
        </div>
        -- <br>
        <div class="gmail_signature">
          <div dir="ltr">
            <div>
              <div dir="ltr">
                <div>
                  <div dir="ltr">
                    <div>
                      <div dir="ltr">
                        <div dir="ltr">
                          <div dir="ltr">
                            <div dir="ltr">
                              <div dir="ltr">
                                <div dir="ltr">
                                  <div dir="ltr">
                                    <div dir="ltr">
                                      <div dir="ltr">
                                        <div dir="ltr">
                                          <div dir="ltr">
                                            <div dir="ltr">
                                              <div dir="ltr">
                                                <div>Jeff Brown |
                                                  Jeffrey Benjamin Brown</div>
                                                <div dir="ltr"><a
                                                    moz-do-not-send="true"
href="https://msu.edu/%7Ebrown202/" style="font-size:12.8px"
                                                    target="_blank">Website</a> 
                                                   |   <a
                                                    moz-do-not-send="true"
href="https://www.facebook.com/mejeff.younotjeff"
                                                    style="font-size:12.8px"
                                                    target="_blank">Facebook</a> 
                                                   |   <a
                                                    moz-do-not-send="true"
href="https://www.linkedin.com/in/jeffreybenjaminbrown"
                                                    style="font-size:12.8px"
                                                    target="_blank">LinkedIn</a><span
style="font-size:12.8px">(spammy, so I often miss messages here)   </span><span
style="font-size:12.8px">|</span><span style="font-size:12.8px">   </span><a
moz-do-not-send="true" href="https://github.com/jeffreybenjaminbrown"
                                                    style="font-size:12.8px"
                                                    target="_blank">Github</a></div>
                                              </div>
                                            </div>
                                          </div>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a>
Only members subscribed via the mailman list are allowed to post.</pre>
    </blockquote>
    <br>
  </body>
</html>