<?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[Aarth Software - Medium]]></title>
        <description><![CDATA[Aarth Software is a new-age IT service management company committed to mature an organisation’s understanding of their data and to transform their decision-making strategies with meaningful insights. - Medium]]></description>
        <link>https://medium.com/aarth-software?source=rss----b7054e0b2b28---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Aarth Software - Medium</title>
            <link>https://medium.com/aarth-software?source=rss----b7054e0b2b28---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 15:38:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/aarth-software" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Implementing Cypress on Enterprise knowledge graph / RDF]]></title>
            <link>https://medium.com/aarth-software/implementing-cypress-on-enterprise-knowledge-graph-rdf-85b38e61e60e?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/85b38e61e60e</guid>
            <category><![CDATA[cicd]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cypress]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <dc:creator><![CDATA[mummadi prathyusha]]></dc:creator>
            <pubDate>Wed, 09 Aug 2023 06:22:42 GMT</pubDate>
            <atom:updated>2023-08-09T06:22:46.427Z</atom:updated>
            <content:encoded><![CDATA[<p>- <strong>Overcome challenges by Optimising Data Testing Along Streamlining Quality Assurance</strong></p><p><strong>Introduction:</strong></p><p>In today’s technology-driven world, robust and reliable software testing is crucial for ensuring the smooth functioning of applications. The emergence of innovative technologies has led to the development of advanced tools that streamline data testing processes. One such tool is Cypress, a powerful end-to-end testing framework.</p><p>Enterprise knowledge graph platforms/RDFs, recognizes the significance of quality assurance in delivering a seamless user experience. As organisations strive to optimise their data testing processes, when it comes to semantic layer connection.</p><p>However, like any implementation project, there are challenges that may arise during the process. In this article, we will explore the common challenges faced while implementing Cypress on an enterprise knowledge graph platform and discuss strategies to overcome them.</p><p><strong>Optimising Data Testing:</strong></p><ol><li><strong>Understanding Cypress: </strong>Cypress is a JavaScript-based testing framework that enables developers to conduct end-to-end testing for web applications. It provides a range of features like <strong>automatic waiting, real-time reloading</strong>, and an <strong>easy-to-use interface</strong>. These qualities make Cypress an ideal choice for efficient and effective <strong>data testing</strong>.</li><li><strong>Introduction to enterprise knowledge graph platform:</strong> It is a cutting-edge data management solution designed to centralise and optimise data assets which even replaces MDM (Master data Management), Data Virtualization &amp; Meta management. It allows organisations to define, manage, and govern their data in a structured manner.</li><li><strong>Implementing Cypress steps:</strong></li></ol><p>a. Install and set up Cypress: Use npm to install Cypress and initialise it within your project directory.</p><p>b. Create test scripts: Write test scripts using Cypress’s intuitive API to interact with modules like data integration/data manager. These scripts should cover various scenarios and actions you want to test.</p><p>c. Customise the Cypress configuration: Modify the configuration file to integrate with the platform (module individually). Set up environment variables, URLs, and authentication details required for testing.</p><p>d. Run and analyse tests: Execute the tests using the Cypress test runner. Monitor the test results and leverage Cypress’s debugging tools to troubleshoot any issues that may arise.</p><p><strong>Procedural steps:</strong></p><p>● In order to ensure the proper functioning of a data integration/data manager module, manual testing is conducted to understand its working conditions.</p><p>● Test scripts are written using the Cypress API, defining the actions to be performed and the expected results. These scripts cover various scenarios such as user authentication, data retrieval, UI and graph visualisation.</p><p>● The tests are executed locally using Cypress, providing real-time test execution view and debugging capabilities. Cypress commands like ‘npx cypress open’ and ‘npx cypress run’ are used to run the tests either through the UI or command line.</p><p>● To ensure consistent testing, the setup is integrated with a CI/CD pipeline (e.g., GitLab CI/CD) to automatically trigger tests upon code changes.</p><p>○ Stages involve tags, test, pre and post scripts which need to get executed while building the pipeline</p><p>○ Cleaning Up the previous build plays a major role (chown)</p><p>○ Also ensure the build with different environment variables (stores) like graphdb, virtuoso, stardog individually</p><p>● Cypress generates detailed reports with screenshots, video recordings, and logs, which can be configured and stored for future reference.</p><p><strong>Current day dependencies:</strong></p><ol><li><strong>Compatibility and Integration:</strong> One of the primary challenges during implementation is ensuring compatibility and seamless integration between Cypress and enterprise knowledge graph platform. Both tools may have different versions, dependencies, or configurations that need to be aligned. To overcome this challenge:</li></ol><p>a. Research and documentation: Thoroughly study the documentation of modules (Data integration/data manager) to understand their compatibility requirements and dependencies.</p><p>b. Version control: Ensure that you are using the latest stable versions of Cypress, as they often address compatibility issues and offer improved integration capabilities.</p><p><strong>2. Test Data Management:</strong> Effective test data management is crucial for accurate and comprehensive testing. However, generating and managing test data for enterprise knowledge graph platform can be complex due to its data-centric nature.</p><p><strong>3. Test Environment Setup:</strong> Setting up the test environment can present challenges, especially when dealing with complex infrastructures or diverse deployment configurations. To address this:</p><p>a. Environment provisioning: Define a clear process for provisioning the required test environment, including the necessary servers, databases, and dependencies. Consider using infrastructure-as-code tools to automate environment setup.</p><p>b. Configuration management: Maintain a well-documented configuration management process to ensure consistency across different test environments.</p><p>c. Continuous Integration (CI) and Continuous Deployment (CD): Leverage CI/CD pipelines to streamline the process of deploying and testing enterprise knowledge graph platform &amp; RDF using Cypress. Automate the setup and tear-down of the test environment as part of the CI/CD workflow.</p><p><strong>4. Test Maintenance and Scalability:</strong> As Enterprise knowledge Graph Platform evolves and grows, maintaining and scaling the test suite can become challenging. It requires continuous effort to adapt the test scripts and accommodate new features or changes. To overcome this:</p><p>a. Test script modularization: Design the test scripts in a modular and reusable manner, separating common functionalities into reusable functions or libraries. This allows for easier maintenance and reduces duplication of effort.</p><p>b. Test coverage prioritisation: Prioritise the test coverage based on critical functionalities and areas prone to frequent changes. This helps focus testing efforts on the most impactful aspects on modules.</p><p>c. Regression testing strategy: Develop a well-defined regression testing strategy to ensure that existing functionalities are thoroughly tested whenever changes or enhancements are made. Implement automated regression testing using Cypress to save time and effort.</p><p><strong>Advantages &amp; Benefits for testers:</strong></p><p>Implementing Cypress on Enterprise knowledge Graph Platform offers several advantages:</p><p>● <strong>Automated Testing:</strong> Cypress simplifies the process of creating automated test cases, allowing organisations to perform comprehensive and repeatable tests. This significantly reduces the risk of human error and saves valuable time.</p><p>● <strong>Real-time Feedback:</strong> Cypress provides real-time feedback during test execution, allowing developers to identify and rectify issues promptly. The interactive nature of Cypress’s test runner enables quick debugging, making the testing process more efficient.</p><p>● <strong>Seamless Integration:</strong> Cypress seamlessly integrates with Enterprise knowledge Graph Platform, enabling developers to write tests that mimic real user interactions. This integration ensures that all functionalities of modules (data integration/data manager are thoroughly tested, delivering a reliable and robust data management solution.</p><p>● <strong>Enhanced Test Coverage:</strong> Cypress allows developers to create end-to-end tests that cover various scenarios, ensuring comprehensive test coverage. By simulating different user interactions, Vocabs, thesuarus, linking rules and workflows, potential issues and vulnerabilities can be identified early in the development cycle.</p><p><strong>Conclusion:</strong></p><p>The implementation of Cypress on Enterprise knowledge Graph Platform &amp; RDF brings significant advantages to data testing processes seamlessly, by proactively addressing challenges related to compatibility, test data management, test environment setup, and test maintenance, organisations can overcome obstacles and maximise the effectiveness of their implementation. With its robust features, easy setup, and seamless integration with CI/CD pipelines. By embracing these strategies, you can ensure a smooth and successful integration of Cypress, leading to optimised data testing and management practices</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85b38e61e60e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/implementing-cypress-on-enterprise-knowledge-graph-rdf-85b38e61e60e">Implementing Cypress on Enterprise knowledge graph / RDF</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NeoDash: A Powerful Tool for Neo4j Visualization and Analysis]]></title>
            <link>https://medium.com/aarth-software/neodash-a-powerful-tool-for-neo4j-visualization-and-analysis-f99f422e87e1?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/f99f422e87e1</guid>
            <category><![CDATA[neo4j-graph-database]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[neodash]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[neo4j]]></category>
            <dc:creator><![CDATA[Anshu]]></dc:creator>
            <pubDate>Wed, 14 Jun 2023 06:45:57 GMT</pubDate>
            <atom:updated>2023-06-14T06:45:57.121Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://neo4j.com/docs/">Neo4j</a> is a popular graph database management system that handles and stores highly connected data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A6MVQ-WdiLKP_6v8EQnIOQ.jpeg" /></figure><p>It provides a flexible and efficient way to represent complex relationships and dependencies between entities.</p><p>Unlike traditional relational databases, Neo4j organizes data in a graph structure consisting of nodes and relationships, enabling powerful querying and analysis capabilities.</p><p>Its graph-based nature makes Neo4j a valuable tool for applications such as social networks, recommendation systems, fraud detection, and network analysis.</p><h4><strong>Unleashing Insights: The Importance of Visualization and Analysis Tools for Neo4j</strong></h4><p>While Neo4j provides a robust backend for storing and querying graph data, it can be challenging to visualize and analyze the relationships and patterns within large and complex datasets.</p><p>This is where effective visualization and analysis tools come into play. Such tools help users gain insights, identify patterns, and make informed decisions based on the data stored in Neo4j.</p><p>They enable interactive exploration of the graph, highlighting connections, and providing visual representations that aid in understanding the underlying structure and dynamics of the data.</p><p>These tools bridge the gap between the raw data in Neo4j and actionable insights, making them essential for leveraging the full potential of graph databases.</p><h4><strong>NeoDash: Empowering Neo4j Visualization and Analysis</strong></h4><p><a href="https://neo4j.com/labs/neodash/">NeoDash</a> is a feature-rich and user-friendly tool designed explicitly for visualizing and analyzing data stored in Neo4j.</p><p>It aims to simplify the process of working with graph databases by providing an intuitive interface and comprehensive functionalities.</p><p>NeoDash offers a wide range of visualization options, advanced analysis features, and collaboration capabilities, empowering users to effectively explore and extract meaningful insights from their Neo4j datasets.</p><p>In this we will highlight the following key features of NeoDash:</p><ul><li><strong>Interactive Visualizations:</strong> NeoDash allows users to create various visual representations of their graph data, such as node-link diagrams, network graphs, and heat maps. The visualizations are interactive, enabling users to explore and navigate the graph, zoom in and out, and apply filters to focus on specific subsets of data.</li><li><strong>Advanced Querying:</strong> NeoDash provides an intuitive query builder interface that simplifies extracting specific data from Neo4j. Users can easily construct complex queries, apply filters, and retrieve graph subsets for analysis and visualization.</li><li><strong>Analysis Tools:</strong> NeoDash offers a set of built-in analysis tools for gaining deeper insights into graph data. These tools include centrality measures to identify essential nodes, community detection algorithms for uncovering clusters, and path-finding algorithms for discovering relationships and paths between nodes.</li><li><strong>Collaboration and Sharing:</strong> NeoDash enables users to collaborate with others by sharing visualizations, analysis results, and queries. It supports exporting visualizations in various formats, making presenting findings to stakeholders easy or incorporating them into reports or presentations.</li><li><strong>Performance and Scalability:</strong> NeoDash is designed to handle large-scale graph datasets efficiently. It leverages optimizations and caching mechanisms to ensure smooth performance even with complex and interconnected data structures.</li></ul><h4><strong>Getting Started with NeoDash: Installation and Setup Guide</strong></h4><p><strong>Step-by-step instructions for installing NeoDash:</strong></p><ul><li>Open Neo4j Desktop and click on the “Apps” button.</li><li>In the Apps section, click on the “Open” button to access the Graph Apps Gallery.</li><li>If you can’t find the Graph Apps Gallery in your Neo4j Desktop, you can download NeoDash by visiting this link: <a href="https://install.graphapp.io/">Neo4j Graph Apps Gallery</a><a href="https://install.graphapp.io/">.</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3mU_iBiUTjKZtl8wIFcZJQ.png" /></figure><ul><li>In the Graph Apps Gallery, locate NeoDash and click on the “Install” button.</li><li>Wait for the installation process to complete.</li><li>Once the installation is finished, you may be prompted to launch NeoDash immediately. If not, you can manually launch the application.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*19Ub9Iv8V2iuymY6" /></figure><h4><strong>Connecting and Importing Data into NeoDash: A Comprehensive Guide</strong></h4><p>To connect NeoDash to a Neo4j database, follow these steps:</p><ul><li>Start the DBMS you have created and click on the start button.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwlujY-_G9FHfn55F8b3Wg.png" /></figure><ul><li>Navigate to the “Apps” section and select NeoDash.</li><li>You Can Choose “Connect to Neo4j Desktop” or “New Dashboard” from the following options</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OaQbRfxzlwwrXd6u83e3HQ.png" /></figure><ul><li>Enter the necessary connection details, including the hostname or IP address, port number, username, and password for your Neo4j database.</li><li>Optionally, configure any additional connection settings such as SSL/TLS encryption or authentication mechanisms.</li><li>Click on the “Connect” or “Test Connection” button to establish a connection between NeoDash and the Neo4j database.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xrfVD9xlAPAe90RPqV-cCw.png" /></figure><ul><li>If the connection is successful, NeoDash will display a confirmation message indicating that it is connected to the Neo4j database.</li><li>Activate all the extensions available in NeoDash.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uHC7KNnswv9ysmmy" /></figure><ul><li>Select the three dots in the corner of the report. You can delete the report or continue in that report by selecting the dropdown button.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UUYJ5iSB_1bFCQTOkCdurA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hc-d8HOZ0NFT3MHCJdCbCw.png" /></figure><h4><strong>Unleashing the Power of Visualization: Exploring NeoDash’s Dynamic Graph Visualizations</strong></h4><p>To create and customize visualizations in NeoDash, follow these steps:</p><ul><li>Select the desired visualization type from the available options within NeoDash.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8cZk62omdIzvf702RYFiEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y9EFwmDfVjjwYeJW" /></figure><ul><li>Choose the nodes, relationships, or properties to include in the visualization.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5kfd3PYpTg4RMUbvo5B4w.png" /></figure><ul><li>Apply filters or queries to refine the data displayed in the visualization.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OdYh47SOUXYw6NneUJsIuw.png" /></figure><ul><li>Customize the visual appearance, such as node colors, sizes, or edge styles, to enhance clarity and emphasize important elements.</li><li>Utilize labels, tooltips, or legends to provide additional context and information about the graph elements.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0dplAMpmuc_t68R0GAB46w.png" /></figure><ul><li>Configure layout options to optimize the arrangement and spacing of nodes and relationships within the visualization.</li><li>Experiment with different settings and layouts to find the most suitable representation of your data.</li><li>Take advantage of the ability to create multiple reports on a single page and multiple pages within a single dashboard.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qm1YhLD4b7xfRInY" /></figure><p>NeoDash provides an intuitive interface and tools to create visually appealing and meaningful graph visualizations.</p><p>By leveraging the customization options, users can tailor the visualizations to their specific needs and highlight the key insights within the graph data.</p><p>NeoDash provides a range of collaborative features that facilitate sharing visualizations and analysis results with others.</p><p>These features enhance teamwork, enable effective communication, and promote knowledge sharing.</p><p>Happy Graph Visualization 😉.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f99f422e87e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/neodash-a-powerful-tool-for-neo4j-visualization-and-analysis-f99f422e87e1">NeoDash: A Powerful Tool for Neo4j Visualization and Analysis</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Comprehensive Guide to Alleviating Data Fabrication]]></title>
            <link>https://medium.com/aarth-software/a-comprehensive-guide-to-alleviating-data-fabrication-264e85a4a3a4?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/264e85a4a3a4</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[fraud]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Vaishnavi Magesh]]></dc:creator>
            <pubDate>Tue, 06 Jun 2023 06:15:03 GMT</pubDate>
            <atom:updated>2023-06-06T06:15:03.857Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PGjSFtzb064lnIu0VJZjrQ.jpeg" /></figure><p><strong>How Knowledge Graphs Help Alleviate Data Fabrication</strong></p><p><strong>What is Data Fabrication?</strong></p><p>Data fabrication is an intentional misrepresentation of research findings. It’s a growing concern in today’s digital age. With the increasing amount of data being generated and collected, it has become easier for individuals and organizations to manipulate data for their benefit.</p><p>Data fabrication in drug trials and clinical research is a gateway for more funding, gaining popularity among the masses, and establishing credibility in the industry.<br>In the business world, it’s helpful to market the company and its results if we exaggerate the numbers. After all, it’s common knowledge that numbers are essential to the success of the product, service, or technology because it ultimately gets more business.</p><p><strong>Why do researchers commit </strong><a href="https://www.ncbi.nlm.nih.gov/books/NBK475947/#:~:text=A%20range%20of%20possible%20reasons,larger%20pattern%20of%20social%20deviance.">fraud</a><strong>?</strong></p><ul><li>Pressure on researchers to publish academic papers to get tenure or funding.</li><li>Precious funding resources get exhausted<strong>.</strong></li><li>Insufficient empirical evidence.</li><li>No peer supervision, no set standards, and poor decision-making.</li><li>Bias, personal prejudice, and poor judgment.</li><li>Plagiarism</li></ul><p>This can have serious consequences, especially in fields such as healthcare and finance, where decisions based on inaccurate data can have life-changing consequences.</p><p>Take the example of <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3136032/">Andrew Wakefield</a>, a British activist and former physician who played a major part in the anti-vaccination propaganda in 1998, publishing a study in the Lancet, a weekly peer-reviewed general medical journal. He indicated a connection between autism and the measles-mumps-rubella vaccine. The study received widespread attention and lead to many patients refusing the vaccine leading to widespread outbreaks of the disease in Europe. When faced with an investigation in 2010, it was discovered that he and his colleagues had altered the facts about the children in their study. He was paid off by a lawyer who was planning to sue the manufacturer of the vaccine. He was found guilty by the British General Medical Council for fraud and misconduct.</p><p>Fortunately, knowledge graphs offer a solution to this problem. In a knowledge graph, information is stored in a way that makes it easy to see relationships and connections between different pieces of data.</p><p><strong>Detecting Inconsistencies and Anomalies and their use case in Medical Research and Drug Discovery</strong></p><p>When a medical professional falsifies information about a patient’s medical history, it can lead to discrepancies in the knowledge graph. The patient’s medical history is closely linked to other data points, such as current medications and previous diagnoses. Graphs can analyze patients, health conditions, medical records, and treatments as different entities and suggest treatments and improve decision making and optimize patient health.</p><p>Any attempt to alter this data would lead to discrepancies that can be detected immediately</p><p><strong>Motives for Data Fabrication in Clinical Research:</strong></p><ul><li><strong>Academic Recognition</strong>: Researchers may fabricate data to enhance their reputation, secure funding, publish in highly regarded journals, or advance their academic careers.</li><li><strong>Financial Interests</strong>: Pharmaceutical companies or individuals may manipulate data to support the efficacy or safety of a particular drug or treatment.</li><li><strong>Career Advancement</strong>: Data fabrication driven by personal ambitions, such as obtaining research funding, tenure, or career progression.</li></ul><p><strong>Consequences of Data Fabrication:</strong></p><ul><li><strong>Misleading Scientific Community</strong>: Fabricated data can mislead the scientific community, resulting in wasted resources, misguided research, and potentially harmful treatments.</li><li><strong>Jeopardizing Patient Safety</strong>: Reliance on falsified data may lead to the approval and use of drugs or treatments that are ineffective, unsafe, or have unforeseen side effects, endangering patient health.</li><li><strong>Damage to Scientific Integrity</strong>: Data fabrication undermines the credibility and trust in scientific research, making it difficult to replicate results and eroding public confidence.</li><li><strong>Legal and Professional Consequences</strong>: Researchers caught fabricating data may face severe penalties, such as loss of funding, retraction of publications, loss of credibility, and disciplinary actions.</li></ul><p><strong>Preventive Measures:</strong></p><ul><li><strong>Ethical Guidelines</strong>: Researchers should adhere to ethical guidelines and codes of conduct, such as those provided by regulatory bodies, research institutions, and professional organizations.</li><li><strong>Rigorous Review Process</strong>: Journal editors and peer reviewers should thoroughly evaluate submitted research papers, scrutinizing data and methodology to identify suspicious patterns or inconsistencies.</li><li><strong>Data Transparency and Reproducibility</strong>: Encourage open data practices, data sharing, and reproducibility of research findings to promote transparency and accountability.</li><li><strong>Education and Training</strong>: Promote ethics training and awareness among researchers, emphasizing the importance of integrity, responsible conduct of research, and the consequences of data fabrication.</li></ul><p><strong>Using Knowledge Graphs in alleviating data fabrication in clinical research, medical trials, and drug discovery.</strong></p><ul><li><strong>Data integrity and transparency</strong>: Knowledge graphs maintain data integrity and provide transparent records, discouraging data fabrication.</li><li><strong>Audit trails</strong>: Detailed audit trails in knowledge graphs create a reliable record of data changes, making fabrication challenging to conceal.</li><li><strong>Validation and consistency</strong>: Knowledge graphs validate data against rules, ensuring accuracy and reducing the likelihood of fabrication.</li><li><strong>Traceability and provenance</strong>: Knowledge graphs capture data lineage, origin, and dependencies, facilitating the detection of fabrication attempts.</li><li><strong>Collaborative verification</strong>: Multiple stakeholders can validate data within knowledge graphs, enhancing integrity through collective efforts.</li><li><strong>Cross-referencing and verification</strong>: Linking data from various sources helps identify inconsistencies and fabrication across datasets.</li><li><strong>Real-time monitoring</strong>: Continuous monitoring of data updates aids in detecting suspicious activities and preventing fabrication.</li><li><strong>Data governance and ethics</strong>: Integrating knowledge graphs with governance frameworks and ethical guidelines promote responsible data handling, mitigating the risk of fabrication.</li></ul><p><strong>Ensuring Data Accuracy and Integrity And its use case in the BFSI sector.</strong></p><p>A benefit of <a href="https://isb-institute-of-data-science.medium.com/knowledge-graph-for-financial-services-c9cb7c3fe2b9">knowledge graphs</a> is their ability to ensure data accuracy and integrity. By emphasizing the associations and linkages among data, knowledge graphs effectively prevent data manipulation without detection. This helps to ensure that data is accurate and trustworthy, which is especially important in fields such as healthcare and finance.</p><p>For example, in the field of finance, knowledge graphs can be used to detect fraudulent activity. By analyzing patterns and connections within the data, knowledge graphs can identify suspicious behavior that may indicate fraud. This helps ensure that financial data is accurate and trustworthy, essential for making informed decisions.</p><p><strong>Motives for Data Fabrication in BFSI :</strong></p><ul><li><strong>Financial Gain</strong>: Fabricated data can be used to manipulate financial reports, inflate assets, understate liabilities, or misrepresent profitability to deceive investors and stakeholders.</li><li><strong>Fraudulent Activities</strong>: Fabricated data can be employed to perpetrate fraud, such as identity theft, account takeover, or unauthorized fund transfers.</li><li><strong>Regulatory Evasion</strong>: Manipulated data can help evade regulatory requirements, such as reporting obligations, capital adequacy ratios, or compliance with anti-money laundering (AML) and Know Your Customer (KYC) regulations.</li></ul><p><strong>Consequences of Data Fabrication</strong>:</p><ul><li><strong>Financial Losses:</strong> Fabricated data can lead to incorrect financial decisions, investments, or assessments, resulting in substantial financial losses for individuals, organizations, or investors.</li><li><strong>Legal Penalties</strong>: Data fabrication is illegal and can lead to criminal charges, fines, lawsuits, and imprisonment for the individuals or entities involved.</li><li><strong>Reputational Damage</strong>: Instances of data fabrication can severely impact the reputation and credibility of financial institutions, leading to the loss of customers, investors, and business opportunities.</li><li><strong>Regulatory Action</strong>: Regulatory bodies can impose sanctions, license revocation, or heightened scrutiny on institutions found guilty of data fabrication.</li></ul><p><strong>Preventive Measures</strong></p><ul><li><strong>Strong Internal Controls: </strong>Implement robust internal controls, segregation of duties, and regular audits to detect and prevent data fabrication.</li><li><strong>Data Governance: </strong>Establish comprehensive data governance policies, including data quality checks, data validation, and encryption protocols.</li><li><strong>Employee Awareness and Training: </strong>Educate employees about the risks and consequences of data fabrication and provide training on ethics, compliance, and fraud detection.</li><li><strong>Regulatory Compliance:</strong> Ensure compliance with industry regulations and standards, such as Basel III, GDPR, PCI-DSS, and AML/KYC guidelines.</li><li><strong>Whistleblower Protection: </strong>Encourage a culture of transparency and provide mechanisms for employees and stakeholders to report suspicious activities without fear of retaliation.</li></ul><p><strong>Using Knowledge Graphs to Prevent Fraud in Banking and Finance Sector:</strong></p><ul><li><strong>Entity linkage and identity resolution</strong>: Linking data to detect and prevent identity theft and account manipulation.</li><li><strong>Fraud pattern detection</strong>: Identifying complex patterns of fraudulent activities.</li><li><strong>Real-time monitoring and alerts</strong>: Promptly detecting anomalies and generating timely alerts.</li><li><strong>Risk assessment and fraud predictions</strong>: Assessing risk and predicting potential fraud.</li><li><strong>Compliance and regulatory support</strong>: Ensuring adherence to regulations and identifying compliance gaps.</li><li><strong>Cross-institution collaboration</strong>: Collaborating to combat fraud schemes across multiple organizations.</li></ul><p><strong>Conclusion</strong></p><p>In conclusion, knowledge graphs offer a powerful tool for alleviating data fabrication. By storing data in a way that highlights relationships and connections, knowledge graphs make it difficult for individuals to manipulate data without being detected. This ensures that data is accurate and trustworthy, which is essential for making informed decisions in areas such as healthcare and finance. As the amount of data generated and collected grows, knowledge graphs are becoming an increasingly important tool for ensuring the accuracy and integrity of data.</p><p><strong>Citations</strong></p><ol><li>Dr. Shruti Mantri, Vishal Siram (2020).Knowledge Graph: Facilitates Fraud Analytics.Retrieved from <a href="https://isb-institute-of-data-science.medium.com/knowledge-graph-for-financial-services-c9cb7c3fe2b9">https://isb-institute-of-data-science.medium.com/knowledge-graph-for-financial-services-c9cb7c3fe2b9</a></li><li>Precision Health, <a href="https://www.youtube.com/watch?v=qmdvzMk_k3w">https://www.youtube.com/watch?v=qmdvzMk_k3w</a></li><li>Ashwaria Gupta, (2013).Fraud and misconduct in clinical research: A concern. Retrieved from <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3700330/">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3700330/</a></li><li>Dan Ariely (2012).Understanding the Causes. Retrieved from <a href="https://www.ncbi.nlm.nih.gov/books/NBK475947/#:~:text=A%20range%20of%20possible%20reasons,larger%20pattern%20of%20social%20deviance.">https://www.ncbi.nlm.nih.gov/books/NBK475947/#:~:text=A%20range%20of%20possible%20reasons,larger%20pattern%20of%20social%20deviance.</a></li><li>T. S. Sathyanarayana Rao and Chittaranjan Andrade,(2011).The MMR vaccine and autism: Sensation, refutation, retraction, and fraud. Retrieved from <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3136032/">https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3136032/</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=264e85a4a3a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/a-comprehensive-guide-to-alleviating-data-fabrication-264e85a4a3a4">A Comprehensive Guide to Alleviating Data Fabrication</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Ingestion With Neo4j: Leveraging CSV and JSON]]></title>
            <link>https://medium.com/aarth-software/data-ingestion-with-neo4j-leveraging-csv-and-json-8d25b9705b3?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/8d25b9705b3</guid>
            <category><![CDATA[neo4j-graph-database]]></category>
            <category><![CDATA[neo4j]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[data-ingestion]]></category>
            <category><![CDATA[property-graph-schema]]></category>
            <dc:creator><![CDATA[Mouna Challa]]></dc:creator>
            <pubDate>Tue, 23 May 2023 09:37:08 GMT</pubDate>
            <atom:updated>2023-05-23T09:40:15.379Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2lgV59ubuZI9OcqE7rrPXw.jpeg" /></figure><p>In today’s data-driven world, efficient data ingestion is crucial for organizations to unlock valuable insights from their datasets.</p><p>Neo4j is a highly popular graph database that allows for efficient management and analysis of connected data.</p><p>Unlike traditional relational databases, Neo4j’s data model is based on nodes and relationships, providing a flexible and intuitive way to represent complex relationships and hierarchies.</p><p>Data ingestion is a critical step in utilizing Neo4j’s capabilities effectively. It involves importing data from various sources, such as CSV or JSON, into the graph database.</p><p>By ingesting data into Neo4j, organizations can unlock valuable insights, perform advanced graph-based queries, and leverage powerful graph algorithms.</p><p>This blog post will delve into the process of data ingestion with Neo4j, focusing on the utilization of CSV and JSON formats.</p><p>In this model, data is represented as nodes, which represent entities, and relationships, which depict connections between nodes.</p><p>Nodes can have properties that provide additional information, while relationships can have properties to describe their nature.</p><p>This model enables the representation of complex relationships and hierarchies in a more intuitive and flexible manner.</p><p>By comprehending the graph data model, users can design schemas that accurately reflect their domain, ensuring efficient data ingestion and powerful querying capabilities in Neo4j.</p><h3>Dataset: E-commerce Fraud Dataset</h3><p>For this data ingestion example, we will be using the E-commerce Fraud Dataset, which can be obtained from the Kaggle link:<a href="https://www.kaggle.com/datasets/aryanrastogi7767/ecommerce-fraud-data"> E-commerce Fraud Dataset</a>.</p><p>This dataset contains information related to e-commerce transactions and includes attributes such as user IDs, transaction amounts, product details, and fraud indicators.</p><p>By ingesting this dataset into Neo4j, we can analyze the relationships between users, transactions, and products, and gain insights into fraudulent activities in the e-commerce domain.</p><h3>Graph Model With Arrow.App</h3><p>Using Arrow.app, I designed a graph model prior to ingesting data into Neo4j Browser.</p><p>Arrow.app provided an intuitive and efficient interface for drawing nodes, relationships, and properties, aligning with the Neo4j property graph model.</p><p>The tool allowed me to customize the styling, including sizes, layouts, and colors, to create a visually appealing representation of the graph.</p><p>After designing the model, I exported it as an Cypher Query and used it for documentation and presentations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*anbU8QcYH61z73mrZha1Mg.png" /></figure><p>The ability to generate corresponding Cypher code from the diagram further enhanced the seamless integration with the Neo4j ecosystem, facilitating the data ingestion process in Neo4j Browser.</p><pre>CREATE (:Customer {customer_email: &quot;&quot;, customer_phone: &quot;&quot;, customer_device: &quot;&quot;, customerip_address: &quot;&quot;, customerbilling_address: &quot;&quot;})-[:MADE_TRANSACTION]-&gt;(:Order {order_id: &quot;&quot;, paymentmethod_id: &quot;&quot;, paymentmethod_registrationfailure: &quot;&quot;, paymentmethod_type: &quot;&quot;, paymentmethod_provider: &quot;&quot;, transaction_amount: &quot;&quot;, transaction_failed: &quot;&quot;, order_state: &quot;&quot;, transaction_id: &quot;&quot;, customer_email: &quot;&quot;})</pre><h3>Ingesting CSV Data into Neo4j</h3><h4>a. Preparing the CSV Data:</h4><p>Before ingesting CSV data into Neo4j, it is important to ensure that the data is properly prepared. Follow these steps to prepare the CSV data:</p><ol><li>Ensure the data is structured: Make sure the CSV file has a well-defined structure, with each column representing a specific attribute or property.</li><li>Clean and validate the data: Clean the data by removing any unnecessary or inconsistent values, duplicates, or errors. Validate the data to ensure it conforms to the expected format and quality.</li><li>Handle missing values: Decide how to handle missing values in the CSV. You can either leave them as null values or choose a specific representation that suits your data model.</li><li>Normalize or denormalize the data: Depending on the complexity of your data and the desired data model in Neo4j, you may need to normalize or denormalize the CSV data to establish relationships between entities.</li></ol><h4>b. Defining a Schema in Neo4j:</h4><p>To effectively ingest CSV data into Neo4j, it is essential to define a schema that represents the structure of the data. Here’s how you can define a schema in Neo4j:</p><ol><li>Identify the node labels: Analyze the CSV data and identify the main entities or concepts. Each entity will typically correspond to a node label in Neo4j.</li><li>Determine the node properties: For each node label, identify the relevant attributes or properties that describe the entity. These properties will become the node properties in Neo4j.</li><li>Establish relationships: Identify the relationships between nodes based on the CSV data. Determine the relationship types and any additional properties associated with the relationships.</li><li>Create indexes and constraints: Define indexes on the properties that are frequently used for querying to optimize performance. Apply constraints to ensure data integrity and consistency.</li><li>By defining a clear schema in Neo4j, you provide a structure to the ingested CSV data, enabling efficient querying and analysis of the graph database.</li></ol><h4>c. Importing CSV Data into Neo4j</h4><p><strong>Creating Constraints:</strong></p><pre>CREATE CONSTRAINT FOR (c:Customer) REQUIRE (c.customer_email,c.customer_device) IS UNIQUE;<br>CREATE CONSTRAINT FOR (o:Order) REQUIRE (o.order_id, o.transaction_id) IS UNIQUE;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*nYXmapgTKxTz_RTZkt_wAQ.jpeg" /></figure><p><strong>Note: </strong>Constraints in Neo4j ensure data integrity, consistency, and performance by enforcing rules, preventing duplicates, and maintaining valid relationships within the graph database.</p><p><strong>Ingesting Data Into Customers Node:</strong></p><pre>LOAD CSV WITH HEADERS FROM &#39;file:///Customer_DF.csv&#39; AS row<br>WITH row<br>MERGE(c:Customer{customer_email:row.customerEmail,customer_device: row.customerDevice})<br>SET c.customer_phone= row.customerPhone, c.customerip_address= row.customerIPAddress, c.customerbilling_address= row.customerBillingAddress<br>RETURN row</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*1_49f2Z2BLpExEF3UHeIwg.jpeg" /></figure><p><strong>Ingesting Data Into Orders Node:</strong></p><pre>LOAD CSV WITH HEADERS FROM &#39;file:///cust_transaction_details.csv&#39; AS row WITH row<br>MERGE(o:Order{order_id:row.orderId, transaction_id: row.transactionId})<br>SET o.payment_methodid= row.paymentMethodId, o.paymentmethodregistration_failure= CASE row.paymentMethodRegistrationFailure WHEN &#39;0&#39; THEN &#39;FALSE&#39; WHEN &#39;1&#39; THEN &#39;TRUE&#39; END, o.payment_methodtype= row.paymentMethodType, o.paymentmethod_provider= row.payment_methodprovider, o.transaction_amount= toInteger(row.transactionAmount), o.transaction_failed= CASE row.transactionFailed WHEN &#39;0&#39; THEN &#39;FALSE&#39; WHEN &#39;1&#39; THEN &#39;TRUE&#39; END, o.order_state= row.orderState<br>RETURN row;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*kDHpxkJWP8tlJ0DrqigC0w.png" /></figure><p><strong>Ingesting Data to Create Relationships Between Nodes:</strong></p><pre>LOAD CSV WITH HEADERS FROM &#39;file:///cust_transaction_details.csv&#39; AS row<br>WITH row<br>MATCH(c:Customer{customer_email:row.customerEmail})<br>MATCH(o:Order{order_id:row.orderId, transaction_id: row.transactionId})<br>MERGE (c)-[r:MADE_TRANSACTION]-&gt;(o)<br>RETURN row;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*gJ9Q56wLh-fnoRn8fDOx5w.png" /></figure><p>You can check all the nodes and relationships (with ingested data), when you click on a Database Icon which is on the left side of the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/272/1*iBQTd-iKuKzxDSFSIWEKIg.png" /></figure><p><strong>For Graph Visualization:</strong></p><pre>CALL db.schema.visualization()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*oJSlugEilop3o7lbmRkQiA.png" /></figure><h3>Ingesting JSON Data into Neo4j</h3><h4>a. Understanding JSON Data Structure:</h4><p>Before ingesting JSON data into Neo4j, it’s important to understand the structure of the JSON data. JSON data consists of key-value pairs, arrays, and nested objects.</p><p><strong>Key aspects to understand in JSON data structure are:</strong></p><ul><li><strong>Objects:</strong> JSON objects encapsulate data using key-value pairs, where keys are strings and values can be strings, numbers, arrays, or nested objects.</li><li><strong>Arrays:</strong> JSON arrays contain an ordered list of values, which can be strings, numbers, objects, or arrays themselves.</li><li><strong>Nesting:</strong> JSON data often involves nesting, where objects or arrays are nested within one another to represent complex relationships.</li></ul><h4>b. Transforming JSON Data to Graph Model:</h4><p>To transform JSON data into a graph model for ingestion into Neo4j, follow these steps:</p><ol><li><strong>Analyze the JSON data:</strong> Understand the relationships and hierarchies present in the JSON data. Identify the main entities, attributes, and their relationships to define the graph model.</li><li><strong>Map JSON elements to nodes:</strong> Each distinct entity or concept in the JSON data should be mapped to a node in the graph model. Identify the key attributes of each entity to become the node properties.</li><li><strong>Establish relationships:</strong> Identify the relationships between nodes based on the JSON data structure. Determine the relationship types and any additional properties associated with the relationships.</li><li><strong>Handle nested structures:</strong> If the JSON data contains nested objects or arrays, determine how to represent them in the graph model. Consider creating additional nodes or connecting existing nodes through relationships to capture the nested relationships.</li><li><strong>Transform JSON attributes to properties:</strong> For each node, map the relevant attributes from the JSON data to node properties in Neo4j. This step involves extracting the corresponding values and ensuring they are correctly formatted for the desired data types.</li></ol><p>By transforming JSON data into a graph model that accurately represents the relationships and entities, you can effectively ingest the data into Neo4j and leverage its powerful graph database capabilities.</p><h4>c. Importing CSV Data into JSON Using Pycharm</h4><p><strong>Step 1: Converting the file CSV to JSON</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*7Pf15s7EGoiLUsWpBKqcww.png" /></figure><p><strong>Step 2: Now you can download the file</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/705/1*bdi3bTr4V6x-RD2IGDnMrw.png" /></figure><p><strong>Step 3: Using Pycharm to Load JSON With Python Code</strong></p><p><strong>Note: </strong>Make sure that your particular neo4j instance should be active to load the data.</p><ul><li>To run the code go to terminal</li><li>Pip install neo4j</li><li>Pip install fastapi</li><li>Pip install dotenv</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*JctiFCOqArvRniTUNC3l4A.png" /></figure><p>This code defines a Cypher query that creates a new Customer node in the Neo4j database for each customer object in the request.</p><p>The UNWIND statement is used to iterate over the request parameter and create a new node for each customer.</p><p>The SET statement is used to set the properties of the new Customer node to the values of the corresponding customer object.</p><p>Finally, the session.run method is used to execute the Cypher query, passing the request parameter as a parameter to the query.</p><pre>@app.post(&quot;/Customer/&quot;)<br>async def create_customer(request: List[Dict[str, Any]]):<br>    load_dotenv()<br>    uri = os.getenv(&quot;uri&quot;)<br>    user = os.getenv(&quot;user&quot;)<br>    pwd = os.getenv(&quot;pwd&quot;)<br>    driver = GraphDatabase.driver(uri=uri, auth=(user, pwd))<br>    session = driver.session()<br>    print(request)<br>    q = &quot;&quot;&quot;<br>    UNWIND $customers as row<br>    create (a:Customer)<br>    SET a += row;<br>    &quot;&quot;&quot;<br>    session.run(q, customers=request)<br>    print(q)<br> return {&quot;status&quot;: &quot;ok&quot;}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*TieW39qrq4mK4bg8WZMTGg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*Lb0PQbhXfBkJDkmrogWcXw.png" /></figure><p>This code defines a Cypher query that creates a new Order node in the Neo4j database for each order object in the request.</p><p>The UNWIND statement is used to iterate over the request parameter and create a new node for each order.</p><p>The SET statement is used to set the properties of the new Order node to the values of the corresponding order object.</p><p>Finally, the session.run method is used to execute the Cypher query, passing the request parameter as a parameter to the query.</p><pre>@app.post(&quot;/Order/&quot;)<br>async def create_order(request: List[Dict[str, Any]]):<br>    load_dotenv()<br>    uri = os.getenv(&quot;uri&quot;)<br>    user = os.getenv(&quot;user&quot;)<br>    pwd = os.getenv(&quot;pwd&quot;)<br>    driver = GraphDatabase.driver(uri=uri, auth=(user, pwd))<br>    session = driver.session()<br>    print(request)<br>    q = &quot;&quot;&quot;<br>    UNWIND $order as row<br>    create (a:Order)<br>    SET a += row;<br>    &quot;&quot;&quot;<br>    session.run(q, order=request)<br>    print(q)<br>    return {&quot;status&quot;: &quot;ok&quot;}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*0PcB51mkkqnS8IJOSHNvYQ.png" /></figure><p>To create a relationship between the customer node and the order node.</p><pre>@app.post(&quot;/Transaction/&quot;)<br>async def create_transaction(request: List[Dict[str, Any]]):<br>    load_dotenv()<br>    uri = os.getenv(&quot;uri&quot;)<br>    user = os.getenv(&quot;user&quot;)<br>    pwd = os.getenv(&quot;pwd&quot;)<br>    driver = GraphDatabase.driver(uri=uri, auth=(user, pwd))<br>    session = driver.session()<br>    for row in request:<br>        q = &quot;&quot;&quot;<br>            MATCH (c:Customer{customerEmail: $customerEmail})<br>            MATCH (o:Order{orderId: $orderId, transactionId: $transactionId})<br>            MERGE (c)-[r:MADE_TRANSACTION]-&gt;(o)<br>            RETURN c,o,r<br>            &quot;&quot;&quot;<br><br>        session.run(q, customerEmail=row[&#39;customerEmail&#39;], orderId=row[&#39;orderId&#39;], transactionId=row[&#39;transactionId&#39;])<br><br>    return {&quot;status&quot;: &quot;ok&quot;}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*LwXGmfaSplKyBEEZ85xx8w.png" /></figure><p>In Pycharm, to check the versions of packages</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*OwC75JMDKq744mANiy3shQ.png" /></figure><p>Credentials for connecting to a neo4j database instance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*DCZEVNLcy2HRj3RxvUifzQ.png" /></figure><p>To set params in Pycharm first we will set them in the Neo4j desktop</p><pre>:params {customerEmail: &#39;josephhoward@yahoo.com&#39;, customerPhone: &#39;400-108-5415&#39;, customerDevice: &#39;yyeiaxpltf82440jnb3v&#39;, customerIPAddress: &#39;8.129.104.40&#39;, customerBillingAddress: &#39;5493 Jones Islands\nBrownside, CA 51896&#39;, No_Transactions: 2, No_Orders: 2, No_Payments: 1}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*PpvxBdB6L0DFZrBulZrVOQ.png" /></figure><p><strong>Step 4: Powershell to run the JSON code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/751/1*9Ji1ziKUHBeGTnbn9d9bLg.png" /></figure><p>Powershell commands:</p><ol><li>PS C:\Users\rswat&gt; cd ‘.\PycharmProjects\Ecommerce Fraud Data\’</li></ol><p>2. poetry shell</p><p>3. poetry update</p><p>4. uvicorn main:app — reload — host 0.0.0.0 — port 8080</p><p>5. localhost:8080/docs</p><p><strong>Step 5: FAST API for JSON</strong></p><p>Paste this link localhost:8080/docs in your browser to get the below page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*Ils05YDqJmCkfNfDH6uMzA.png" /></figure><p><strong>Step 6: Post the data for Customer Details</strong></p><ul><li>The JSON file which we downloaded should be posted to the customer in FastApi.</li><li>By using the FastaAPI the data is directly loaded to the Neo4j desktop.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*94w3v2N-p5KKLrCDzdvyXw.png" /></figure><p>To post the order details click on the order try it out and paste it in the blank box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*2Ui0YVKZe9SHQh3wx6JVmw.png" /></figure><p>To load the relationship in FastAPI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/697/1*WJWg6MrXDIekaU94utFyGA.png" /></figure><p><strong>Step 7: Now go to Neo4j Desktop and Open the Active Graph Database</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*SajFlY4zKdRw0xa46luzpQ.png" /></figure><p><strong>Step 8: Visualisation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*rqsVbuAzvT-N-tm6tMMtCw.png" /></figure><h4>d. Importing JSON Using APOC</h4><p>To use <a href="https://neo4j.com/labs/apoc/">APOC queries</a> to import JSON, I have used Neo4j Desktop Version: . Because versions above 5 aren’t supporting it at times.</p><p>Once you create a Local DBMS in the Project on Neo4j, click on setting and then add the following and then click on Apply</p><pre>apoc.import.file.enabled=true<br>apoc.import.file.use_neo4j_config=true<br>server.config.strict_validation.enabled=true</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8hHZTD9wB_bN0XYJj6nSQ.png" /></figure><p>Next, Activate the APOC Plugin to that same Local DBMS</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/543/1*HyZV5UWm8iH7_-DXiqQRQw.png" /></figure><p><strong>Now Ingesting JSON Data into Customer Node with APOC</strong></p><pre>CALL apoc.load.json(&#39;file://Customer_DF.json&#39;)<br>YIELD value<br>WITH value<br>MERGE(c:Customer{customer_email:value.customerEmail,customer_device:value.customerDevice})<br>SET c.customer_phone= value.customerPhone, c.customerip_address= value.customerIPAddress, c.customerbilling_address= value.customerBillingAddress<br>RETURN c</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nAWpdMdHtW0n-M1uocTCow.png" /></figure><p><strong>Now Ingesting JSON Data into Order Node with APOC</strong></p><pre>CALL apoc.load.json(&#39;file://cust_transaction_details.json&#39;)<br>YIELD value<br>MERGE (o:Order {order_id: value.orderId, transaction_id: value.transactionId})<br>SET o.payment_methodid = value.paymentMethodId,<br>    o.paymentmethodregistration_failure = CASE value.paymentMethodRegistrationFailure WHEN &#39;0&#39; THEN FALSE WHEN &#39;1&#39; THEN TRUE END,<br>    o.payment_methodtype = value.paymentMethodType,<br>    o.paymentmethod_provider = value.payment_methodprovider,<br>    o.transaction_amount = toInteger(value.transactionAmount),<br>    o.transaction_failed = CASE value.transactionFailed WHEN &#39;0&#39; THEN FALSE WHEN &#39;1&#39; THEN TRUE END,<br>    o.order_state = value.orderState<br>RETURN o</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YY-daBTFq7wcA57lvbYobg.png" /></figure><p><strong>Now Ingesting JSON Data To Create Relationship Between Customer and Order Nodes with APOC</strong></p><pre>CALL apoc.load.json(&#39;file://cust_transaction_details.json&#39;)<br>YIELD value<br>WITH value<br>MATCH(c:Customer{customer_email:value.customerEmail})<br>MATCH(o:Order{order_id:value.orderId, transaction_id: value.transactionId})<br>MERGE (c)-[r:MADE_TRANSACTION]-&gt;(o)<br>RETURN c,o</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cGMkK7lMaU_Bip39kPEC9Q.png" /></figure><p><strong>Graph Visualization for JSON Data Loaded With APOC</strong></p><pre>CALL apoc.meta.graph()</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*qgbG2BY5sH6nEcyij6sKMg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d25b9705b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/data-ingestion-with-neo4j-leveraging-csv-and-json-8d25b9705b3">Data Ingestion With Neo4j: Leveraging CSV and JSON</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Empower Data Warehouse and Data Lakes using Knowledge Graphs]]></title>
            <link>https://medium.com/aarth-software/empower-data-warehouse-and-data-lakes-using-knowledge-graphs-b13851def90e?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/b13851def90e</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[graph-database]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Vaishnavi Magesh]]></dc:creator>
            <pubDate>Tue, 16 May 2023 09:03:23 GMT</pubDate>
            <atom:updated>2023-05-16T09:03:23.393Z</atom:updated>
            <content:encoded><![CDATA[<h3>Empower Data Warehouse and Data Lakes Using Knowledge Graphs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aR5wgDpn3UnIFKIJOpnZNw.jpeg" /></figure><p>Hal Varian, Chief Economist at Google,<a href="https://www.forbes.com/sites/brentdykes/2016/03/31/data-storytelling-the-essential-data-science-skill-everyone-needs/?sh=6f1293db52ad"> proclaims</a>, “The ability to take data — to be able to understand it, process it, extract value from it, visualize it, and communicate it — is going to be a hugely important skill in the next few decades.”</p><p>Data warehouses and data lakes are repositories or cloud storage solutions where different types of data are stored.</p><h3>Data Warehouse</h3><p>Data warehouses store highly structured historical data that can be processed for a defined purpose.</p><p>A<a href="https://aws.amazon.com/data-warehouse/"> data warehouse</a> stores data in a structured format in tiers, also called <strong>data marts, </strong>because the data is stored in a shelf-like structure. It’s a central repository of pre-processed data for analytics and business intelligence. Data warehouses use data from transactional systems and relational databases, and frequently accessed data is stored in fast storage spaces such as SSD(Solid State Drive) drives.</p><p><strong>Benefits of Data Warehousing</strong></p><ul><li>There is little or no data prep required, which makes it significantly easier for analysts and business users to access and analyze this data.</li><li>Since accurate, comprehensive data is more readily available, organizations can convert information into insight more quickly.</li><li>Data that has been unified and harmonized provides a single source of reality, fostering confidence in data insights and decision-making across business divisions.</li></ul><p>A data warehouse is also not free from its own constraints, traditional data warehouses have the disadvantage of being primarily built for structured data storage and retrieval, making it difficult to properly handle unstructured or semi-structured data. This constraint can make it difficult to uncover links, insights, and trends across multiple data sources.</p><p>Knowledge graphs allow for flexible and dynamic representation of data, making them suitable for capturing both structured and unstructured data. It can help organize data in a flexible and intuitive way and provide tools for exploration, querying, and visualization, a knowledge graph can help analysts to uncover insights and patterns in the data that would be difficult to identify with traditional database methods.</p><p><strong>Use-case of how Knowledge Graphs can solve Data Warehousing Issues with a BFSI industry example</strong></p><p>A knowledge graph can be utilized in the BFSI business to navigate and solve difficult data warehousing use cases. A bank, for example, can utilize a knowledge graph to connect various data points relating to customer transactions, customer profiles, credit history, and other topics. They can then find patterns and insights that were previously invisible.</p><p>Here are some specific applications of a knowledge graph in the BFSI industry:</p><p><strong>Fraud detection</strong>: A knowledge graph can be used to connect multiple data points connected to consumer transactions, such as location, time of day, and transaction amount, to detect fraud. This allows the bank to detect odd patterns of behavior that may indicate fraud.</p><p><strong>Risk management</strong>: A knowledge graph can be used to connect many data points concerning a customer’s credit history, payment behavior, and other risk concerns. This allows the bank to identify consumers who are at high risk of missing loan or credit card payments.</p><p><strong>Consumer segmentation</strong>: A knowledge graph can be used to connect multiple data points relating to consumer profiles, such as age, income, level of education, and transaction behavior. As a result, the bank may identify various consumer segments and develop customized marketing efforts.</p><p><strong>Regulatory compliance</strong>: A knowledge graph can be used to connect various data points related to regulatory compliance, including KYC (Know Your Customer) requirements, anti-money laundering rules, and other regulations. By doing so, the bank can verify that all regulatory obligations are met.</p><p>Overall, a knowledge graph can assist the BFSI business in navigating and solving complicated data warehousing use cases. The industry can obtain insights and make better-informed decisions by connecting diverse data points and building linkages between them.</p><h3>Data Lakes</h3><p>Data lakes hold unstructured or raw data with low-cost storage and use data from IoT devices, websites, mobile devices, social media, etc. A data lake is a pool of structured and unstructured data that can be used to create pipelines for data analytics to find insights and make key business decisions.</p><p><strong>Benefits of Data Lakes</strong></p><ul><li>Massive amounts of organized and random information, such as ERP transactions and call records, can be stored economically.</li><li>By maintaining data in its raw state, it becomes ready for use much faster.</li><li>A greater range of data can be analyzed in novel ways to reveal previously unknown and unexpected insights.</li></ul><p>Companies seeking to utilize their customers’ data collect massive amounts of data regarding their buyer behavior, demographics, preferences, and online activity, creating vast data lakes and enabling data hoarding. We can avoid a badly organized data lake by using a knowledge graph to create structure within the lake and facilitate analysis.</p><p>Let’s say our problem is like finding a needle in a haystack of information. How do we navigate the depth of information that is available to us?</p><p>For this, a knowledge graph helps in linking data from disparate sources, finding compatible components, and capturing<a href="https://eccenca.com/success-story/product-data-management-system"> expert knowledge</a>.</p><p><strong>Use-case of how Knowledge Graphs can solve issues with Data Lakes with a Pharma Industry example.</strong></p><p>Let’s discuss the solution in detail with a<a href="https://www.ontotext.com/blog/knowledge-graphs-in-the-life-sciences/"> drug discovery</a> use case, wherein a data-driven approach to R&amp;D can improve drug discovery success rates as well as manage clinical trial safety.</p><p>Knowledge graphs can be used in <strong>drug development</strong> to combine and analyze vast volumes of data from multiple sources, such as genomics, proteomics, metabolomics, and clinical trials. Researchers can quickly visualize and investigate the relationships between different things, like genes, proteins, pathways, and diseases, by organizing this data in a graph structure.</p><p><strong>Drug repurposing</strong> is one application of knowledge graphs in drug discovery. Researchers can identify existing treatments that may have the potential to cure a new disease or condition by analyzing the relationships between different entities in the graph. For example, if a specific protein is known to play a role in both cancer and Alzheimer’s disease, a knowledge graph can assist in identifying medications that target that protein and have previously been licensed for usage.</p><p>Another use case is <strong>biomarker discovery</strong>. By analyzing the relationships between different entities in the graph, researchers can identify potential biomarkers that may be associated with a particular disease or condition. For example, if a particular gene is known to be involved in a disease, a knowledge graph can help identify other genes that are closely related and may also be involved, which could serve as potential biomarkers.</p><h3>Key factors</h3><p>There are <strong>four key </strong>factors that knowledge graphs help with in empowering data warehouses and data lakes:</p><p><strong>Data integration</strong>: Knowledge graphs are useful in integrating data from various sources, even if the forms or structures differ. A knowledge graph can provide a common ontology that allows the mapping and integration of disparate data by building a semantic layer on top of the stored data.</p><p><strong>Data discovery</strong>: By offering a unified perspective of the data landscape, knowledge graphs can assist users in discovering relevant data and insights. Using the knowledge graph as a guide, users can search for specific data sets or explore relationships between multiple data sets.</p><p><strong>Data enrichment</strong>: Knowledge graphs can enrich data in a data warehouse or data lake by providing more context and metadata. For example, the knowledge graph can include information on origin, quality, and so forth to enhance data reliability.</p><p><strong>Machine learning</strong>: By providing a structured representation of the data, knowledge graphs can be used to train machine learning models. The knowledge graph can be used by machine learning models to learn from past experiences and predict future events.</p><p>Overall, knowledge graphs have the potential to be an extremely useful tool for organizing and analyzing data in data warehouses and data lakes. Knowledge graphs can help users extract additional value and insights from their data by adding a semantic layer to the stored data. This disruptive technology is surely the next big thing to aid you in becoming your own data warrior.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b13851def90e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/empower-data-warehouse-and-data-lakes-using-knowledge-graphs-b13851def90e">Empower Data Warehouse and Data Lakes using Knowledge Graphs</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real-time Recommendations using Knowledge graphs]]></title>
            <link>https://medium.com/aarth-software/real-time-recommendations-using-knowledge-graphs-63ce5e83aedb?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/63ce5e83aedb</guid>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[graph-data-science]]></category>
            <category><![CDATA[recommendation-platform]]></category>
            <dc:creator><![CDATA[Vikas Virupaksh]]></dc:creator>
            <pubDate>Tue, 09 May 2023 06:57:45 GMT</pubDate>
            <atom:updated>2023-05-09T06:57:45.149Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GPGVQvHsJWhj0ec9uqdQfA.jpeg" /></figure><h3>Recommendations using Knowledge graphs</h3><p>-This is an introduction on how knowledge graph helps to power more accurate RECOMMENDATIONS in real-time.</p><h3><strong>Brief Intro:</strong></h3><p>Knowledge graphs (KGs) organize data from multiple sources, capture information about entities of interest in each domain or task (like people, places or events), and forge connections between them. A knowledge graph formally represents semantics by describing entities and their relationships. Knowledge graphs may make use of <a href="https://en.wikipedia.org/wiki/Ontology_(information_science)">ontologies</a> as a schema layer. Doing this allows <a href="https://en.wikipedia.org/wiki/Inference">logical inference</a> for retrieving <a href="https://en.wikipedia.org/wiki/Implicit_knowledge">implicit knowledge</a> rather than only allowing queries requesting explicit knowledge.</p><p>KG interest group of folks within the organization who can facilitate research &amp; innovation within critical areas of data science &amp; AI. In data science and AI, knowledge graphs are commonly used to:</p><p>a)Facilitate access to and <strong>integration of data sources</strong></p><p>b)Add context and depth to other<strong>, more data-driven AI techniques </strong>such as machine learning;</p><p>c)Serve as bridges between humans and systems, such as generating human-readable explanations, or, on a bigger scale, enabling intelligent systems for scientists and engineers.</p><p>Knowledge representation formalisms; natural language processing; machine learning; methodologies to construct, learn and manage ontologies and knowledge bases; de facto standard ontologies and vocabularies; scalable reasoning, linked data etc..</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*2SbS4rSJDQbwDSduUpZ4dw.png" /><figcaption>Figure 1- Example of KG representation in graph</figcaption></figure><h3><strong>Knowledge Graphs &amp; Semantics:</strong></h3><p>With the seminal approaches to “semantic computing”, the researchers represent the knowledge using graphs consisting of nodes and edges. Such a representation mechanism has many advantages both in organizing and retrieving knowledge. The entities and concepts are represented as nodes and the relationships connecting these nodes are denoted by edges. For example, consider the sentence “A recommendation system is a subclass of information filtering system that seeks to predict the rating or preference”. In this case, entities such as “recommendation system”, “information filtering system”, “rating”, “preference” will be represented as nodes and possible relationships such as “subclass of”, “predict” will be represented as the edges connecting these entities. The term “knowledge graph” was first introduced by Google in the year 2012 when they started to introduce the notion of semantics into their search algorithms. But now the term is widely used by other knowledgebase providers , consider any knowledge base as a knowledge graph if it exhibits</p><p>1) represents entities and their relationships in nodes and edges</p><p>(2) the classes and/or concepts and their relationships in a schema or ontology</p><p>(3) has wide coverage in various domains</p><p>(4) potentially link entities with other knowledge bases or graphs</p><h3><strong>Knowledge graphs in recommendation system:</strong></h3><p>Recommendation systems use machine learning algorithms to analyze data and provide personalized recommendations to users. By integrating knowledge graphs into these systems, we can provide more accurate and relevant recommendations based on the relationships between different items. In a recommendation system, we can use a knowledge graph to represent the relationships between items and users, as well as the relationships between different items.</p><p>For example, let’s say we have an e-commerce website that sells books. We can use a knowledge graph to represent the relationships between different books based on factors such as genre, author, and subject matter. We can also represent the relationships between users based on their browsing and purchasing history. Using this knowledge graph, we can then use machine learning algorithms to provide personalized recommendations to users. For example, if a user has recently purchased a book on a particular topic, we can use the knowledge graph to recommend other books that are related to that topic.</p><p>By integrating knowledge graphs into recommendation systems, we can provide more accurate and relevant recommendations to users. This can help to improve user engagement and satisfaction, which can ultimately lead to increased sales and revenue for businesses.</p><h3><strong>How Knowledge graphs works in Recommendation Systems:</strong></h3><p>knowledge graphs can improve recommendation systems by capturing the complex relationships between different items and users. By using a knowledge graph, recommendation systems can provide more accurate and relevant recommendations to users, leading to higher engagement and satisfaction.</p><ol><li>Data Collection: The first step is to collect data about users and items. This data can include user profiles, item attributes, user-item interactions (such as views, purchases, and ratings), and any other relevant data.</li><li>Graph Construction: Once the data is collected, a knowledge graph can be constructed that represents the relationships between different items and users. Each item and user is represented as a node in the graph, and the relationships between them are represented as edges.</li><li>Graph Analysis: Once the graph is constructed, machine learning algorithms can be used to analyze the graph and make recommendations. These algorithms can use a variety of techniques, such as collaborative filtering, content-based filtering, and hybrid filtering.</li><li>Recommendation Generation: Based on the analysis of the graph, personalized recommendations can be generated for each user. These recommendations can be displayed to the user on the website or app, and can be updated in real-time as the user interacts with the system.</li></ol><h3><strong>Industry-wise use cases of Recommendations using Knowledge graphs:</strong></h3><ol><li>Oil &amp; Gas / Manufacturing: Use of knowledge graphs in recommendation systems can help Manufacturing/oil &amp; gas companies to improve their operations and increase efficiency, while also reducing downtime and improving safety. Recommendation helps in demand management , predictive maintenance , Safety recommendations, Equipment optimization, resource management &amp; more.</li><li>Pharma: the use of knowledge graphs in recommendation systems can help the pharmaceutical industry to improve drug discovery, clinical trials, personalized medicine, and adverse event monitoring.</li><li>Retail and E-commerce: In the retail and e-commerce industry, knowledge graphs can be used to recommend products to customers based on their purchase history, search queries, and browsing behavior. This can help retailers to personalize the customer experience and increase sales.</li><li>Media and Entertainment: In the media and entertainment industry, knowledge graphs can be used to recommend movies, TV shows, and other content to viewers based on their viewing history and preferences. This can help streaming platforms to increase user engagement and retention.</li><li>Healthcare: In the healthcare industry, knowledge graphs can be used to recommend treatment plans to patients based on their medical history and symptoms. This can help healthcare providers to improve patient outcomes and reduce healthcare costs.</li><li>Financial Services: In the financial services industry, knowledge graphs can be used to recommend investment products and services to customers based on their financial history and goals. This can help financial institutions to improve customer satisfaction and retention.</li><li>Travel and Hospitality: In the travel and hospitality industry, knowledge graphs can be used to recommend travel destinations, accommodations, and activities to customers based on their preferences and past behavior. This can help travel companies to improve customer loyalty and increase sales.</li></ol><h3><strong>Technology Advantages:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XBqWaoSCB-NZJLT04Ttx2g.png" /></figure><ul><li>KG helps to extend your existing environment while protecting your investments further by increasing data.</li><li>Graphs DB will help to provide full value of connected data within the entire organization as primary or secondary</li><li>KG offers to generate real-time automated data alerts &amp; recommendations across data teams.</li><li>Attention to detail of every increased complex data</li><li>Shift from discrete analytics to connected analytics.</li><li><strong>INDEX FREE ADJECENCY </strong>reduces time querying, scans, duplicates within seconds to minutes from weeks to months</li><li>Graph platform can manage all huge relationships, patterns, and lookups which is super quick within seconds.</li><li>Graph platform helps in quick decision making, reasoning, inferencing across all teams including R&amp;D, Product, Solution, production, Quality</li><li>KG reduces your hardware &amp; operational costs, with no architecture limitations in scalability along with granular security controls.</li><li>Graphs are the foundation to do 360-degree analytics covering &amp; combining all types of data in silos.</li></ul><h3><strong>Business benefits:</strong></h3><p>Companies around the globe have started incorporating Knowledge graphs into their data architecture to take advantage of powerful real-time recommendations. These enterprises have experienced a variety of business benefits :</p><ol><li><strong>Improved Competitiveness</strong>: Graph Technology enables new types of business functionality that are often not possible with other technologies, allowing you to make real-time decisions based on connected data. For example, Walmart uses Neo4j to make real-time product recommendations by using information about what users prefer. Additionally, many dating and online job sites use Neo4j to recommend jobs or dates by incorporating knowledge of the extended network (friends of friends) into the recommendation, again in real time, substantially improving the accuracy of the recommendation.</li></ol><p><strong>2) Reduced Project Time &amp; Cost: </strong>Graph technology cuts the overhead on many types of projects, particularly those involving connected data. Many customers cite the huge acceleration that occurs when a graph model is brought to bear on a connected data problem. For example, eBay cites that with Neo4j it requires 10–100 times less code than it did with SQL, and Telenor, one of the world’s top telecom providers, uses Neo4j for the authorization system on its business customer portal, improving performance by 1,000 times.</p><p><strong>3) Faster Product time to Market &amp; Better performance: </strong>Graphs enable developers to produce less code than RDBMS alternatives. Less code means higher quality and an increased success rate on projects. graph database performance is dramatically better for connected datasets — often the difference between what will and won’t be possible for a development team.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63ce5e83aedb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/real-time-recommendations-using-knowledge-graphs-63ce5e83aedb">Real-time Recommendations using Knowledge graphs</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Connect Neo4j Graph Database to Data Sources?]]></title>
            <link>https://medium.com/aarth-software/how-to-connect-neo4j-graph-database-to-data-sources-97e400818a4?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/97e400818a4</guid>
            <category><![CDATA[neo4j-graph-database]]></category>
            <category><![CDATA[etl-tool]]></category>
            <category><![CDATA[neo4j]]></category>
            <category><![CDATA[neo4j-drivers]]></category>
            <category><![CDATA[property-graph]]></category>
            <dc:creator><![CDATA[Mouna Challa]]></dc:creator>
            <pubDate>Thu, 04 May 2023 06:46:27 GMT</pubDate>
            <atom:updated>2023-05-04T06:46:27.082Z</atom:updated>
            <cc:license>http://creativecommons.org/publicdomain/zero/1.0/</cc:license>
            <content:encoded><![CDATA[<p>Connecting <a href="https://neo4j.com/">Neo4j Graph database</a> to data sources allows you to leverage the power of graph technology in combination with various data stores.</p><p>This guide will walk you through the process of connecting Neo4j to different types of data sources, enabling you to unlock valuable insights from your diverse data ecosystem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T9tIG7BuMz7oMQEKbNb92w.jpeg" /></figure><ul><li>Neo4j is a highly scalable, ACID-compliant graph database that uses the property graph model.</li><li>It allows you to represent complex relationships and perform efficient graph traversals, making it ideal for applications that heavily rely on interconnected data.</li><li>Neo4j offers a powerful query language called Cypher, designed specifically for working with graph data.</li></ul><h3>Benefits of Connecting Neo4j to Data Sources</h3><ul><li><strong>Holistic Insights: </strong>By connecting Neo4j to data sources, you can integrate and analyze data from multiple systems, gaining a comprehensive view of your organization’s data landscape.</li><li><strong>Relationship Analysis:</strong> Neo4j’s graph database model excels at capturing and analyzing relationships, enabling you to uncover hidden patterns and dependencies.</li><li><strong>Real-time Decision Making:</strong> Connecting to data sources empowers you to query and analyze data in real time, making informed decisions based on up-to-date information.</li><li><strong>Enhanced Performance:</strong> By combining Neo4j with various data sources, you can optimize data retrieval and processing, improving overall system performance.</li><li><strong>Flexible Data Integration: </strong>Connecting Neo4j to data sources enables seamless data integration, allowing you to leverage existing data investments and systems.</li></ul><h3><strong>Connect Neo4j to Relational Databases with Neo4j ETL Plugin</strong></h3><p><a href="https://neo4j.com/docs/getting-started/appendix/tutorials/guide-import-relational-and-etl/">Neo4j has created an ETL</a> (Extract-Transform-Load) tool to make it easier for developers to convert relational data structures into graph databases. The tool helps create a streamlined and efficient process for loading such data.</p><p>Neo4j provides a 3-step process to import data from a relational database into its graph.</p><p>It starts with setting up a JDBC connection and then editing the data model mapping that has been created. Finally, all the data is imported into Neo4j.</p><p>Obtaining and utilizing the tool is simple and straightforward. The Neo4j Tool can be used in two different ways — either through the command line or through the Neo4j Desktop application.</p><p>Working with the command line is made easy with this<a href="https://github.com/neo4j-contrib/neo4j-etl"> GitHub project.</a> All you need to do is download it and run each step at a command prompt.</p><h4>Benefits of connecting Neo4j to Relational Databases</h4><ul><li><strong>Comprehensive Data Analysis:</strong> By connecting Neo4j to relational databases, you can perform comprehensive analysis by leveraging graph-based querying and visualization on relational data.</li><li><strong>Relationship Mapping: </strong>Neo4j’s graph database model is ideal for representing and analyzing complex relationships, enabling deeper insights into the interconnectedness of data stored in relational databases.</li><li><strong>Data Enrichment:</strong> Integration with relational databases allows for data enrichment, combining graph data with additional context and details from structured sources.</li><li><strong>Performance Optimization:</strong> Neo4j’s optimized graph querying capabilities enhance performance when traversing relationships in relational data, enabling faster and more efficient analysis.</li><li><strong>Data Synchronization:</strong> ETL plugins enable continuous or one-time synchronization between Neo4j and relational databases, ensuring that changes made in either system are reflected in the other.</li></ul><h4><strong>Step 1: Prerequisites</strong></h4><p>For those who haven’t done it yet, downloading<a href="https://neo4j.com/download/"> Neo4j</a> and following the accompanying instructions is necessary for setting up a project and database. The instructions can be seen when you download the software.</p><p>To get the Neo4j ETL tool, make sure you have a project and database instance setup on Neo4j Desktop.</p><p>Then go to the Graph Applications tab and paste this link (https://install.graphapp.io/neo4j-etl-app) in the Install Box before clicking Install.</p><p>After you’ve finished the necessary steps, you’ll be able to view the ETL application. Now, it’s time to link it along with your graph applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*Q1s_KgifCYgcep4Ct_X4gw.jpeg" /></figure><h4>Step 2: Verify ETL Tool is Listed and Open</h4><p>You should now have access to the application. On the left side of the page, you can open the Graph application by clicking on its icon, which is located next to the ETL Tool.</p><p>This will let you access it regardless of any current project or database and it doesn’t require an active database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/389/1*_YsTRwN7FDhepYdwO-mCOg.jpeg" /></figure><h4>Step 3: Choosing a Project</h4><p>Upon starting the ETL Tool, you may be prompted to allow some background processes to run.</p><p>It is recommended to select ‘Allow’, which will finish loading the application and bring up its main screen.</p><p>On this page, you will see a default project and the graph database instances associated with it. In case you do not have any such databases created, the screen will look like the one shown below.</p><p>Before advancing any further, you must<a href="https://neo4j.com/developer/neo4j-desktop/#desktop-create-DBMS"> create a graph</a> using an ETL Tool which can be run in a local or remote instance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*7sKnK3RvQO06IrVfl_39fw.png" /></figure><p>Once you have created the database, you have to decide which project to focus on.</p><p>This will determine which Neo4j databases will be available for you to import the data into at a later stage.</p><p>To the right, a list of available databases is present for the project.</p><p>Since there are no connections on the left side, we don’t have any relational databases defined in our tool, thus we need to click ‘ADD CONNECTION’ to set one up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*9_MwZUolHSOl0fl4muToGw.png" /></figure><h4><strong>Step 4: Set Up a Connection to Relational Database</strong></h4><p>When creating a new connection, you will be guided to a form where you should enter the necessary details.</p><p>The tool can easily connect to various types of relational databases by using its JDBC Driver, such as MySQL, PostgreSQL, Oracle, Cassandra, DB2, SQL Server, and Derby.</p><p>MySQL and PostgreSQL databases come pre-integrated with the tool. But if you’re looking to use external databases, all you need to do is specify a<a href="https://github.com/neo4j-contrib/neo4j-etl#jdbc-drivers"> driver file</a> for easy setup.</p><p>For this example, select Postgresql as the option. The port and connection URL has already been filled in correctly for this choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*wawnQ17154vP7lgs075VMA.png" /></figure><p>Now, you must fill in the remaining information. You can give any name to your Connection Name field, but it is essential that the Database field matches the exact name of your relational database.</p><p>If you have supplied a username and/or password while setting up your relational database, you’ll need to enter them into their respective fields.</p><p>On the other hand, if you didn’t specify either of those credentials while creating the database, you can leave one or both of these empty.</p><p>When working with databases other than Postgres or MySQL, remember to select a suitable driver file for your tool to facilitate the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*1edK0bi44xToMZMCqmJSnA.png" /></figure><p>After completing the details, click the Test and Save Connection button located at the bottom of the window.</p><p>If everything is successful, you will receive a confirmation message in blue at the top of your screen. If any of the fields are incorrectly filled or the relational database is unable to be found, an error message will appear as a red bar on your screen.</p><h4><strong>Step 5: Choose the ‘From’ and ‘To’ Databases for Import</strong></h4><p>After successfully establishing a connection with a relational database, we have to determine what will be loaded into the graph database.</p><p>This can be done by selecting the source of data, i.e. the relational database connection in the left list, and then selecting the desired destination i.e., the graph database in the right list that is meant to receive this data. Then you can click the <strong>Start Mapping</strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*EjdRCYhBqcAWAkiuuU01yw.png" /></figure><p>After completing a step, a blue message bar will appear at the top of your screen to indicate successful completion.</p><p>Alternatively, if the step fails, you will be notified with a red message bar. In our case, since the step was completed successfully, the Start Mapping button will be inactive and the Next button can now be pressed to proceed.</p><p>In the event of a failed step, you can investigate further by clicking the SEE LOGS button located at the bottom to debug.</p><h4><strong>Step 6: Adapt Your Metadata</strong></h4><p>Upon clicking the “<strong>Next</strong>” button at the bottom right, you will be directed to the data model page. Here, you can alter any of the mappings including property names, data types, and bonds if need be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*-n4DqO_n-jWTUYkBVAb9Bg.png" /></figure><p>On the left side of the page, you can find two tabs — one showing all the Nodes and the other one listing all Relationships.</p><p>To update any of them, simply click on it in the list. The tool lets you leave out nodes and connections that are not necessary to be imported into the graph.</p><p>To edit the details of mappings, you can click on the pencil icon next to an entity in the list or double-click on the said entity in the visualization.</p><p>This will open a popup box that contains all fields and give you options for making any changes. Clicking ‘<strong>Save</strong>’ will commit your modifications to the graph.</p><h4><strong>Step 7: Import the Data</strong></h4><p>Neo4j offers multiple approaches to move data into the graph database depending on its condition. Every technique has different prerequisites and advantages which are described in detail below.</p><ol><li>If the database is running (works for both local and remote instances)</li></ol><p><strong>Online Direct:</strong> It runs via a BOLT connection to import, turning SQL results into Cypher parameters.</p><p><strong>Online Batch:</strong> Using CSV files from the mapping stage, one can import batches over a BOLT connection.</p><p>2. If the database is shut down</p><p><strong>Bulk Import:</strong> Fast loader for initial load with offline import (running the Neo4j-Admin import tool).</p><p><strong>NOTE:</strong> It is essential to take into consideration whether your Neo4j database is active or not when importing data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*Q5VOR9zZXPnqrTAobzfaCw.png" /></figure><p>By clicking the ‘Import Data’ button, you can initiate automatic commands that will perform their task in the background.</p><p>Once it has been completed, a blue message bar will appear at the top of your window to notify you that the import was successful and display its output result at the bottom of your screen. (screenshot below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIS3HzRakC1l02FXcGpktQ.png" /></figure><h4><strong>Step 8: Check Imported Data</strong></h4><p>To ensure a successful data loading process and start using the Neo4j database, closely examine the data model.</p><p>From there you can run queries directly from Neo4j Browser or an application connected to your database.</p><p>To view the graph data model, we will first access the Neo4j Desktop window, click on ‘Manage’ for the ETL db database and open the Browser.</p><p>After that, run ‘CALL db.schema()’ from the Browser command line to display it. Your relational data has now been transformed into a graph!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*QSmo8Z2aFnxVD5al84oD_Q.png" /></figure><p>In this example, the model does not have the Customer Demographics node connected to the Customer node because of the lack of customer demographics data in the Postgres dataset.</p><h3>Connecting Neo4j to NoSQL Databases</h3><p>Integrating Neo4j with NoSQL databases enables you to combine the power of graph-based modeling with the flexibility and scalability offered by NoSQL technologies.</p><p>This integration allows you to leverage the strengths of both Neo4j and the respective NoSQL database, enabling advanced analysis and efficient data management.</p><h4>Benefits of connecting Neo4j to NoSQL Databases</h4><ul><li><strong>Enhanced Data Relationships:</strong> By connecting Neo4j to NoSQL databases, you can capture and analyze complex relationships within your data, providing deeper insights and facilitating more accurate decision-making.</li><li><strong>Scalability and Flexibility:</strong> NoSQL databases excel at handling large volumes of unstructured or semi-structured data, and integrating Neo4j with NoSQL databases allows you to scale your graph-based applications effectively.</li><li><strong>High Performance: </strong>The combination of Neo4j’s optimized graph querying and NoSQL database’s high throughput capabilities allows for efficient and fast data retrieval and processing.</li><li><strong>Data Enrichment:</strong> Connecting Neo4j to NoSQL databases enriches graph data by incorporating additional information from diverse data sources, enabling comprehensive analysis and exploration.</li><li><strong>Real-time Data Processing:</strong> Integration with NoSQL databases enables real-time data ingestion and processing, empowering you to make timely decisions based on the most up-to-date information.</li></ul><h4>Connecting to MongoDB Database</h4><p>The Neo4j Doc Manager project enables the synchronization of meta data from MongoDB to Neo4j, taking advantage of the relationships in the data that Neo4j is best at.</p><p>This allows for easier access to data than MongoDB and can be very useful in a variety of situations.</p><p>Neo4j Doc Manager enables you to work with<a href="http://mongodb.com/"> MongoDB</a> documents in a Neo4j graph format.</p><p>The documents are structured in the same manner as specified by<a href="https://github.com/mongodb-labs/mongo-connector"> Mongo Connector</a>, thereby enabling easy querying for relationships.</p><p>This service allows you to sync your data from MongoDB to Neo4j in real-time so that you can benefit from the advantages of both databases in your application.</p><h4>Step1 : Installation</h4><p>To use the Neo4j Doc Manager, Python should be installed on your system.</p><p>The most recommended way to do so is by using the ‘<a href="http://pip.readthedocs.org/en/stable/">pip</a>’ package manager of Python (You might need sudo privileges).</p><pre>pip install neo4j-doc-manager</pre><h4>Step 2: Using Neo4j Doc Manager</h4><p>To be able to use Neo4j, you need to make sure that the instance is up and running.</p><p>Additionally, if authentication has been enabled with version 2.2 or higher, you need to set the environment variable ‘NEO4J AUTH’ with your username and password.</p><pre>export NEO4J_AUTH=user:password</pre><p>To set up MongoDB as a replica set, start the Mongo process with the following command. This helps to ensure that you are running a replica set of Mongo. Additionally, it is important to regularly monitor the health of your replica set in order to maintain optimal performance.</p><pre>mongod --replSet myDevReplSet</pre><p>Next, launch the<a href="http://docs.mongodb.org/master/tutorial/getting-started-with-the-mongo-shell/"> Mongo shell</a> and execute the command:</p><pre>rs.initiate()</pre><p>For additional information, kindly check the<a href="https://github.com/10gen-labs/mongo-connector/wiki/FAQ"> Frequently Asked Questions section of Mongo Connector</a>.</p><p>To begin using mongo-connector, enter the command below in the terminal:</p><pre>mongo-connector -m localhost:27017 -t http://localhost:7474/db/data -d neo4j_doc_manager</pre><p>-m provides Mongo endpoint</p><p>-t provides Neo4j endpoint. (Make sure to specify the protocol (HTTP)).</p><p>-d specifies Neo4j Doc Manager.</p><h4>Step 3: Data synchronization</h4><p>Neo4j Doc Manager allows for documents stored in MongoDB to get converted into a graph structure and added to Neo4j.</p><p>It does this by transforming the keys of the documents into nodes, and then extracting the nested values associated with each key as properties.</p><h4>Connecting to Cassandra Data Source</h4><p>Neo4j is a great option for working with graph-based data since it is specifically designed for that purpose.</p><p>On the other hand, Cassandra is suitable for larger set of structured and semi-structured data.</p><p>Combining two databases provides an effective way to conduct graph-based analysis on large datasets.</p><p>This allows you to leverage the strengths of each database for a more comprehensive analysis.</p><p>To maximize the efficiency of Cassandra’s<a href="https://neo4j.com/blog/why-database-query-language-matters/"> query language</a>, the columns and column families should be designed in such a way that they are optimized for reading data.</p><p>This may result in duplication of data as you will have to create new tables with the same content, but tailored to suit your queries better.</p><p>Now, we know that Neo4j is very adept at<a href="http://neo4j.com/blog/why-graph-data-relationships-matter/"> handling relationships</a>, so it may be wise to bring some of our event log data into Neo4j to run some<a href="https://www.youtube.com/watch?v=ujimD6MP87I"> fraud detection Cypher queries</a>.</p><h4>Step 1: Neo4j-Cassandra data import tool</h4><p>Neo4j-Cassandra data transfer tool allows you to migrate data from Cassandra’s column-oriented model into a Neo4j property graph.</p><p>It does this by inspecting the Cassandra schema and letting you define how the data should be mapped.</p><p>Make sure that both Cassandra and Neo4j are up and running properly.</p><p>Next clone this repository: git clone<a href="https://github.com/neo4j-contrib/neo4j-cassandra-connector.git"> https://github.com/neo4j-contrib/neo4j-cassandra-connector.git</a></p><p>Install project dependencies using</p><pre>pip install -r requirements.txt -</pre><h3>Step2: Populating an initial Cassandra Database</h3><p>For this example, a sample database of musicians and their songs will be utilized.</p><p>To get a Tracks and Artists database into your Cassandra database, navigate to the ‘db gen directory’, start the <strong>cqlsh </strong>shell, then execute the ‘<strong>SOURCE ‘/playlist.cql’</strong> command (including absolute path if not in same directory). This will populate your database with the sample content.</p><h3>Step 3: Inspect the Cassandra schema</h3><p>To correctly establish a connection between Cassandra and a graph, you must populate the initial database and create a file. This will enable you to map the Cassandra Schema effectively.</p><ul><li>Go to the project directory and select the subfolder ‘connector’.</li><li>Execute the script ‘connector.py’ using Python by running the command ‘python connector.py parse -k playlist’</li><li>After processing, you will have a schema.yaml file generated. This contains a YAML representation of the Cassandra schema along with details on converting it into Neo4j’s property graph data model format. Edit this file to specify the graph structure you would like to use to import your data.</li></ul><h4>Step 4: Configure data model mappings</h4><p>To be able to bring data from Cassandra into Neo4j, the schema.yaml file needs to be populated with details about the mapping between both structures. This will ensure that elements in the Cassandra structure are properly represented in Neo4j’s property graph model.</p><pre>CREATE TABLE playlist.artists_by_first_letter:<br>    first_letter text: {}<br>    artist text: {}<br>    PRIMARY KEY (first_letter {}, artist {})<br>CREATE TABLE playlist.track_by_id:<br>    track_id uuid PRIMARY KEY: {}<br>    artist text: {}<br>    genre text: {}<br>    music_file text: {}<br>    track text: {}<br>    track_length_in_seconds int: {}<br>NEO4J CREDENTIALS (url {}, user {}, password {})</pre><p>Neo4j uses Nodes to represent each table in a database, allowing for graph-like model navigation and analysis. Every node created in Neo4j will have a label corresponding to the keyspaces from Cassandra.</p><p>It’s possible to fill {} with the following options</p><ul><li><em>p</em>, for regular node property (fill with <em>{p}</em>),</li><li><em>r</em> for relationship (fill with <em>{r}</em>),</li><li><em>u</em> for unique constraint field (fill with <em>{u}</em>)</li><li><em>i</em> to create an index on this property (fill with <em>{i}</em>)</li></ul><p>Neo4j address and credentials are required at the end of this file. If you have disabled authentication, the user and password fields can be left blank.</p><p>NEO4J CREDENTIALS (url {“<a href="http://localhost:7474/db/data">http://localhost:7474/db/data</a>&quot;}, user {“neo4j”}, password {“neo4jpasswd”})</p><h4>Step 5: Import to Neo4j</h4><p>Once you have added all the required information to the empty brackets, remember to save the file and then run connector.py. This time, specify which tables you want to export from Cassandra:</p><pre>python connector.py export -k playlist -t track_by_id,artists_by_first_letter</pre><p>If you want to change the name of the YAML file from its default ‘schema.yaml’, you can use a CLI argument to specify it.For example:</p><pre>python connector.py export -k playlist -t track_by_id,artists_by_first_letter -f my_schema_file.yaml</pre><h4>Step 6: Mapping data into Cassandra to Neo4j</h4><p>YAML files can be converted into Cypher queries which can then be used to create Nodes and Relationships in a graph structure. A file called ‘cypher_’ will appear in your directory, containing these Cypher queries. Once created,<a href="http://py2neo.org/2.0/"> Py2Neo</a> automatically sends the queries to Neo4j using the parameters specified in schema.yaml file.</p><h3>Importing JSON Data With REST API to Neo4j</h3><p>Neo4j lets you retrieve data from JSON-based Web APIs and transform it into map values for Cypher’s use. There are numerous JSON-based Web APIs you can import into Neo4j, and one of them is the<a href="https://neo4j.com/docs/apoc/current/import/load-json/"> Load JSON</a> procedure.</p><p>The Load JSON procedures enable you to retrieve data from URLs or maps and convert it into map values, which can be used in Cypher. Cypher provides helpful features like dot syntax, slices, and UNWIND that can make it easier to transform data into useful graphs.</p><h4>Procedure Overview</h4><p>The following are the available procedures</p><p><a href="https://neo4j.com/docs/apoc/current/overview/apoc.load/apoc.load.json/"><strong>apoc.load.json</strong></a></p><pre>apoc.load.json(&#39;url&#39;,path, config) YIELD value</pre><p>Import JSON as a stream of values if the JSON is an array, or a single value if it is a map. This procedure enables you to parse JSON files or those available on a HTTP URL into a map data structure.</p><p>Signature:</p><pre>apoc.load.json(urlOrKeyOrBinary :: ANY?, path = :: STRING?, config = {} :: MAP?) :: (value :: MAP?)</pre><p><a href="https://neo4j.com/docs/apoc/current/overview/apoc.load/apoc.load.jsonParams/"><strong>apoc.load.jsonParams</strong></a></p><pre>apoc.load.jsonParams(&#39;url&#39;,{header:value},payload, config) YIELD value</pre><p>Load from a JSON URL (e.g. web-api) while sending headers and payload to import JSON as a stream of values if the JSON is an array, or a single value if it is a map. The apoc.load.json procedure can be used to parse a file or URL in JSON format and store it into a map data structure. It offers customizable options such as HTTP headers and JSON payloads, making it more flexible than other procedures of the same kind.</p><p>Signature:</p><pre>apoc.load.jsonParams(urlOrKeyOrBinary :: ANY?, headers :: MAP?, payload :: STRING?, path = :: STRING?, config = {} :: MAP?) :: (value :: MAP?)</pre><p><a href="https://neo4j.com/docs/apoc/current/overview/apoc.load/apoc.load.jsonArray/"><strong>apoc.load.jsonArray</strong></a></p><pre>apoc.load.jsonArray(&#39;url&#39;) YIELD value</pre><p>Load an array from a JSON URL (e.g. web-api) to import JSON as a stream of values. The process of converting a JSON array stored in a file or an HTTP URL into a stream of maps is done using this procedure.</p><p>Signature:</p><pre>apoc.load.jsonArray(url :: STRING?, path = :: STRING?, config = {} :: MAP?) :: (value :: ANY?)</pre><p><a href="https://neo4j.com/docs/apoc/current/overview/apoc.import/apoc.import.json/"><strong>apoc.import.json</strong></a></p><pre>apoc.import.json(file,config)</pre><p>Import the JSON list to the provided file.This step can be used to import JSON files created with Export JSON and exported using the config parameter jsonFormat set as ‘JSON LINES’ (default setting).</p><p>Signature:</p><pre>apoc.import.json(urlOrBinaryFile :: ANY?, config = {} :: MAP?) :: (file :: STRING?, source :: STRING?, format :: STRING?, nodes :: INTEGER?, relationships :: INTEGER?, properties :: INTEGER?, time :: INTEGER?, rows :: INTEGER?, batchSize :: INTEGER?, batches :: INTEGER?, done :: BOOLEAN?, data :: STRING?)</pre><p><strong>Importing from a file</strong></p><p>In apoc.conf, you can enable importing from the file system by setting a specific property. This is disabled by default and needs to be enabled manually.</p><pre>apoc.import.file.enabled=true</pre><h4>Using JSON paths</h4><p>JSON paths offer a concise format for extracting and managing sub-documents &amp;amp; values from complex JSON structures. This is an efficient way to read and process data from nested formats.</p><p>You can use JSON paths instead of JSON files for Cypher queries, which can help shorten the query length for nested JSON data. This way, you won&#39;t have to unwind each object when accessing the required substructures. The JSON path format follows the<a href="https://github.com/jayway/JsonPath#operators"> <strong>Java implementation by Jayway</strong></a> of<a href="http://goessner.net/articles/JsonPath/"> <strong>Stefan Gössner’s JSONPath</strong></a>, providing a consistent syntax for the paths.</p><p>The apoc.convert.Json procedures and functions, as well as the apoc.load.json process, accept json path as their last argument. These functions are intended to stream arrays of values or objects, but not just single values. If a single item or value is specified as the path, the function may not return the expected results.</p><p>The apoc.json.path(json,path) method takes a JSON string rather than a map or list and fetches values from the given json path as the second argument. Should you need to convert the JSON into string format, you may use the apoc.convert.toJson function for that purpose.</p><p>Once you import the directory in the Neo4j instance and write a query using any of the procedures, you will get a get back a map that looks almost the same as the JSON document. You can now extend that query to create a graph based on this JSON file.</p><h3>Best Practices for Connecting Neo4j to Data Sources</h3><ul><li><strong>Understand Data Model:</strong> Ensure a clear understanding of the data model in Neo4j and the schema/structure of the data sources to design an effective integration strategy.</li><li><strong>Data Mapping:</strong> Map the data from the source to the graph model in Neo4j appropriately, preserving relationships and ensuring data consistency.</li><li><strong>Incremental Updates:</strong> Implement mechanisms to handle incremental updates, syncing changes between Neo4j and data sources efficiently.</li><li><strong>Security Considerations:</strong> Follow security best practices, including securing access credentials, implementing encryption, and adhering to data privacy regulations.</li><li><strong>Performance Optimization:</strong> Optimize queries, indexing, and caching strategies to ensure efficient data retrieval and processing.</li></ul><h4>Conclusion</h4><p>Connecting Neo4j to data sources provides a range of benefits, expanding the capabilities of graph-based analysis and enabling comprehensive insights.</p><p>By integrating with various data sources, Neo4j allows you to enrich data, analyze relationships, make real-time decisions, and achieve better performance.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97e400818a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/how-to-connect-neo4j-graph-database-to-data-sources-97e400818a4">How to Connect Neo4j Graph Database to Data Sources?</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a Knowledge Graph?]]></title>
            <link>https://medium.com/aarth-software/what-is-a-knowledge-graph-833589cd4312?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/833589cd4312</guid>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[graph-database]]></category>
            <category><![CDATA[google-knowledge-graph]]></category>
            <category><![CDATA[digital-twin]]></category>
            <category><![CDATA[google]]></category>
            <dc:creator><![CDATA[Vaishnavi Magesh]]></dc:creator>
            <pubDate>Tue, 25 Apr 2023 05:41:09 GMT</pubDate>
            <atom:updated>2023-04-25T05:41:09.205Z</atom:updated>
            <content:encoded><![CDATA[<p>As humans, we are always curious about the world around us, and there is a myriad of information out there. We are always searching on the internet to make our lives easier, which leaves us with varied results. We hoard a lot of information, and cannot find relevant information when we need it. But I wondered what if a machine could do it for us, store information, classify information, and form easy relationships interconnecting one piece of information to another like a butterfly effect. For me, the concept of a Knowledge Graph serves the same idea, and here is what I have dwelled upon it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zg2lkStJnId8YLXSjbfBhg.png" /></figure><p>Knowledge Graphs understand real-world entities and illustrate their relationships with one another. It was introduced by Google way back in 2012 but the term ‘<a href="https://en.wikipedia.org/wiki/Knowledge_graph">Knowledge Graph</a>’ was coined by Austrian Linguist Edgar. W. Schneider in 1972.</p><p>It’s a common saying that a picture is worth a thousand words and a knowledge graph is a visual representation explaining the relation between variable quantities. The information from real-world entities such as objects, events, situations, and concepts are stored in a graph database and visualized as a graph structure. It consists of the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jj9qieaU6mCipKAKFZDfZQ.jpeg" /></figure><ul><li>Nodes represent different and varied entities</li><li>Edges show the relationship between 2 or more nodes</li><li>Labels define nodes</li></ul><p>Knowledge graphs are an effective tool for organizing, managing, and interpreting huge amounts of data. They record the interactions between distinct things and provide a more comprehensive and contextual understanding of data. It can be used to power a variety of applications. Knowledge graphs are changing the way we use and interact with data, from recommendation systems to healthcare. The value of knowledge graphs will only grow as the amount of data generated increases.</p><p>Unlike relational databases which store data in rows and columns, graph databases store data in nodes and form edges to explain the relationship between different nodes. This way it’s easier to understand and more scalable.</p><p>An early <a href="https://blog.google/products/search/introducing-knowledge-graph-things-not/">blog</a> by Amit Singhal, former Senior Vice President of Engineering at Google, 2012 shed light on the need for Knowledge Graphs to improve data querying and how one entity (a piece of information) relates to another entity, and how all of that is connected to a different entity. It helps in identifying the relations and patterns to improve search queries and go deeper to further improve our search results</p><p>We are looking at a technology that can transform the way we analyze, predict, and come to decisions. Knowledge Graphs have the potential to revolutionize the analytics industry and radically transform decision-making by improving precision and scalability.</p><p>It is interoperable in nature and is widely used in many industries and there’s no question it’s the next big thing, though it has been around for quite a long time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=833589cd4312" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/what-is-a-knowledge-graph-833589cd4312">What is a Knowledge Graph?</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Power of Graph & knowledge graphs “ — Future of data technologies?]]></title>
            <link>https://medium.com/aarth-software/power-of-graph-knowledge-graphs-future-of-data-technologies-37420a2a8184?source=rss----b7054e0b2b28---4</link>
            <guid isPermaLink="false">https://medium.com/p/37420a2a8184</guid>
            <category><![CDATA[graph-technology]]></category>
            <category><![CDATA[knowledge-graph]]></category>
            <category><![CDATA[graph-database]]></category>
            <category><![CDATA[rdf]]></category>
            <category><![CDATA[graphql]]></category>
            <dc:creator><![CDATA[Vikas Virupaksh]]></dc:creator>
            <pubDate>Mon, 17 Apr 2023 11:44:39 GMT</pubDate>
            <atom:updated>2023-04-17T11:44:39.060Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>“Power of Graph &amp; Knowledge Graphs” — Future of data technologies?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xtKhXWP4zdO5YTjw50psLA.png" /></figure><p>In recent days, most of you might have heard buzzwords like Graph databases &amp; knowledge graphs. For the past few months, I have been actively engaging with clients, helping them to explore &amp; educate on Graph-based technologies like graph databases, knowledge graphs, RDFs &amp; Digital twins. Also, it is interesting to see some enterprises exploring these technologies seriously so that they are well prepared for easy adoption of these futuristic technologies.</p><p>In this article, I am trying to put across most of the information related to these graph-based technologies, like the differences between industries, impact, business revolution, how it will shape the future &amp; so on.. let us get started!!</p><p><strong>Introduction:</strong> The world of data technology is rapidly evolving. Graph databases, knowledge graphs, RDF, and digital twins are just a few of the game-changing advancements that are currently being developed and implemented in the data space. These tools are helping to unlock the power of data, enabling faster decisions and more meaningful insights to be drawn from the information. Whereas Traditional databases are limited in their ability to process complex relationships between different elements &amp; the execution of complex queries is complicated &amp; time-consuming. The power of graph technology lies in its ability to connect data points to form relationships. This means that complex data can be broken down into easily accessible pieces, allowing for faster and more accurate analysis. By using graph technology, businesses can gain valuable insights into behavior, trends, and preferences. Graph technology is not only revolutionizing the way we store and process data, but it’s also changing the way we interact with data. Graph technology offers sophisticated ways to model, store, and query data, enabling organizations to gain valuable insights from their data. In this article, we will explore how graph technology is shaping the future of data and how organizations can leverage this powerful technology to drive their data-driven initiatives. We will discuss how graph databases are different from other databases and why they are so well-suited for analyzing complex relationships between data. We will also explore how graph technology can be used to gain insights from data and how organizations can use it to make informed decisions. Finally, we will discuss some of the potential applications of graph technology in the future of data. Graph technology is a powerful tool for understanding data and unlocking its potential. As technology continues to evolve and become more widely adopted, the possibilities for graph technology are endless. Graph technology is shaping the future of data, and it’s an exciting time to be a part of it. But what does the future of data technology look like?</p><p><strong>Current Analytics Industry vs Graph Industry</strong></p><p>First, let us understand how the current industry is placed versus how the graph industry will work on a hierarchical structure. Please refer to the below image (Fig. 1.0) on the current Analytical industry hierarchy, where for any insight, analytics, or decision data that is basic, we use databases, then we do data management activities, then a reporting layer, then a data visualization layer, then BI, and at last its analytics. Here AI &amp; ML can be used at any layer of hierarchy, where we put machines to learn &amp; show us the output. BI or Business Intelligence is a system that helps business users to come up with decision-based on insights &amp; analytics which is provided, hence, it is called a “Decision Enablement system”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*vzoM5qMzYf0_JqIVkbbRrA.png" /><figcaption>Figure 1.0 — Current Analytics Industry Hierarchy</figcaption></figure><p>Similarly, with Graph industry, databases are the base of the hierarchy, but here it is Graph databases instead of traditional databases, then knowledge graphs, then the RDF layer, &amp; lastly it is Digital twins, refer to below image (Fig. 1.1). By creating knowledge graphs using Graph databases, we can eliminate most of the data fabricated products as Graph databases store any type of structured, unstructured &amp; semi Structured information &amp; it is index free, hence it provides a flexible graph model, that helps you store large data &amp; provides extensive scalability option with super-fast querying. Knowledge graphs are nothing but digitizing knowledge with data. Whereas RDF (Resource Development Framework) supports bringing semantic data &amp; existing data into one single system, which indeed helps AI &amp; ML with missing values, parameters, and variables with context. That’s why we say RDFs &amp; knowledge graphs are enablers for AI &amp; ML, which we can get higher accuracy &amp; efficiency. With all these tools RDFs are used as a Decision Intelligence systems for businesses solving real-world problems rather than showing only analytics. Digital Twins are built using knowledge graphs &amp; RDF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/944/1*zswa8Ho19Y0lhgCbAzgh2Q.png" /><figcaption>Figure 1.1 — Graph Industry Hierarchy</figcaption></figure><p><strong>Differences between Traditional &amp; Graph databases</strong></p><p>Traditional databases are great for storing structured data but fail to capture connections between different pieces of information. On the other hand, graph technology is designed to manage unstructured data with ease and provides a way to visualize complex relationships between data points, the differences between graph technology and traditional databases are significant refer to image (Fig. 2.0). Graph technology and traditional databases differ in their approaches to storing and organizing data. Traditional databases, such as relational databases, rely on tables with rows and columns to store data. They are designed for structured data that can be easily categorized into pre-defined categories. On the other hand, graph databases are built around nodes (entities) connected by edges (relationships). This allows them to handle complex relationships between entities more efficiently than traditional databases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VHT0znj_6RaBf_PVXzEV0g.png" /><figcaption>Figure 2.0 — Traditional vs Graph Databases</figcaption></figure><p>Graph technology databases are extremely useful for applications that require real-time analysis of large amounts of unstructured or semi-structured data. Graph databases excel at handling vast amounts of interconnected information, making them ideal for any use case some are like x360, anomaly detection, Supply chain resilience, new innovations, recommendation engines &amp; the list goes on. Another key difference between graph tech and traditional database systems is their query language. Traditional DBMSs use SQL (Structured Query Language), which requires knowledge of complex syntax rules and has limited capabilities when it comes to querying relationships between entities. Graph database systems have their own query language called Cypher or we call GQL (graph Query language), which makes it easier to express queries about relationships in a natural way. Graph technology offers significant advantages over traditional relational models when dealing with highly-connected datasets requiring dynamic queries against changing schemas. In summary, while traditional database systems have their strengths and weaknesses depending on the application requirements and type of data being stored, whereas Graph databases are limitless in scaling &amp; performance. While traditional databases excel at handling structured data, graph technology provides a more flexible approach to managing complex relationships and unstructured data. As businesses continue to deal with increasingly complex data sets, it’s essential to understand the advantages and disadvantages of different database technologies available today.it is important to evaluate factors like performance, scalability, ease of use, cost-effectiveness &amp; ROI while your team is looking for traditional databases.</p><p>At the end of the day — A graph database aligns best with your business objectives while ensuring optimal performance and reliability. As always — exploring modern technologies! The world is evolving at breakneck speed; staying ahead requires us all to be open-minded about new possibilities &amp; technologies like Graph tech. Knowledge graphs, RDF.</p><p><strong><em>Once you have understood these basic concepts it’s easier to understand further concepts on how graphs will be shaping the future data approach</em></strong></p><p><strong>Graph- based technologies for Data management</strong></p><p>Graph-based technologies are becoming increasingly popular in data management because they allow for efficient representation and analysis of complex relationships and dependencies between data entities. Now a days some large enterprise companies have started relying on Graph technology as it is quickly becoming an essential component for managing and understanding large volumes of data. Knowledge graphs and RDF (Resource Description Framework) are two related technologies that are commonly used in data management along with graph databases to represent, store and organize complex knowledge structures. Some examples of Graph-based technologies in data management include.</p><ul><li>Data discovery: Knowledge graphs can be used to organize data in a way that makes it easier to discover and explore. RDF can be used to add metadata and annotations to the data, making it more searchable and accessible.</li><li>Data integration: Knowledge graphs can be used to integrate data from different sources by mapping entities and relationships to a common schema. RDF can be used to encode the resulting data in a standard format that can be shared and reused across different applications and platforms.</li><li>Data analysis: Knowledge graphs can be used to model complex relationships between data entities, making it easier to perform advanced analytics and machine learning tasks. RDF can be used to encode the resulting data and share it with other applications and platforms.</li><li>Data sharing: RDF can be used to encode data in a standard format that can be shared and reused across different applications and platforms. Knowledge graphs can be used to provide a common schema and ontology for the shared data, making it easier to understand and use.</li><li>Semantic search and discovery: Knowledge graphs and RDF can be used to enable more precise and meaningful search and discovery of data, by allowing users to search for concepts and relationships rather than just keywords.</li><li>Personalization and recommendation systems: Knowledge graphs and RDF can be used to power personalized recommendation systems, by analyzing user preferences and relationships between entities.</li><li>Data governance and compliance: Knowledge graphs and RDF can be used to manage metadata and ensure compliance with regulations such as GDPR.</li></ul><p>There is more, will share in upcoming articles dedicated to data management 😉</p><p><strong>How Graph technologies will Revolutionizing Businesses</strong></p><p>The world of data is constantly evolving, and with the introduction of graph technology, businesses of all sizes can now access and analyse data in a way they never thought it is possible. Multi uses under one platform shows below image (Fig. 3.0) With the use of graph technology, businesses can now gain insights into customer behavior, create more efficient marketing strategies, and improve customer service. Graph technology is revolutionizing businesses in several separate ways. For example, graph technology can be used to create detailed customer profiles, allowing businesses to better understand their customers and target potential customers with more personalized campaigns. Additionally, graph technology can help businesses identify relationships between customers and products, which can lead to more effective marketing campaigns and improved customer service. Graph technology can also be used to analyze large volumes of data quickly and accurately, allowing businesses to make more informed decisions. With graph technology, businesses can also detect anomalies in data and detect fraud more effectively. By doing so, businesses can reduce losses and increase profits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BvoF0uJ6cCNbzvUrUoyRJA.png" /><figcaption>Figure 3.0 — Industrial Usage of Knowledge Graphs</figcaption></figure><p><strong>Understanding the role of Graph-based technologies in real world problems</strong></p><p>The world of data is rapidly evolving. With the advent of modern technologies, the way we look at data is changing, and graph technology is playing an increasingly important role. Graph technology is revolutionizing the way we interact with data, making it easier to visualize relationships and uncover new insights. Graph technology is a powerful tool for tackling real-world problems. By representing data as a graph, it’s possible to uncover hidden relationships and patterns that would otherwise remain hidden. In a graph-based system, data is represented as a network of interconnected nodes. This allows users to quickly visualize and explore the data, making it easier to identify patterns and draw meaningful conclusions. Graph technology has numerous applications in the real world. From manufacturing, healthcare, finance to social media, graph technology can be used to uncover insights and make better decisions. For example, graph technology can be used to identify financial fraud, track the spread of a virus, Predictive maintenance, demand management, risk &amp; sustainability or even help social media companies better understand their users. With the rise of graph technology, it’s becoming easier to make sense of large datasets. By connecting the dots, users can uncover new insights and make more informed decisions. As the technology continues to evolve, it will become even more powerful and capable of tackling increasingly complex tasks. Graph technology has the potential to shape the future of data. As the technology continues to develop, it will revolutionize how we interact with data, bringing us closer to uncovering the hidden secrets of our world, below is the work flow of how graph solution will work.(Fig.4.0 )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QtwYQu9sRPI1GfGqvRX8RA.png" /><figcaption>Figure 4.0 — Workflow of Graph solution for real-world problems</figcaption></figure><p><strong>The Future is Here: Graph Technology is Shaping the Future of Data</strong></p><p>As technology continues to evolve, it’s clear that graph based technologies like Graph database, RDF &amp; Digital twins is set to become an integral part of the future data. Its ability to quickly and accurately connect data points, as well as its scalability, makes it more powerful tool for companies to utilize. With the right investments in graph technology, organizations can unlock the true potential of their data and gain deeper insights into their businesses. The potential of graph technology is vast, and organizations that embrace it now will be well-positioned to reap the rewards in the years to come. If you’re looking to maximize the value of your data, don’t hesitate to take advantage of the power of graph technology.</p><p><strong>Conclusion</strong></p><p>The possibilities of graph technology are truly limitless. From complex network analysis ,predictive analytics to prescriptive analytics, graph technology has been making rapid strides as a powerful tools for working with data. This technology has the potential to revolutionize the way data is stored and analyzed, and it is likely that it will become an essential part of the data analysis process in the future. With its ability to handle complex relationships and quickly identify patterns, graph technology is sure to be a game-changer in the world of data analysis. The future of graph technology looks very promising, and the advancements that have been made in the past few years have only scratched the surface. It is up to us to take advantage of this incredible technology and use it to create powerful insights from our data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37420a2a8184" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aarth-software/power-of-graph-knowledge-graphs-future-of-data-technologies-37420a2a8184">“Power of Graph &amp; knowledge graphs “ — Future of data technologies?</a> was originally published in <a href="https://medium.com/aarth-software">Aarth Software</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>