<?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 Satoshi (euonymus) on Medium]]></title>
        <description><![CDATA[Stories by Satoshi (euonymus) on Medium]]></description>
        <link>https://medium.com/@euonymus?source=rss-7eef9b6cb2be------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*RX8Zpd0fC-AoOsVqozzKcg.jpeg</url>
            <title>Stories by Satoshi (euonymus) on Medium</title>
            <link>https://medium.com/@euonymus?source=rss-7eef9b6cb2be------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 21:08:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@euonymus/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[CSV Data Importer Neo4j-Bigbang]]></title>
            <link>https://medium.com/analytics-vidhya/csv-data-importer-neo4j-bigbang-3a144056fbe2?source=rss-7eef9b6cb2be------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a144056fbe2</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[import]]></category>
            <category><![CDATA[csv]]></category>
            <category><![CDATA[neo4j]]></category>
            <category><![CDATA[pip]]></category>
            <dc:creator><![CDATA[Satoshi (euonymus)]]></dc:creator>
            <pubDate>Wed, 23 Sep 2020 16:21:39 GMT</pubDate>
            <atom:updated>2020-11-10T13:04:35.923Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t21Cwc3pxW0k2ReHgOmGCA.jpeg" /></figure><h3>What is Neo4j-Bigbang?</h3><p>Neo4j-Bigbang is a python package to allow you to import CSV data into Neo4j database in the easiest way. This provides two commands bigbang-node and bigbang-rel and these will make all the magics.</p><p><a href="https://pypi.org/project/neo4j-bigbang/">Neo4j-Bigbang on PyPI</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3cghYow8PJg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3cghYow8PJg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3cghYow8PJg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/8b049a6c6fc918fa902127348218999a/href">https://medium.com/media/8b049a6c6fc918fa902127348218999a/href</a></iframe><h3>Pains you may have when dealing with CSV</h3><p>Have you tried importing CSV data into Neo4j Database? If yes, you would probably ended up to this Neo4j Official <a href="https://neo4j.com/developer/desktop-csv-import/">Import CSV tutorial</a>. You should realize that this requires you</p><ul><li>to take a lot of steps</li><li>to learn Neo4j special terms</li><li>to write Cypher Scripts</li><li>to prepare RDB like well formatted CSV data</li></ul><p>In this case, you need to manually manipulate how data should be treated. You may have to make decisions on each data with great care.</p><h3>What Neo4j-Bigbang does for you</h3><ul><li>Import Nodes, labels and properties with automated type detection.</li><li>Create Relationships and Nodes at once with single CSV file.</li><li>Avoid inserting the same node twice.</li><li>Avoid creating the same relationship twice.</li><li>Update labels and properties on existing Nodes and Relationships.</li><li>You can force inserting the same node multiple times if you want to.</li></ul><p>You don’t have to define schemas in advance, but just set properties in your CSV. You don’t need to write Cypher script at all.</p><p>All you need to do is, prepare your CSV file and run bigbang!</p><h3>Setup Neo4j-Bigbang</h3><p>Before explaining anything, let’s try it on and see how it’s like.</p><h4>Prepare environment</h4><pre>$ mkdir your-dir<br>$ cd your-dir<br>$ python -m venv venv<br>$ source venv/bin/activate<br>$ export NEO4J_URI=bolt://{hostname}:7687 NEO4J_USER={username} NEO4J_PASSWORD={password}</pre><h4>Install neo4j-bigbang</h4><pre>$ pip install neo4j-bigbang</pre><h3>Run command, create relationships</h3><p>In this example, I chose the easiest way to show how to create your Graph, so this time I would use bigbang-rel command.</p><h4>Prepare CSV data under importing directory</h4><pre>$ mkdir importing<br>$ vim importing/relationships.csv</pre><h4>Sample CSV relationships</h4><pre>type,target_fields_in,target_values_in,target_labels_in,target_fields_out,target_values_out,target_labels_out,position<br>APPEAR_IN,name,Mouse,Character|Person,name,The Matrix,Movie,ally<br>APPEAR_IN,name,Neo,Character|Person,name,The Matrix,Movie,protagonist<br>APPEAR_IN,name,Morpheus,Character|Person,name,The Matrix,Movie,ally<br>APPEAR_IN,name,Dozer,Character|Person,name,The Matrix,Movie,ally<br>APPEAR_IN,name,Trinity,Character|Person,name,The Matrix,Movie,ally<br>APPEAR_IN,name,Oracle,Character|ComputerProgram,name,The Matrix,Movie,prophet<br>APPEAR_IN,name,Architect,Character|ComputerProgram,name,The Matrix,Movie,enemy<br>APPEAR_IN,name,Deus Ex Machina,Character|HardwareInterface,name,The Matrix,Movie,enemy<br>APPEAR_IN,name,Agent Smith,Character|ComputerProgram,name,The Matrix,Movie,enemy<br>APPEAR_IN,name,Machine City,City,name,The Matrix,Movie,place<br>APPEAR_IN,name,The Matrix,VirtualRealityWorld,name,The Matrix,Movie,virtual world<br>IS_CREW_OF,name,Mouse,Character|Person,name,Nebuchadnezzar,Vehicle|Battleship,<br>IS_CREW_OF,name,Neo,Character|Person,name,Nebuchadnezzar,Vehicle|Battleship,<br>IS_CREW_OF,name,Morpheus,Character|Person,name,Nebuchadnezzar,Vehicle|Battleship,captain<br>IS_CREW_OF,name,Dozer,Character|Person,name,Nebuchadnezzar,Vehicle|Battleship,pilot<br>IS_CREW_OF,name,Trinity,Character|Person,name,Nebuchadnezzar,Vehicle|Battleship,<br>HELP,name,Mouse,Character|Person,name,Neo,Character|Person,<br>HELP,name,Morpheus,Character|Person,name,Neo,Character|Person,believes Neo is the One<br>HELP,name,Trinity,Character|Person,name,Neo,Character|Person,girl friend<br>HELP,name,Oracle,Character|ComputerProgram,name,Neo,Character|Person,adviser<br>GAVE_CHOISE,name,Architect,Character|ComputerProgram,name,Neo,Character|Person,<br>CHALLENGED,name,Agent Smith,Character|ComputerProgram,name,Neo,Character|Person,<br>ASKED_HELP,name,Neo,Character|Person,name,Deus Ex Machina,Character|HardwareInterface,<br>KILLED,name,Agent Smith,Character|ComputerProgram,name,Oracle,Character|ComputerProgram,<br>WORK_TOGETHER_WITH,name,Morpheus,Character|Person,name,Trinity,Character|Person,<br>DESIGNED,name,Architect,Character|ComputerProgram,name,The Matrix,VirtualRealityWorld,<br>WAS_BORN_IN,name,Neo,Character|Person,name,The Matrix,VirtualRealityWorld,<br>IS_INTERFACE_OF,name,Deus Ex Machina,Character|HardwareInterface,name,Machine City,City,<br>TRY_TO_DESTROY,name,Agent Smith,Character|ComputerProgram,name,Machine City,City,<br>TRY_TO_DESTROY,name,Agent Smith,Character|ComputerProgram,name,The Matrix,VirtualRealityWorld,<br>DELETED,name,Deus Ex Machina,Character|HardwareInterface,name,Agent Smith,Character|ComputerProgram,</pre><p>This CSV file is specified for bigbang-rel command.</p><h4>Run to Generate Graph</h4><pre>$ bigbang-rel -c</pre><p>That’s it! This will create a graph for you. Now you know how easy Neo4j-Bigbang is.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KeHQgKM3E64fh6BzBEtAEg.png" /></figure><h3>Relationship CSV Requirement</h3><p>When you create relationships.csv, It has to have at least the following fields required by the bigbang-relcommand.</p><ul><li>type: Type of the relationship</li><li>target_fields_in: Target property on the first Node</li><li>target_values_in: Target property’s value on the first Node</li><li>target_fields_out: Target property on the second Node</li><li>target_values_out: Target property’s value on the second Node</li></ul><p>Optionally you can also define</p><ul><li>target_labels_in</li><li>target_labels_out</li></ul><p>Everything else you define will become properties on the relationship.</p><h4>Example</h4><p>If you want to make a relationships between…</p><pre>Node: Person {<br>   name: &#39;Mike&#39;<br>}</pre><p>and</p><pre>Node: Person {<br>    name: &#39;Anna&#39;<br>}</pre><p>Then, you can set your CSV values like</p><pre>target_fields_in =&gt; name<br>target_values_in =&gt; Mike<br>target_labels_in =&gt; Person</pre><pre>target_fields_out =&gt; name<br>target_values_out =&gt; Anna<br>target_labels_out =&gt; Person</pre><h3>Run command, import Nodes</h3><p>You can also import only nodes without relationships by using bigbang-node . This will concentrate on manipulating node. You can roughly create relationships and nodes with bigbang-rel command, and later you can set detailed properties on those nodes, or vice versa.</p><h4>Prepare CSV data under importing directory</h4><pre>$ mkdir importing<br>$ vim importing/nodes.csv</pre><h4>Sample CSV nodes</h4><pre>name,description,labels<br>Nebuchadnezzar,Nebuchadnezzar is a fictional hovership captained by Morpheus in the The Matrix franchise.,Vehicle|Battleship<br>Oracle,&quot;She is a prophet in the Matrix. She looks like a person, but is a computer program created for some perposes.&quot;,Character|ComputerProgram<br>Agent Smith,Agent Smith is a fictional character and the main antagonist of The Matrix trilogy.,Character|ComputerProgram<br>Switch,Switch was a member of the crew of the Nebuchadnezzar.,Character|Person</pre><p>This CSV file is specified for bigbang-node command.</p><h4>Run to Generate Nodes</h4><pre>$ bigbang-node</pre><p>This will create only one Node, if you noticed. This is because, other nodes are already there in the graph. But if you want to update those nodes with the new properties, in this case description is added, then you should put -u option there.</p><pre>$ bigbang-node -u</pre><p>Then all the nodes will be updated.</p><p>Neo4j-Bigbang has a lot more options and flexibility.</p><ul><li>You can create relationships between existing nodes or creating at once.</li><li>You can update properties of existing relationships</li><li>You can choose node picking property and labels when you create relationship</li><li>You can choose importing CSV filename.</li><li>If you want to set all the same TYPE in relationship CSV, you could set your CSV file name as relationship TYPE</li><li>If you want to set all the same Label in node CSV, you could set your CSV file name as node Labels</li><li>You can choose creating new nodes or updating ones or skipping.</li></ul><p>Hope this will help you to begin your Neo4j journey without any hassles.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a144056fbe2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/csv-data-importer-neo4j-bigbang-3a144056fbe2">CSV Data Importer Neo4j-Bigbang</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Baryon the Neo4j React UI Component]]></title>
            <link>https://medium.com/neo4j/baryon-the-neo4j-react-ui-component-e8484dbae38f?source=rss-7eef9b6cb2be------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8484dbae38f</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[neo4j]]></category>
            <category><![CDATA[graph-database]]></category>
            <dc:creator><![CDATA[Satoshi (euonymus)]]></dc:creator>
            <pubDate>Mon, 21 Oct 2019 18:08:06 GMT</pubDate>
            <atom:updated>2019-10-28T15:56:35.036Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is Baryon?</h3><p>Baryon is a react component to compose organized UI view for your Neo4j graph that allows you to inspect simply and intuitively</p><p>You can see more about Baryon</p><ul><li><a href="https://github.com/euonymus/baryon">Github: Baryon repository here</a></li><li><a href="https://community.neo4j.com/t/global-graphhack-baryon-react-component-to-visualize-neo4j-graph-as-a-media/10830">Neo4j community: Baryon</a></li><li><a href="https://devpost.com/software/baryon">Devpost: Baryon on Global GraphHack</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F1yNPHG9HTWs%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D1yNPHG9HTWs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F1yNPHG9HTWs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4428751ce555ad3059cbc2c4533e9974/href">https://medium.com/media/4428751ce555ad3059cbc2c4533e9974/href</a></iframe><h3>Why Baryon?</h3><p>The reason why I created Baryon is that I wanted to show the power of graph to ordinary people. I thought Graph database like Neo4j is been used in rocket science for years among researchers and scientists, but the foundation of graph lays everywhere in life. Baryon can visualize any kinds of relationships in a media like UI view, so people can easily dig deeper to find surprising connections among things.</p><h3>What it does</h3><ul><li>Baryon provides you a simple UI to inspect Neo4j graph data</li><li>Subject node appears in the main area</li><li>Relationships appear in a list</li><li>Each relationship is expressed in sentence powered by RDF triple</li><li>Each node or relationship can have start-date and end-date</li><li>Relationships are sorted by start-date of relationships, then start-date of nodes</li><li>Secondary relationships on each connected node is listed below the node</li><li>Secondary relationship list can be configured to be On / Off</li><li>Each node-label has their label-properties(*1)</li><li>Relations are categorized depending on relationship-types</li><li>Each label-property is a collection of relationship-types(*2)</li><li>URL path to Baryon UI on your app can be configured</li></ul><p>(*1): label-properties are not the properties in Neo4j terms. label-properties are semantic types belong to labels, for instance Person has Parents, Children and so on.</p><p>(*2): Both BROTHER_OF and SISTER_OF go into siblings label-property</p><h3>The key of Baryon is Data Modeling</h3><p>In order to organize data in a consistent structure, you are required to keep some small rules.</p><p>There are two aspects in data modeling on Baryon</p><ol><li>Criteria you need to keep</li><li>Data Models those Baryon takes care</li></ol><h3>Criteria you need to keep</h3><p>When you create nodes and relationships on Baryon, properties are the key.</p><ul><li>Actionable node properties</li><li>Actionable relationship properties</li></ul><p>Actionable properties are the properties those give some visual effects on Baryon Component. Those are all optional except name property. So you don’t need to worry about filling all the properties at once. It’s just better to have.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xy6tJ6Uno7XYVsNvr9wUCQ.png" /><figcaption>Actionable properties on Baryon</figcaption></figure><p>You can see what is actionable properties at <a href="https://github.com/euonymus/baryon">github repository</a></p><h4>Baryon cares about life time of nodes and relationships.</h4><p>Nodes are the representative of Things in Universe. And things always have birth moment and death moment. Even though sometimes those are vague. So Baryon asks nodes to have start and end property. start represent the birth moment of the Node and end does the death moment. Some nodes happens momentary like a spark, such as Events. In this case you don’t have end property, but set is_momentary True.</p><p>Like wise, Relationships have start and end properties. As well, relationship always starts at some point, and ends eventually</p><p>Interestingly, both nodes and relationships live in similar time period have stronger relations each other. People live in the same era may know each other. Two people worked at the same company at the same period surely knows each other. So sorting and filtering by the life time does have a lot of meanings. Relationships in Baryon are always sorted by the start property. Unfortunately filtering feature is not yet implemented. It will be in the future.</p><h3>Data Models those Baryon takes care</h3><p>The reason why Baryon can organize categories neatly is because Baryon have its own data model inside. Baryon is built with following structures</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xz01Ah6G82hgV-VIEqGHNQ.png" /><figcaption>Baryon’s abstract Data Structure</figcaption></figure><ul><li>Subject Node (on Neo4j)</li><li>Label (on Neo4j)</li><li>Template (on Baryon)</li><li>Label Property (on Baryon)</li><li>Type List (on Baryon)</li><li>Type (on Neo4j)</li><li>Relationships (on Neo4j)</li><li>Object Node (on Neo4j)</li></ul><h3>Node and Label</h3><p>These are Neo4j Resources. As you know, node is a thing like “John”, “Neo Technology” or anything. Label of course is a role of nodes, such as Person, Company, MusicSong, or stuff.</p><h3>Template, Label Property and Type List</h3><p>In the Neo4j world, Types of Relationships are like, IS_SON_OF, IS_DAUGHTER_OF, WORKED_AT, IS_GRADUATED_FROM and STUDIED_AT. Each of them contains individual contexts. You can group relationships by IS_SON_OF type easily, but if you need to group IS_SON_OF and IS_DAUGHTER_OF into the same category, it’s not so simple.</p><p>On the other hand, Each Label has its own characteristics. For instance, Person has Spouses, Parents, Children, Siblings, Jobs, Alma maters, Works. Company has Parent Organizations, Sub Organizations, Founders, Employees, Products, Services and so on. Come to think of it. These are not directly the Type of Relationships. So I call them Label Property. Templates represent these characteristics by grouping these Label Properties.</p><h4>Template</h4><p>Template is a group of Label Properties on each Label of Node. Every Label has its Template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O4Xoc1o72DiSbSFupHttrQ.png" /><figcaption>Examples of Template</figcaption></figure><h4>Label Property</h4><p>Label Properties are properties on each Label. As an example, Person almost always has Parents, Jobs. whereas MusicGroup has Members and Discography.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GR84XMm5ts236Pwx8tAwEA.png" /><figcaption>Person Template with Label Properties</figcaption></figure><h4>Type List</h4><p>Label Property also is a group of Types. For example Parents Label Property may have Types like IS_SON_OF, IS_DAUGHTER_OF, IS_CHILD_OF. Because I want to keep the model simple, I always add directed relationship from New generation to Older one. So there is no IS_PARENT_OF Types. Now, all these different Types have to be under Parents or Children Label Property. You may notice that direction of the relationships matter, and that’s what Baryon takes care of.</p><h4>Example Data Structure in Baryon</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OvcfLsj3C3YDBzt3DU9JAA.png" /><figcaption>Example Data Structure in Baryon</figcaption></figure><h3>How to Use</h3><p>To use Baryon, please take a look at <a href="https://github.com/euonymus/baryon">Github repository</a></p><h3>Future works</h3><p>I started Baryon when Neo4j announced <a href="https://globalgraphhack.devpost.com/">Global GraphHack</a>. Because this is in the part of a hackathon, I didn’t have time to penetrate many things. I still have a lot of ideas to improve this.</p><ul><li>Life time filtering</li><li>Activate GraphQL version, so that you can publish your project without exposing your Neo4j ID/password</li><li>Login feature to achieve your private graph</li><li>Create a new style media on Baryon with universal Graph data</li></ul><h3>Baryon is a derived project from gluons</h3><p><a href="https://gluons.link/">gluons</a> is my original project before Baryon is started.</p><p>“gluons” is a new style media which introduces all the relationships in universe with graph structured data. Current gluons does not use Graph Database, but data structure is exactly same as graph. Baryon is a derived project from gluons, which only represent UI view part of it.</p><p>In other words, gluons is a media having its own dataset, and Baryon is a UI view that gluons will also use in the near future.</p><h3>gluons</h3><p>I believe gluons can replace Wikipedia.</p><ul><li><a href="https://gluons.link/">gluons in English</a></li><li><a href="https://ja.gluons.link/">gluons in Japanese</a></li></ul><p>NOTE1: Because I started Japanese version first, Japanese gluons is much more substantial than English one. But you can still get some feelings from English version hopefully.</p><p>NOTE2: gluons is extremely slow, because it does not use graph database behind. I’m planning to migrate to Neo4j soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8484dbae38f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/neo4j/baryon-the-neo4j-react-ui-component-e8484dbae38f">Baryon the Neo4j React UI Component</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>