<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jeff Gagnon on Medium]]></title>
        <description><![CDATA[Stories by Jeff Gagnon on Medium]]></description>
        <link>https://medium.com/@jeff.gagnon?source=rss-725710f23c83------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*CDkwQHnb7duind38</url>
            <title>Stories by Jeff Gagnon on Medium</title>
            <link>https://medium.com/@jeff.gagnon?source=rss-725710f23c83------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 18:24:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeff.gagnon/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Seeds of Science, Visuals in Bloom: Introducing Whole-Graph Projections]]></title>
            <link>https://medium.com/neo4j/seeds-of-science-visuals-in-bloom-introudcing-whole-graph-projections-7bcbfe62ab5c?source=rss-725710f23c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bcbfe62ab5c</guid>
            <category><![CDATA[graph-analytics]]></category>
            <category><![CDATA[bloom]]></category>
            <category><![CDATA[graph-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[neo4j]]></category>
            <dc:creator><![CDATA[Jeff Gagnon]]></dc:creator>
            <pubDate>Mon, 20 Jul 2026 14:29:55 GMT</pubDate>
            <atom:updated>2026-07-22T15:38:01.293Z</atom:updated>
            <content:encoded><![CDATA[<p>Bloom, part of Neo4j’s suite of user tools, has offered analysts the ability to run a selection of Data Science algorithms for quite a while. There has, however, been a major caveat — until now, algorithms could only be run on the graph in the current Bloom Scene, giving a local view of communities or centrality measures. With our most recent updates, there’s also an option to configure &amp; run a graph algorithm across the entire database from Bloom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9wYPASbInqxSFagh4jNxeg.png" /></figure><p><strong>How can graph algorithms be of use?</strong></p><p>Graph algorithms are a powerful way to unlock insights from data. Centrality algorithms can help identify nodes of high importance, bottlenecks or chokepoints, for example. Meanwhile, community detection algorithms can highlight groups of nodes that are more closely connected. Graph visualizations are a fantastic way to make graph algorithms come alive.</p><p>Bloom provides not only a no-code way to configure and run algorithms, but also an easy way to highlight results with rule-based styling. You can apply graph algorithms either on data in a Scene (as before), or, now, by creating a projection across the entire database, all from the Bloom user interface.</p><p><strong>Why offer two options?</strong></p><p>Graph algorithms are run on a <em>projection</em>, which can be thought of as a temporary copy of the structure of a certain subset of data in the graph. For example, a projection might involve all nodes with the label <em>Ingredient</em> or <em>Recipe</em>, and all relationships of the type <em>Uses</em>. Even though the database might have many other labels and relationship types, we might be interested in discovering only which ingredients are most used across all known recipes.</p><p>A Bloom Scene can define the projection for running a graph algorithm. For example, we might only be interested in learning which ingredients are most commonly used in recipes for soup. In that case, we could create a Bloom Scene with only that data, and choose to run a degree centrality algorithm (degree centrality will count the number of relationships connecting to each node). Perhaps we’d find that butter is one of the most used ingredients for soups. Running algorithms on the local Scene also provides a quick way to try out different algorithms and see how they highlight different aspects of your data in a fully contained view, with the added bonus of not adding properties with results back to the database. It can be a good proving ground, a way to look at just local parts of the graph, or a way to learn how different algorithms work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L18GIVNBuWV4SdfYCZy9qw.png" /><figcaption>Butter is shown as having a high Degree Centrality score, when measured for just the current scene.</figcaption></figure><p>On the other hand, we might want to calculate the degree centrality for all ingredient &amp; recipe nodes across the entire database, and bring up subsets to look at ad-hoc. In this case we could apply the new whole-graph algorithm capability in Bloom, and each time we populate a Bloom Scene we’d have the degree centrality measure on each node, based on a calculation run across the entire relevant data set. In this case we might find that milk is less well-connected compared to an ingredient like pepper, when looking at the whole data set. In the image below we can see that the “Degree Centrality” for pepper, when measured with just our Scene data for soup, is 6. Looking at “Degree Centrality 1”, we see that pepper is actually connected to more than 16000 recipes in the entire underlying data set.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtfP8MImooDa9XNTqgZA6w.png" /><figcaption>Pepper is shown as having a high Degree Centrality score, when measured with the entire underlying graph.</figcaption></figure><p>In the former case, we’re limiting graph algorithm calculations to the specific local scene of interest and we’re not writing results back to the database — they are available only in the Scene for the elements that are included there. In the latter case we take into account all relevant data in the database even if it’s not currently visualized on the scene, and write the result back to the graph for future reference.</p><p><strong>Getting started — how to run algorithms on your graph with Bloom</strong></p><p>As mentioned above, with recent updates we’ve introduced the ability to configure and run graph algorithms on a projection based on your entire database, as an alternative to just the data in the current Scene. This capability is available for Neo4j Instances using either the Graph Data Science (GDS) plugin or the Aura Graph Analytics (AGA) service. All of this can be done without writing any code, all from the Bloom user interface.</p><p>To get started, load Bloom either from the Aura console, or a standalone or Desktop installation. If the connected instance has Data Science capability (either via the GDS plugin or AGA), you’ll find the Data Science icon on the left side of the screen just under the search bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bCHtdL08TZ9e6aTl9XyOPg.png" /></figure><p>From here, you can choose from a selection of algorithms that are well suited to visualizing results — namely some centrality and community detection algorithms. Once you’ve chosen an algorithm, you can optionally define additional configuration settings like which labels and relationship types the algorithm should consider, and any properties to use for weighting, as well as directionality.</p><p>Finally, there are now two options under the ‘Run algorithm’ button: ‘Apply to current scene’ will run the algorithm on only the data in the current Bloom scene, and store the results with the scene (but not write results back to the database). The second option is new, ‘Create projection on the entire graph’. This will use all of the data in your database to build a projection based on the setting selected, and run the algorithm across this entire data set. In this case, results are written to the database in the Property chosen at run time so they can be referenced later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*njA0rf0H4fQeeHc0LMRxog.png" /></figure><p>With either option, Bloom allows you to automatically apply colour and/or size styling to the scene based on the algorithm’s output. Of course, output will be different for an algorithm run on the local scene only, vs on the entire graph, because in the latter case there are additional parts of the graph that aren’t visible on-scene, and these will influence any data science results. Changes to the database or scene won’t automatically be reflected in results, either, so algorithms will need to be re-run to capture any changes in results due to changes in data. Note that it is possible, using the <a href="https://neo4j.com/docs/graph-data-science/current/python-client/">GDS Python client</a> or the <a href="https://neo4j.com/docs/graph-data-science/current/aura-graph-analytics/cypher/">Cypher API</a>, to schedule automatic runs of data science algorithms. While this falls outside the scope of Bloom’s no-code capabilities for data science, analysts can use Bloom to fine tune their algorithms and later schedule them outside Bloom.</p><p><strong>Final thoughts</strong></p><p>As Neo4j’s low/no-code graph exploration tool, Bloom is found in the Aura Console (previously known as Explore in the Console) and the Neo4j Enterprise Studio for self-managed installations. It’s also available in Neo4j Desktop.</p><p>Neo4j’s data science capabilities can be a highly useful way to derive insights from data, and there’s a great deal of capability beyond the functionality exposed by the Bloom user interface.</p><p>You can find documentation for both <a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-tutorial/gds-integration/">Bloom’s graph analytics capabilities</a> as well as the <a href="https://neo4j.com/docs/graph-data-science/current/">data science capabilities in general</a> and <a href="https://neo4j.com/docs/graph-data-science/current/aura-graph-analytics/">Aura Graph Analytics</a> online.</p><p>Give it a try, and see what you can learn!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bcbfe62ab5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neo4j/seeds-of-science-visuals-in-bloom-introudcing-whole-graph-projections-7bcbfe62ab5c">Seeds of Science, Visuals in Bloom: Introducing Whole-Graph Projections</a> was originally published in <a href="https://medium.com/neo4j">Neo4j Developer Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time Travel with Neo4j Bloom 2.1]]></title>
            <link>https://medium.com/neo4j/time-travel-with-neo4j-bloom-2-1-55db7c8a7a82?source=rss-725710f23c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/55db7c8a7a82</guid>
            <category><![CDATA[timezone]]></category>
            <category><![CDATA[neo4j]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[bloom]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Jeff Gagnon]]></dc:creator>
            <pubDate>Tue, 22 Feb 2022 23:18:09 GMT</pubDate>
            <atom:updated>2022-02-22T23:18:09.227Z</atom:updated>
            <content:encoded><![CDATA[<p>This week we welcome the release of Neo4j Bloom 2.1, and in this post I’ll showcase a useful new feature — filtering and rule-based styling based on times and dates, which was frequently asked for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E0Jijp4ETTHGZw1w" /><figcaption>Photo by <a href="https://unsplash.com/@mohamedosama?utm_source=medium&amp;utm_medium=referral">Mohamed Osama</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Let’s imagine we wish to analyze some summarized <strong><em>network flow traffic</em></strong> for a global organization with offices in:</p><ul><li>San Francisco (where the timezone offset is GMT-08:00),</li><li>Ottawa (GMT-05:00),</li><li>London (GMT or Z), and</li><li>Malmö (GMT+01:00).</li></ul><p>Each office has a network monitoring device, and we’ve loaded data from all of them into our Neo4j database. Our nodes represent internal <strong><em>IP Addresses</em></strong> in the various global offices, and the relationships are <strong><em>traffic flows</em></strong>. The traffic flows have properties indicating the <em>number of packets</em> transferred, to and from <em>ports</em>, the <em>date</em> the sample was collected, and the <em>time</em> the sample was collected — including one of the aforementioned time offsets depending on <em>where</em> the sample was collected.</p><p>Before we dig any further into our analyses, let’s take a moment to think about the implications of the different time offsets. Consider the table below — we can see what the local time is in each office at certain points in the day — start of business (09:00), lunch (12:00), and close of business (17:00).</p><p>While we all understand the concept of time zones, sometimes their impact on visual data analysis is not highly intuitive. An analyst may choose to normalize all times in a dataset to a common time offset like UTC prior to analysis, but this can take extra time and in some cases may not be the ideal solution.</p><p>In our case, the <em>time</em> property of a <em>traffic_flow</em> relationship was logged by our network monitoring device and is stored as a time type with the appropriate time offset, depending on the location of the monitoring device.</p><p>So, a traffic flow collected at lunchtime in San Francisco (GMT-08:00) would have occurred at 8pm in London (Z). The <em>time</em> property on that relationship would be expressed as <em>12:00–08:00</em>, to represent that it is 12:00 noon in time zone GMT-08:00 (<strong><em>not</em></strong><em> 12:00 minus 8 hours</em>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*ScD06qLwC2FpGeWJy9L4ig.png" /></figure><p>If data is stored in Neo4j as a <a href="https://neo4j.com/docs/cypher-manual/current/syntax/temporal/">temporal value</a> (date, time, localTime, datetime or localDatetime), Neo4j Bloom now offers the ability to <strong><em>filter</em></strong> and <strong><em>apply rule-based styling</em></strong> to nodes and relationships, including when time zones are present.</p><p>There are two ways (<em>default</em> and <em>translated</em>) to apply filters and rule-based styling to properties with time zones (time and datetime values). The features described here also work on temporal values without time zones, albeit without the ability to <em>translate time zones to</em> an offset of choice (more on that later).</p><p>Now, let’s go <em>back to our network data</em>. Here’s a view of <em>IPAddress</em> nodes across our imaginary organization’s four offices, connected by summarized <em>traffic_flow</em> relationships.</p><p>A <strong><em>rule-based style</em></strong> has already been applied to the relationships that increases their <strong><em>width</em></strong> according to the number of packets forwarded.</p><p>As you can see by the <strong><em>histogram in the Filter pane</em></strong>, the <em>traffic_flow</em> relationships in this scene were all captured between 05:01:45 and 11:42:37. These times do not take the time zones into account — which is to say, they’re local to the office where they were logged by our monitoring devices.</p><p>You can see that at the top of the histogram, Bloom shows the earliest time on the left, and the latest time on the right, with <em>LocalTime</em> underneath to show that these are the local times.</p><p>You can also see, in the Inspector, details for one of the <em>traffic_flow</em> relationships, where the <em>time</em> value is <em>11:28:17+01:00</em> (indicating this flow was logged by our monitoring device in Malmö, based on the time offset of GMT+01:00). By default, the filter and rule-based style features will ignore the time offset +01:00 for time-zoned data types.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VQxs3XAt0L55Ms3yVQiPRQ.png" /><figcaption>Default Histogram and Inspector view of a time property</figcaption></figure><p>This is useful for certain enquiries. For example, we might want to look at only traffic that occurs before the normal start of business, or 09:00, regardless of where it was collected. Put another way, we want to look at network flows before nine o’clock <em>local time</em> relative to the place where it was logged. Lets simply apply the filter with those criteria:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CdB7b3Tqs8MpmeKo" /><figcaption>Network data filtered based on local times</figcaption></figure><p>We have significantly reduced the number of <em>traffic_flow </em>relationships<em> </em>visible by applying this filter. We can zoom in and get a closer look at flows of interest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0rFdLN0J0RdFfpE1" /></figure><p>Now, let’s imagine a different type of analytic question. Suppose something anomalous happens with a server in our London office (time offset Z) — maybe it goes offline unexpectedly at around 10:30 local time on a particular day. We can now make use of the <em>Translate timezones to</em> option in Bloom. When selecting this option, a dropdown appears with all possible time offsets.</p><blockquote>Neo4j supports only <strong>time offsets</strong> for time values, but <strong>time offsets</strong> as well as <strong>time zones</strong> for datetime values — while the terms are often used interchangeably, including in this post, the difference is simply that time offsets are expressed as GMT + or GMT - some number of hours, whereas time zones are expressed as geographic region names. Bloom will show both in the list for datetime values, but only time offsets for <em>time </em>values<em>.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/323/1*ZGvKla-WHeNwX2xfVdfo8g.png" /><figcaption>Translate timezones dropdown</figcaption></figure><p>Since the event we’re concerned with happened around 10:30 in London, we’ll select <strong><em>Z</em></strong> to translate all of the time values in our scene to London time, and look for relationships occurring between 10:25 and 10:35. <strong>This will not change the data in the database, nor will it change how that data is displayed in captions or the inspector</strong>.</p><p>It will only adjust the histogram so that when we select a time, it’s applied to the scene <em>from the perspective of the time offset chosen</em>. You’ll notice that the earliest and latest times are now shown as 10:00:56 and 11:00:56 respectively, because when <strong><em>we translate all of the four different time zones on the scene to London time</em></strong>, everything happened within about the 10:00 to 11:00 window from the perspective of London local time.</p><p>What?! Although initially it looked like our data spanned almost seven hours (from about 5 a.m. until almost noon), it really doesn’t — it just appeared that way because, before, we were only looking at the local component of the time values spanning four distant geographic locations (not so intuitive, is it?).</p><blockquote>Why don’t the earliest and latest times end with the same minute and second values as before we translated timezones, since we only have four time zones in full-hour increments? That’s because Bloom’s histogram adjusts intelligently to <strong>optimize the number of bins</strong> and the range for each, based on the data — so changes in the number of bins and their max/min values can be expected when we translate everything to one time zone. <br>Looking at our table above, we see that there are 12 possible time values if we ignore the time zone (default), with 03:00 being the earliest and 22:00 being the latest. If we normalize all values to, say, GMT-08:00 using ‘Translate timezones to’, then we will only have three values left — 09:00, 12:00, and 17:00. The histogram will adjust accordingly.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CHNdKltQbX_Sk3lQ5DmNQA.png" /><figcaption>Histogram translated to London time, with a filter applied between 10:25 and 10:35</figcaption></figure><p>We can now see the flows that happened in this 10-minute interval, regardless of <em>where</em> they were logged. If we zoom in and take a closer look, we see that the time values are still stored and displayed the same way they were before, but we can do the math in our heads to prove that everything is working.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_CWvuh7qpouc2xQDPVcMw.png" /><figcaption>Inspector view of a traffic_flow relationship showing stored time value</figcaption></figure><p>Looking at this particular relationship in the inspector, we see that it was logged at 11:31:23 in GMT+01:00 (based on the time offset, we know it must’ve been logged by the monitoring device in our Malmö office). That means it was 10:31:23 in London at the time (Z) — so it fits within our selected time bounds.</p><p>All of these same principles <strong><em>apply in the same way to Bloom’s Rule-based styling</em></strong>, offering a simple way to travel through time in your data analysis. You can even apply some styles and filters with timezone translation, and others without in the same scene, depending on your needs.</p><p>If you’re not already a Neo4j Bloom user, feel free to head over to our <a href="http://www.neo4j.com/">website</a> and get started by downloading <a href="https://neo4j.com/download/">Neo4j Desktop</a> for free, which includes the Basic Access version of <a href="https://neo4j.com/product/bloom/">Bloom</a>, or set up a free database on <a href="https://neo4j.com/cloud/aura/">AuraDB</a> !</p><p><a href="https://neo4j.com/product/bloom/">Bloom</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55db7c8a7a82" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neo4j/time-travel-with-neo4j-bloom-2-1-55db7c8a7a82">Time Travel with Neo4j Bloom 2.1</a> was originally published in <a href="https://medium.com/neo4j">Neo4j Developer Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating Graph Data Visualizations into No-Code Workflows with Bloom 2.0]]></title>
            <link>https://medium.com/neo4j/integrating-graph-data-visualizations-into-no-code-workflows-with-bloom-2-0-18bf145dc41e?source=rss-725710f23c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/18bf145dc41e</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[how-to]]></category>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[neo4j]]></category>
            <category><![CDATA[bloom]]></category>
            <dc:creator><![CDATA[Jeff Gagnon]]></dc:creator>
            <pubDate>Mon, 13 Dec 2021 18:01:39 GMT</pubDate>
            <atom:updated>2021-12-14T11:48:09.106Z</atom:updated>
            <content:encoded><![CDATA[<h4>This month sees the release of Neo4j Bloom 2.0, with a number of useful new features. For Enterprise users, this includes the ability to save and share scenes.</h4><p>Of course, Bloom’s other useful features remain — such as sharing perspectives, search phrases, and deep linking.</p><p>In this article, I’ll discuss how to leverage Bloom’s out-of-the-box utility to easily empower domain experts in your organization with the power of <em>no-code graph data visualization &amp; exploration</em>.</p><p>When finished, we’ll have created some perspectives to <em>offer different business views</em> of the same retail dataset, added some <em>search phrases</em> that will enable analysts to conduct useful queries without writing Cypher, and used <em>deep links</em> as a simple entry point into Bloom for those same users. All of this can be done without the need to build and maintain a custom visualization solution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fv4kF24qKK0hYCLm8pmyXw.png" /></figure><h4><strong>Creating, Managing, and Sharing Perspectives</strong></h4><p>Our sample dataset contains a variety of retail products and transactions with a schema that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q8c_aGg2EdfS5WGm9ivfOA.png" /><figcaption>Retail Graph Datamodel</figcaption></figure><p>Thinking about how domain specialists in our imaginary organization might want to use this data, we could imagine that there will be analysts concerned with <strong><em>customers</em></strong>, and others concerned with <strong><em>products</em></strong>. Of course, there might be other requirements, but let’s focus on these two for now.</p><p>I’ll create two perspectives from the <strong><em>Perspective Gallery</em></strong>:</p><ul><li><strong>Customer Perspective:</strong><em> </em>includes the Country, Customer, and Transaction labels, each with their own Category in Bloom.</li><li><strong>Item Perspective:</strong><em> </em>includes the Category and Item labels, each with their own Category in Bloom.</li></ul><p><em>Note that in a Bloom perspective, you can assign </em><strong><em>more than one label to a Category</em></strong><em>. In this example, we’re using a 1:1 assignment, which suits our needs and is quite common.</em></p><p>To do this, we can select an empty “<em>Create Perspective</em>” box, choose “<em>Blank Perspective</em>” and rename it using the three dot dropdown. Then we can select each perspective in turn, choose “<em>Use Perspective</em>” to load it into Bloom, and modify it to suit our needs. We can always return to the Gallery using the nine-dot icon in the perspective drawer, at the top left corner of Bloom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JGitvgAgMO1cPKNb" /><figcaption>Perspectives Gallery in Bloom</figcaption></figure><p>This is also a good time to consider the <em>captions</em> you’d like to see on nodes and in tooltips, and default styling including <em>node coloring</em> (and any rule-based styling). These can be set up in the perspective designer at the left, and the legend panel at the right, respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hAjVO-qQz--g_xAI" /><figcaption>Perspectives Designer (left)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C4rnGojMA7iQ4zFd" /><figcaption>Legend Panel (right)</figcaption></figure><p>If we have the <a href="http://www.neo4j.com/product/bloom">full access version of Bloom</a> running on an Enterprise instance of Neo4j with the Bloom plugin, we can now also share these perspectives with users that have specific roles.</p><p>In this case, I’ve added the <strong><em>reader</em></strong> role to the <em>Customer Perspective</em>, so that any user with that role will have read access to the perspective and the underlying data per the role’s permissions (as configured in Neo4j).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*oM4-Ud24B-jjjxRjk76poQ.png" /><figcaption>Sharing Perspectives with different User Roles</figcaption></figure><p>More on these topics can be found in the <a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-perspectives/">Bloom Manual (Perspectives)</a>.</p><h4><strong>Search Phrases</strong></h4><p>Now that we’ve created a couple of perspectives, assigned roles, and configured captions and styling, we can move on to considering any <em>search phrases</em> our business users might need.</p><p>While domain specialists or analysts in your organization may not be well versed in the Cypher query language, <strong><em>developers</em></strong> can provide easy to use searches for specific purposes using Bloom’s search phrases.</p><blockquote>Note that search phrases are <strong>attached to the perspectives</strong>, and users will be limited by the permissions of their assigned roles when attempting to run search phrases.</blockquote><p>Continuing with the <em>Customer Perspective</em>, let’s create a search phrase that lets users of the perspective <strong><em>identify transactions between certain dates for customers from a specific country</em></strong>.</p><p>When we’re done it can be used like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*GcZhOXruNXs0zQjl-wQAOw.png" /><figcaption>Cypher Phrase input for the Business User</figcaption></figure><p>We’ll need four things:</p><ol><li>The <strong><em>search phrase</em></strong> itself that users will type into the search bar, along with any parameters we specify (preceded by a $): Transactions by customers from $country between $from and $to</li><li>A <strong><em>description</em></strong> for the search phrase. This will appear in all caps under the suggestion when the user starts typing the phrase in the search box: Lists customers from the selected country and transactions between the indicated dates</li><li>The Cypher query that will be executed when the search phrase is run. We’re looking for a graph pattern where a Country node is connected via a FROM relationship to a Customer node, which in turn is connected via a MADE_TRANSACTION relationship to a Transaction node. We then use an <a href="https://neo4j.com/labs/apoc/4.1/overview/apoc.date/apoc.date.parse/">apoc.date.parse</a> function to normalize date inputs with the database InvoiceDate parameter on Transaction nodes (which happens to be stored as a String value), so that we can use less than and greater than operators. Care should be taken writing certain search phrase queries to ensure they’ll be performant in the context of your underlying database.</li></ol><pre>MATCH (c:Country)&lt;-[f:FROM]-(cu:Customer)-[m:MADE_TRANSACTION]-&gt;(t:Transaction)<br>WHERE c.Name = $country<br>AND <br>apoc.date.parse($from, “ms”, “mm/dd/yyyy”) &lt;= apoc.date.parse(t.InvoiceDate, “ms”, “mm/dd/yy hh:mm”) &lt;= apoc.date.parse($to, “ms”, “mm/dd/yyyy”)<br>RETURN c, cu, t, f, m</pre><p>4. Optionally, any <strong><em>suggestions</em></strong> we want to display when the user is about to enter parameters. This can be done using a <em>label-key</em> combination, or by writing another <em>custom Cypher query</em>. In our case, we’ll use the Country label and Name property for suggestions when the user is typing the $country parameter, and the Transaction label’s InvoiceDate property when entering the $to and $from parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*AVjbndNHNv6QIkP233JD7w.png" /><figcaption>Cypher Phrase Editor</figcaption></figure><p>Here is the Cypher Phrase in the input field about to be selected, parameterized, and run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VR4c5R30QCqd1TJr" /></figure><p>It’s possible to add <strong><em>multiple search phrases to each perspective</em></strong>. Now let’s switch to the <em>Item Perspective </em>though, and add a search phrase to it, too.</p><p>This time we’ll add a simple search phrase, to return item nodes where the description contains the specified string value:</p><p>Search phrase: Items where description contains $param</p><p>Cypher query:</p><pre>MATCH (i:Item)<br>WHERE toLower(i.Description) CONTAINS toLower($param)<br>RETURN i</pre><p>In this query, we’re normalizing user input and the parameter values to lowercase, since we want results to be case insensitive. We’re also taking advantage of the CONTAINS operator to find the value searched anywhere in the <em>Description</em> property of <em>Item</em> nodes.</p><p>More details about this feature are again in the <a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-tutorial/search-phrases-advanced/">Bloom Manual (Search Phrases)</a></p><h4><strong>Deep Links</strong></h4><p>At this stage, we’ve set up a couple of perspectives, customized their styling, shared one with users with the reader role, and created search phrases for our domain specialists to use. Next, let’s talk about how we can make all of this easy for users to access.</p><p><strong><em>Deep links</em></strong> allow developers to build parameterized links to Bloom, and these can be shared in any number of ways, including via existing applications from which users may want to open a specific graph visualization.</p><p>Of course, you can generate these links programmatically, and used in conjunction with search phrases this can be very powerful.</p><p>Here are the parameters you can configure in a Bloom deep link:</p><ul><li>perspective: the name of a Bloom perspective</li><li>search : any search that you can run in the search bar, <em>including a search phrase</em></li><li>run : an optional boolean parameter, when set to true, Bloom will run the search as soon as it opens and display any results</li></ul><p>There are also a couple of <em>different protocols</em> you can use to launch a search phrase:</p><pre><strong>neo4j://graphapps/neo4j-bloom/</strong>?perspective=Item%20Perspective&amp;search=Items%20where%20description%20contains%20mysearchterm </pre><p>— this approach will launch Bloom via <strong><em>Neo4j Desktop</em></strong>, if it’s installed on the local machine</p><pre><a href="http://myServer:port/bloom/index.html?perspective=Item%20Perspective&amp;search=Items%20where%20description%20contains%20mysearchterm"><strong>http://myServer:port/bloom/</strong>index.html?perspective=Item%20Perspective&amp;search=Items%20where%20description%20contains%20mysearchterm</a> </pre><p>— this approach will launch Bloom in a web browser, whether hosted</p><ul><li>via the Bloom plugin on a Neo4j database,</li><li>on Aura, or</li><li>a standalone webserver hosting Bloom in your organization.</li></ul><p>More details on Bloom’s different installation options can be found in the <a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-installation/#bloom-deployment-modes">Bloom docs</a>.</p><p>Putting it all together, we can easily integrate <strong><em>links to specific search results</em></strong> in Bloom, styled by preconfigured perspectives with access to specific search phrases. You may want to generate alert emails with deep links, create spreadsheets with links to Bloom, or even integrate Bloom links into existing corporate applications.</p><h4><strong>Customizing &amp; Editing</strong></h4><p>Once looking at some data of interest, for example in the Item Perspective, analysts can continue to make use of Bloom’s multitude of exploration and analysis features including applying node <a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-visual-tour/bloom-scene-interactions/#bloom-expand-nodes">expansions</a>, <a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-visual-tour/bloom-scene-interactions/#bloom-reveal-relationships">revealing relationships</a>, <a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-visual-tour/legend-panel/#_rule_based_styling">rule-based styling</a>, and so on. Two improvements of note in Bloom 2.0 include histograms for certain data types (found in filters as well as rule-based styling), and improved editing capabilities.</p><p>Let’s look briefly at histograms — in this data set, some <a href="https://neo4j.com/product/graph-data-science/">Neo4j Graph Data Science Library (GDSL)</a> algorithms have already been applied and noted as node properties. If we want to filter Items on scene by looking only at those with the highest <a href="https://neo4j.com/docs/graph-data-science/current/algorithms/closeness-centrality/">closeness centrality</a>, we can now easily see how that measure is distributed and interactively select the range of interest per the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L_9rqVpCL4gBVrb8vzEmKw.png" /></figure><p>Version 2.0 also has enhancements to the editing features in Bloom. You can directly edit properties in the Inspector, as before. Additionally, Bloom can handle creating nodes when existence, uniqueness, or node key constraints exist. The ability to delete nodes and relationships is also new.</p><h4><strong>Save &amp; Share a Scene</strong></h4><p>Wrapping things up, let’s look at how users of perspectives, search phrases, and deep links can <strong><em>save and share their findings with others</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/0*9pWCosIOtYlGI-9O" /><figcaption>Export Menu Options</figcaption></figure><p>Two of the most common ways available in all versions of Neo4j Bloom are <strong><em>exporting screenshots </em></strong>or<strong><em> CSVs</em></strong>.</p><p>These options are found in the Export menu in the top right corner of Bloom.</p><ul><li><em>Exporting a screenshot</em> exports a high quality PNG image of the current scene with a transparent background, free of any UI elements or other artifacts.</li><li><em>Exporting to CSV</em> generates a ZIP file with two CSVs, one containing all nodes on scene and their properties (except properties ‘excluded’ in the perspective designer), as well as one containing all relationships. If these files don’t meet your needs, they can always be transformed by your own tooling or procedures.</li></ul><p>Starting with Bloom 2.0, Full Access Enterprise users with the Bloom plugin installed on their Neo4j database can also start taking advantage of the <strong><em>new Scene Saving and Sharing features</em></strong>.</p><p>Users with write access to the database can <em>create, save, and modify multiple scenes</em>. Furthermore, they can <em>choose to share</em> them via the same export menu with users who have access to the perspective.</p><p>Users viewing a scene shared with them won’t be able to save changes, but they will be able to make a <em>copy of the scene (duplicate)</em> and make changes to their own copy (as long as they have write access to the database).</p><p>For Full Access installations, scenes can be accessed via the new <strong><em>Scenes icon</em></strong> below the <strong><em>Filter icon</em></strong> on the upper left of the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_yMXsBGp_j8TBZ3Q" /><figcaption>Bloom Scene Management</figcaption></figure><h4><strong>Conclusion</strong></h4><p>We’ve made use of a number of simple yet highly flexible Bloom features to demonstrate how developers can leverage Bloom as an out-of-the-box graph visualization solution working seamlessly with their Neo4j database.</p><p>In many cases these techniques can save a lot of time and effort building and maintaining custom solutions. You can also check out our explainer video for Developers for a recap of these features and get started with Neo4j Bloom on the product <a href="http://www.neo4j.com/bloom">page</a>.</p><p><a href="https://neo4j.com/product/bloom/">Bloom</a></p><p>If you have feedback for Neo4j Bloom, please share it <a href="https://neo4j-bloom.canny.io/">here</a>.</p><p><a href="https://neo4j-bloom.canny.io/">Neo4j Bloom Feedback</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=18bf145dc41e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neo4j/integrating-graph-data-visualizations-into-no-code-workflows-with-bloom-2-0-18bf145dc41e">Integrating Graph Data Visualizations into No-Code Workflows with Bloom 2.0</a> was originally published in <a href="https://medium.com/neo4j">Neo4j Developer Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Recent Updates to Neo4j ✿ Bloom]]></title>
            <link>https://medium.com/neo4j/recent-updates-to-neo4j-bloom-7bee848a91e8?source=rss-725710f23c83------2</link>
            <guid isPermaLink="false">https://medium.com/p/7bee848a91e8</guid>
            <category><![CDATA[visualization]]></category>
            <category><![CDATA[announcements]]></category>
            <category><![CDATA[neo4j]]></category>
            <category><![CDATA[bloom]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Jeff Gagnon]]></dc:creator>
            <pubDate>Wed, 14 Jul 2021 16:55:37 GMT</pubDate>
            <atom:updated>2021-07-15T17:16:26.710Z</atom:updated>
            <content:encoded><![CDATA[<p>Graph databases are the foundation for intelligent transformations increasingly showing their value in numerous domains, including:</p><ul><li>supply chain management,</li><li>cyber security,</li><li>investigative analysis,</li><li>public health,</li><li>and predictive analytics, just to name a few.</li></ul><p>Visualizations are a powerful way to bring this value into focus for a wider audience. Bloom is Neo4j’s graph visualization tool, and has been maturing over the past couple of years.</p><p>In this post, I’d like to go over a number of the key changes from the past two versions of Bloom, and discuss how they might be helpful to analysts and data scientists, as well as developers involved in these specialties.</p><p>To do this, I’ll focus on three areas of improvement: performance, usability, and analytic features.</p><h3><strong>Key Takeaways</strong></h3><ul><li>Neo4j Bloom helps analysts and non-technical users in numerous domains better understand &amp; leverage the power of Neo4j</li><li>Neo4j Bloom continues to evolve with recent improvements to performance, usability and analytic capabilities</li><li>We want your <a href="https://neo4j-bloom.canny.io/feature-requests">feedback</a>!</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*weS7UlrsY2aRiHc751ohQg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@colorflores">Omar Flores</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>Performance</strong></h3><h4>Using the Reactive Driver</h4><p>The first set of changes I’ll highlight are some <strong>performance enhancements</strong>. In version 1.6, Bloom started taking advantage of Reactive drivers. Bloom uses Neo4j’s <a href="https://neo4j.com/download-center/#drivers">JavaScript driver</a> for retrieving data from the database.</p><p><a href="https://medium.com/neo4j/fetching-large-amount-of-data-using-the-neo4j-reactive-driver-the-bloom-case-4c3bcd0f4194">Fetching Large Amount of Data Using the Neo4j Reactive Driver: The Bloom Case</a></p><p>Reactive drivers were introduced in Neo4j 4.0, and Bloom, a React based JavaScript application, now uses the latest JavaScript Reactive driver for Neo4j.</p><p>This lets us improve the responsiveness of queries, and also reduces database load. You can read more about how Bloom manages queries in stages in <a href="https://medium.com/neo4j/fetching-large-amount-of-data-using-the-neo4j-reactive-driver-the-bloom-case-4c3bcd0f4194">this blog</a>. The switch to this driver should result in overall faster performance when interacting with Bloom, particularly on larger data sets.</p><h4>Search Performance</h4><p>Also related to <strong>search</strong>, Bloom 1.6.0 saw improvements in performance related to suggestions offered when using the near-natural language search box.</p><p>As search terms are entered into the search box, Bloom attempts to identify database schema matches and suggest those in the context box below. Changes were recently implemented to improve the speed with which these suggestions appear, by making some changes to how we cache index data and the logic that identifies potential suggestions.</p><p>For example, previously Bloom would search for terms matching the characters entered even if none of the prior characters resulted in a match — now Bloom avoids searching for values when it’s established that the first few characters don’t match anything in the database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/939/0*6H-rLP_4Vd5nZoam" /></figure><p>Finally, another performance enhancement centers on Bloom’s <strong>physics-based visualization layout</strong>. Particularly for large graphs shown in Bloom, changing the focus to particular nodes (for example, when using the “Fit to selection” action or adding nodes by expanding) should now be a smoother and quicker visual experience. Visualization and graph layout continue to be important areas of work as we strive to build the best experience possible.</p><h3><strong>Usability</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RW0n0wr6z175wtBOJUUsmQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@alvarordesign">Alvaro Reyes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In addition to performance enhancements, a number of usability enhancements have been added to Bloom in recent versions.</p><p>Perhaps the most obvious change for users will be the <strong>automatic generation of a perspective</strong> when you load Bloom for the first time. Perspectives are a unique feature of Bloom that allow users to define just the elements of the underlying database they want to include in their visualization.</p><p><a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-perspectives/">Perspectives - Neo4j Bloom</a></p><p>This can be very useful, especially when dealing with a large and diverse underlying data model — some users may be interested in certain categories and properties (for example, nodes of category <em>Customer</em> and <em>Address</em> along with a <em>lives_at</em> relationship) while others may be interested in different types of nodes and relationships (such as <em>Product</em> and <em>Customer</em> nodes, and a <em>transaction</em> relationship). Perspectives also allow users to retain styling and filtering rules.</p><p>Prior to version 1.7.0, Bloom would show the <a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-perspectives/#bloom-perspective-creation">Perspective Gallery</a> before loading a scene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxXvCs5kWPe4cUctoXvpng.png" /><figcaption>Bloom perspective gallery</figcaption></figure><p>If a perspective has never been created on the database being opened, Bloom will now <strong>automatically generate a perspective</strong> by sampling the database and displaying some subset of data to start exploring. Specifically, Bloom will load <em>one category</em> into the auto-generated perspective <em>for every label</em> found in the database.</p><p>For each label, Bloom will sample one node and add the property keys and types on those category to the perspective.</p><blockquote>As Bloom loads more nodes through user interactions, it will <strong>re-scan the properties and add any new ones found to the perspective </strong>— this is true even for user-generated perspectives.</blockquote><p>Also check out the Bloom manual for more details:</p><p><a href="https://neo4j.com/docs/bloom-user-guide/current/bloom-visual-tour/">Visual Tour - Neo4j Bloom</a></p><p>In addition to auto-perspective, a few more straightforward usability improvements have recently appeared. Namely:</p><ul><li>You can now set the <strong>session timeout</strong> value in the settings drawer.</li><li>The powerful <em>Search Phrases</em> feature has also been updated with <strong>auto-save</strong>, so Cypher queries and other details of search phrases will automatically be saved as you type.</li><li>Finally, a keyboard shortcut has been added to <strong>quickly clear the scene</strong> in Bloom if you want to start with a blank canvas — Cmd+Delete on Mac or Ctrl+Delete on Windows/Linux.</li></ul><h3><strong>Styling &amp; Rendering</strong></h3><p>Bloom has recently also benefited from some improvements to better enable the graph analytics work it supports. One aspect of the underlying graph model that can sometimes be confusing is the fact that <em>nodes might have more than one label</em>.</p><h4>Styling Order</h4><p>In Bloom, we use categories to define the label we use to identify nodes of a particular type. For example, you might have a node with both a User and a Troll label. In Bloom, you could interact with this node using either (expressed as a category).</p><ol><li>If you decide to style nodes, for example, based on the User label, then all nodes having the label User will take on the style you specify (perhaps you make them <strong><em>yellow</em></strong>, like in the first image below).</li><li>Similarly, you could apply a different style to all nodes with the Troll label (let’s make them <strong><em>blue</em></strong>).</li></ol><blockquote>Prior to version 1.7, this would mean the color applied to a node with both labels <em>would depend on the order</em> in which the styling rules were applied.</blockquote><p>Now, users can <strong><em>drag categories in the perspective drawer to set the order</em></strong> in which styles will be applied to nodes with multiple labels.</p><p>Categories above will take precedence over those below. As you can see below, a node can have both a User and a Troll label. In the first image we have User above Troll, so all nodes with the User label are yellow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eKzDtFvWG9Hu1RTB" /><figcaption>“User” is above “Troll” so all nodes with label “User” are yellow, even if they also have label “Troll”</figcaption></figure><p>In the second image, we place Troll above User. Now, all of the nodes with label Troll appear using the default styling for Troll, blue in this case. User nodes that don’t also have a Troll label remain yellow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*10xMq8HmYFGr352Y" /><figcaption>“Troll” is above “User” so all nodes with label “Troll” are blue, even if they also have label “User”</figcaption></figure><h3>Filtering</h3><p>In another recent change, users can now also <strong><em>filter the scene</em></strong> using the <strong><em>funnel icon</em></strong> just below the search box.</p><p>This lets you reduce the graph on scene according to your needs without having to dismiss nodes and relationships — elements that are filtered out simply go <strong><em>grey</em></strong> so long as the filter is applied, making it easier to find what you’re looking for.</p><p>With the <strong><em>Dismiss</em></strong> button at the bottom of the filter pane, you can also choose to dismiss nodes that have been greyed out, or filtered from the scene.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4q3LS1t-nUf61Yv2" /><figcaption>Graph with filtered out elements</figcaption></figure><h4>Between Predicate</h4><p>A <strong><em>between</em></strong> condition has also been added to the <strong>styling rules</strong> and the <strong>filter pane</strong>, enabling styling and filtering based on property values that fall between to user definable parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IJvL83_WF9eW1NE_" /><figcaption>Style/Filter “between”</figcaption></figure><p>There have been a number of other changes and enhancements along the way, and lots of other upgrades and refinements are planned.</p><p>These are just some of the perhaps more interesting and useful recent changes to Bloom, and we look forward to bringing you more (and <a href="https://neo4j-bloom.canny.io/feature-requests">hearing what’s important to you!</a>). Please provide feedback to us using the built-in Feedback mechanism in Bloom or the link below.</p><p><a href="https://neo4j-bloom.canny.io/feature-requests">Feature Requests | Neo4j Bloom</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7bee848a91e8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neo4j/recent-updates-to-neo4j-bloom-7bee848a91e8">Recent Updates to Neo4j ✿ Bloom</a> was originally published in <a href="https://medium.com/neo4j">Neo4j Developer Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>