SlideShare a Scribd company logo
Graph analysis over relational database
Graph Analysis over
Relational Database
Gabriele Ponzi, Senior Developer
@Gabriele_Ponzi
G.Ponzi> whoami
Senior developer at Arcade Analytics
MSc in Computer Science
Academic and work experience in Databases, Big Data and NoSQL
world, distributed data handling, information extraction and
visualisation
Passionate developer always been in love with cutting edge
technologies
Agenda
Goal: From relational to graph
Why and when perform analysis over a graph
Use cases good for graph analysis
Model Translation
From ER Model to Graph Model: mapping strategies
Demo
Goal: RDBMS as a graph
turn upside down your plain old RDBMS
explore relations as a graph
Why?
Joins are hard to write
Joins are for developers
Graph model is very close to the plain old normalized ER-model
Visual navigation is for human beings
Can perform Graph Algorithms on partial loaded data!
Data migration problems
Costs
Costs of importing into a graph database
Write custom process to export from RDBMS and import into a graph
Hard to keep in sync
work on OLD data
Time consuming
should wait for sync or import
Cost $$$ on maintenance
...then let’s avoid migration please!
...then let’s avoid migration please!
live queries are probably better!
Graph crash course
Graph
G = (V,E)
Graph: reference model
Property Graph Model
● Vertices
○ set of outgoing edges
○ set of incoming edges
○ collection of properties (key-value map)
● Edges
○ outgoing tail vertex
○ incoming head vertex
○ label that denotes the type of relationship
between its two vertices
○ collection of properties (key-value map)
Graph model crash course
Model pairwise relations between objects
Objects: “Nodes”, “Vertices”
Relations: “Edges”, “Arcs”, “Links”
Nodes (Vertices)
Objects in the graph, related by edges
Can contain information
Edges
Can be directed or undirected
Can store information, usually in the form of an edge “weight”
Use cases
Social media analysis
Forensic analysis
Recommendation
Algorithms
Shortest Path
Dijkstra
Page rank
Centrality
Modularity
Clustering, then max degree, min degree, average degree
Model translation
RDBMS Connector
How to perform a Graph Analysis over a data source
with a different data model?
RDBMS Connector
How to perform a Graph Analysis over a data source
with a different data model?
RDBMS Connector: General Workflow
RDBMS Connector: General Workflow
RDBMS Connector: General Workflow
RDBMS Connector: General Workflow
RDBMS Connector: General Workflow
Mapping strategies
Graph Model allows us to perform several optimisations
through the aggregation of some info.
Mapping strategies
Arcade provides two different strategies, each with a specific impact
on the mapping between the two domains:
naive strategy
naive-aggregate strategy
Mapping: naive strategy
Basic approach: E-R Model directly translated into a coherent Graph Model as
follows:
● Entity Vertex Type
● Relationship Edge Type
Pros:
● Fast
● Few mapping rules needed
Cons:
● Model overheads
Mapping: naive strategy
Naive strategy overhead
Mapping: naive aggregate strategy
Basic approach + aggregation: N-N Relationships are aggregated
● Entity Vertex Type
● Relationship Edge Type
● Join Table Aggregator Edge
Pros:
● Overhead decreasing
● Resulting graph is less complex, then analysis in simpler!
● Better performances
Cons:
● More mapping rules needed
Mapping: naive aggregate strategy
Strategies comparison
Strategies comparison
Naive strategy output Naive aggregate strategy output
Other useful model alterations
Aggregation of 1 or more
tables into a single Vertex
Type
Other useful model alterations
Aggregation of 1 or more
tables into a single Vertex
Type
Single table splitting into
multiple Vertex TypesOR
Other useful model alterations
Aggregation of 1 or more
tables into a single Vertex
Type
Single table splitting into
multiple Vertex TypesOR
Aggregation of 1 or more
Relationships into a single
Edge Type
Single Relationship splitting
into multiple Edge TypesOR
Other useful model alterations
Aggregation of 1 or more
tables into a single Vertex
Type
Single table splitting into
multiple Vertex TypesOR
Aggregation of 1 or more
Relationships into a single
Edge Type
Single Relationship splitting
into multiple Edge TypesOR
New Vertex or Edge Type definition could be useful too
Demo use case: DVD Rental
E-R Model
Demo use case: DVD Rental
Graph Model
(without aggregation)
Demo use case: DVD Rental
Graph Model
(without aggregation)
Demo time
Thanks for your attention!
Contact US
https://arcadeanalytics.com/
info@arcadeanalytics.com
+1 844-491-6161

More Related Content

Similar to Graph analysis over relational database (20)

PDF
Using A Distributed Graph Database To Make Sense Of Disparate Data Stores
InfiniteGraph
 
PDF
Graphing Grifters: Identify & Display Patterns of Corruption With Oracle Graph
Jim Czuprynski
 
PDF
Advanced Analytics: Graph Database Use Cases
DATAVERSITY
 
PDF
En un mundo hiperconectado, las bases de datos de grafos son tu arma secreta
javier ramirez
 
