<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged datafy</title>
<link>https://ask.clojure.org/index.php/tag/datafy</link>
<description></description>
<item>
<title>Will REBL be open-sourced?</title>
<link>https://ask.clojure.org/index.php/11037/will-rebl-be-open-sourced</link>
<description>&lt;p&gt;On the assumption that it doesn't play any tricks that are not available to other Datomic users, what are the reasons for keeping it as a private repo?&lt;/p&gt;
</description>
<category>REBL</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11037/will-rebl-be-open-sourced</guid>
<pubDate>Sat, 11 Sep 2021 17:01:54 +0000</pubDate>
</item>
<item>
<title>Are there plans for official docs (rationale and guide) on datafy / nav?</title>
<link>https://ask.clojure.org/index.php/11032/are-there-plans-for-official-docs-rationale-and-guide-datafy</link>
<description>&lt;p&gt;If Clojure is to become (even) more data oriented, these are powerful tools to achieve that goal. The community needs support to encourage adoption.&lt;/p&gt;
&lt;p&gt;The current state of documentation for &lt;code&gt;datafy&lt;/code&gt; and &lt;code&gt;nav&lt;/code&gt; is not sufficient IMHO to encourage independent learning on a broad scale.&lt;/p&gt;
&lt;p&gt;There is no canonical source of such documentation in the community despite some valiant efforts (eg @SeanCorfield who has a &lt;a rel=&quot;nofollow&quot; href=&quot;https://corfield.org/blog/2018/12/03/datafy-nav/&quot;&gt;great blog post&lt;/a&gt; and is an active proponent). &lt;/p&gt;
&lt;p&gt;Examples are difficult to find around the internet ... &lt;a rel=&quot;nofollow&quot; href=&quot;https://gist.github.com/sashton/56a14d275c71d7ce3e224c11c9a16bd4&quot;&gt;here's a good one&lt;/a&gt; from a Slack recommendation by @Frederick on there.&lt;/p&gt;
&lt;p&gt;We know that there are problems with Slack since we cannot easily search history so keeping it here might help people find it in the meantime.&lt;/p&gt;
&lt;p&gt;It would be good to have a rationale explaining the problem it is solving, the general approach and some specifics on the design.&lt;/p&gt;
&lt;p&gt;Likewise a guide on how it should be used with a worked example and some hints and tips on how to approach implementations.&lt;/p&gt;
&lt;p&gt;I know it's marked as alpha but this has not prevented docs on other aspects of the language.&lt;/p&gt;
</description>
<category>Libs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/11032/are-there-plans-for-official-docs-rationale-and-guide-datafy</guid>
<pubDate>Sat, 11 Sep 2021 10:26:57 +0000</pubDate>
</item>
<item>
<title>Where does one place a nav function when implementing Navigable protocol?</title>
<link>https://ask.clojure.org/index.php/9073/where-does-place-function-implementing-navigable-protocol</link>
<description>&lt;p&gt;I have a map structure that looks like this&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; {:a &quot;this&quot;
  :b {:x &quot;foo&quot; :y 1}
  :c &quot;that&quot;
  :d {:x &quot;bar&quot; :y 2}
  :e &quot;the other&quot;}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That is, a top-level map that contains several keys, some of which have as values maps that conform to the same structure.&lt;/p&gt;
&lt;p&gt;The values of &lt;code&gt;:x&lt;/code&gt; and &lt;code&gt;:y&lt;/code&gt; in that inner map structure can be applied to a function that would retrieve another map or datafyable object that I might navigate to. This led me to think of implementing the &lt;code&gt;Navigable&lt;/code&gt; protocol so that I might use a REBL to browse through this data.&lt;/p&gt;
&lt;p&gt;To do this I understand that I need to create a &lt;code&gt;(nav coll k v)&lt;/code&gt; function and apply it as metadata to the map. My question is this: &lt;/p&gt;
&lt;p&gt;Does the &lt;code&gt;nav&lt;/code&gt; function belong on the top-level map or on each of the inner maps?&lt;/p&gt;
</description>
<category>Protocols</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/9073/where-does-place-function-implementing-navigable-protocol</guid>
<pubDate>Tue, 04 Feb 2020 22:26:49 +0000</pubDate>
</item>
<item>
<title>Can someone explain the arguments to nav ?</title>
<link>https://ask.clojure.org/index.php/8550/can-someone-explain-the-arguments-to-nav</link>
<description>&lt;p&gt;The &lt;code&gt;clojure.protocols/nav&lt;/code&gt; function has signature:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[coll k v]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I don't understand what &lt;code&gt;coll&lt;/code&gt;, &lt;code&gt;k&lt;/code&gt; and &lt;code&gt;v&lt;/code&gt; would be. Can someone explain? Maybe give an example of calling &lt;code&gt;nav&lt;/code&gt; with realistic arguments?&lt;/p&gt;
&lt;p&gt;For instance, what is &lt;code&gt;coll&lt;/code&gt;. Is it supposed to be the result of a prior call to &lt;code&gt;datafy&lt;/code&gt;? Thus is &lt;code&gt;coll&lt;/code&gt; what we will navigate into, or is that &lt;code&gt;v&lt;/code&gt;?&lt;/p&gt;
&lt;p&gt;I assume &lt;code&gt;k&lt;/code&gt; is the required information to drill down.&lt;/p&gt;
&lt;p&gt;Now there is &lt;code&gt;v&lt;/code&gt;, so again, I'm not sure if this is meant to be the value we are navigating into? But if so, what is &lt;code&gt;coll&lt;/code&gt; ? If &lt;code&gt;v&lt;/code&gt; isn't that, than I don't understand what it should be. Isn't the value what we want &lt;code&gt;nav&lt;/code&gt; to return, why do we provide it as well?&lt;/p&gt;
&lt;p&gt;Thank You&lt;/p&gt;
</description>
<category>Protocols</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8550/can-someone-explain-the-arguments-to-nav</guid>
<pubDate>Fri, 06 Sep 2019 00:54:40 +0000</pubDate>
</item>
</channel>
</rss>