<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Fabián Gambetta</title>
    <description>The latest articles on DEV Community by Fabián Gambetta (@fgambetta).</description>
    <link>https://dev.to/fgambetta</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F653890%2Fec6ad165-5dc5-4148-81c1-e86007ef4254.PNG</url>
      <title>DEV Community: Fabián Gambetta</title>
      <link>https://dev.to/fgambetta</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/fgambetta"/>
    <language>en</language>
    <item>
      <title>Proyección nativa en Neo4j</title>
      <dc:creator>Fabián Gambetta</dc:creator>
      <pubDate>Sat, 18 Sep 2021 21:52:27 +0000</pubDate>
      <link>https://dev.to/fgambetta/proyeccion-nativa-en-neo4j-1coh</link>
      <guid>https://dev.to/fgambetta/proyeccion-nativa-en-neo4j-1coh</guid>
      <description>&lt;p&gt;El mecanismo de proyección nativa ofrecida por Neo4j permite crear una proyección de un grafo en memoria. Dicha proyección es definida en términos de los nodos, relaciones y propiedades del grafo original.&lt;/p&gt;

&lt;p&gt;En el siguiente grafo tenemos nodos Person y sus relaciones: Married, Parent y Siblings.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Dm2GCbHg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z171xbaaaddcvajl7adv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Dm2GCbHg--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/z171xbaaaddcvajl7adv.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Una proyección que solo contempla los nodos Person y la relación Parent representa el siguiente grafo.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xw3qYXRU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5izx0vsb2wkz3o5qu0rs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xw3qYXRU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5izx0vsb2wkz3o5qu0rs.png" alt="image" title="Proyección"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;La sintaxis para crear una proyección es la siguiente:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;CALL gds.graph.create(
graph-name, node-projection, relationship-projection,
    {nodeProperties: String or List,
     relationshipProperties: String or List
    })
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;El método graph.create recibe tres parámetros:&lt;br&gt;
&lt;strong&gt;graph-name&lt;/strong&gt;: Nombre del grafo a crear.&lt;br&gt;
&lt;strong&gt;node-projection&lt;/strong&gt;: Nodos que queremos en la proyección.&lt;br&gt;
&lt;strong&gt;relationship-projection&lt;/strong&gt;: Relaciones que queremos en la proyección.&lt;/p&gt;

</description>
      <category>database</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