PDF
How To Model and Construct Graphs with Oracle Database (AskTOM Office Hours p...
Jean Ihm
 
PPTX
Using Graph Analysis and Fraud Detection in the Fintech Industry
Stanka Dalekova
 
PPTX
Using Graph Analysis and Fraud Detection in the Fintech Industry
Stanka Dalekova
 
PPTX
Follow the money with graphs
Stanka Dalekova
 
PDF
How Graph Databases used in Police Department?
Samet KILICTAS
 
PDF
Graph Gurus 23: Best Practices To Model Your Data Using A Graph Database
TigerGraph
 
PPTX
Graph Analytics
Khalid Salama
 
PDF
Graph analytic and machine learning
Stanley Wang
 
PPTX
DataStax | Network Analysis Adventure with DSE Graph, DataStax Studio, and Ti...
DataStax
 
ODP
How do You Graph
Ben Krug
 
PDF
Connecting the Dots—How a Graph Database Enables Discovery
Inside Analysis
 
PPTX
Graph Based Machine Learning on Relational Data
Benjamin Bengfort
 
PDF
Introduction to Property Graph Features (AskTOM Office Hours part 1)
Jean Ihm
 
PDF
201411203 goto night on graphs for fraud detection
Rik Van Bruggen
 
PDF
Leverage graph technologies to discover hidden insights in your EHS & Sustain...
iPoint BiS GmbH
 
PPTX
Graph databse.pptx
BARHAMMUSIC
 
Using A Distributed Graph Database To Make Sense Of Disparate Data Stores
InfiniteGraph
 
Graphing Grifters: Identify & Display Patterns of Corruption With Oracle Graph
Jim Czuprynski
 
Advanced Analytics: Graph Database Use Cases
DATAVERSITY
 
En un mundo hiperconectado, las bases de datos de grafos son tu arma secreta
javier ramirez
 
How To Model and Construct Graphs with Oracle Database (AskTOM Office Hours p...
Jean Ihm
 
Using Graph Analysis and Fraud Detection in the Fintech Industry
Stanka Dalekova
 
Using Graph Analysis and Fraud Detection in the Fintech Industry
Stanka Dalekova
 
Follow the money with graphs
Stanka Dalekova
 
How Graph Databases used in Police Department?
Samet KILICTAS
 
Graph Gurus 23: Best Practices To Model Your Data Using A Graph Database
TigerGraph
 
Graph Analytics
Khalid Salama
 
Graph analytic and machine learning
Stanley Wang
 
DataStax | Network Analysis Adventure with DSE Graph, DataStax Studio, and Ti...
DataStax
 
How do You Graph
Ben Krug
 
Connecting the Dots—How a Graph Database Enables Discovery
Inside Analysis
 
Graph Based Machine Learning on Relational Data
Benjamin Bengfort
 
Introduction to Property Graph Features (AskTOM Office Hours part 1)
Jean Ihm
 
201411203 goto night on graphs for fraud detection
Rik Van Bruggen
 
Leverage graph technologies to discover hidden insights in your EHS & Sustain...
iPoint BiS GmbH
 
Graph databse.pptx
BARHAMMUSIC
 

More from GraphRM (14)

PDF
A gentle introduction to random and strategic networks
GraphRM
 
PDF
How to leverage Kafka data streams with Neo4j
GraphRM
 
PDF
From zero to gremlin hero - Part I
GraphRM
 
PDF
Topology Visualization at Sysdig
GraphRM
 
PPTX
Tecniche per la Visualizzazione di Grafi di Grandi Dimensioni Basate sulla Co...
GraphRM
 
PDF
aRangodb, un package per l'utilizzo di ArangoDB con R
GraphRM
 
PDF
The power of the cosmos in a DB .... CosmosDB
GraphRM
 
PDF
OrientDB graph e l'importanza di una relazione mancante
GraphRM
 
PDF
Il "Knowledge Graph" della Pubblica Amministrazione Italiana
GraphRM
 
PDF
Elastic loves Graphs
GraphRM
 
PDF
From text to entities: Information Extraction in the Era of Knowledge Graphs
GraphRM
 
PDF
GraphRM - Introduzione al Graph modelling
GraphRM
 
PDF
GraphQL ♥︎ GraphDB
GraphRM
 
PDF
Costruiamo un motore di raccomandazione con Neo4J - Workshop 25/1/2018
GraphRM
 
A gentle introduction to random and strategic networks
GraphRM
 
How to leverage Kafka data streams with Neo4j
GraphRM
 
From zero to gremlin hero - Part I
GraphRM
 
Topology Visualization at Sysdig
GraphRM
 
Tecniche per la Visualizzazione di Grafi di Grandi Dimensioni Basate sulla Co...
GraphRM
 
aRangodb, un package per l'utilizzo di ArangoDB con R
GraphRM
 
The power of the cosmos in a DB .... CosmosDB
GraphRM
 
OrientDB graph e l'importanza di una relazione mancante
GraphRM
 
Il "Knowledge Graph" della Pubblica Amministrazione Italiana
GraphRM
 
Elastic loves Graphs
GraphRM
 
From text to entities: Information Extraction in the Era of Knowledge Graphs
GraphRM
 
GraphRM - Introduzione al Graph modelling
GraphRM
 
GraphQL ♥︎ GraphDB
GraphRM
 
Costruiamo un motore di raccomandazione con Neo4J - Workshop 25/1/2018
GraphRM
 
Ad

Recently uploaded (20)

PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
July Patch Tuesday
Ivanti
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Windsurf Meetup Ottawa 2025-07-12 - Planning Mode at Reliza.pdf
Pavel Shukhman
 
Ad

Graph analysis over relational database