SlideShare ist ein Scribd-Unternehmen logo
1 von 42
Downloaden Sie, um offline zu lesen
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Virtualizing Relational Databases as
Graphs: a multi-model approach
Juan F. Sequeda, Ph.D
Co-Founder
Capsenta
1
(i.e. Want Graphs? Have Relational? No Problem!)
Smart	
  Data/Graphorum Conference	
  – February	
  1,	
  2017
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Background
• Ph.D.	
  from	
  UT	
  Austin	
  Computer	
  Science
• Research	
  on	
  Integrating	
  Relational	
  Databases	
  
with	
  Semantics	
  and	
  Graphs
• Editor	
  W3C	
  Standard	
  on	
  Mapping	
  Relational	
  
Databases	
  to	
  Graphs
• Co-­‐Founder	
  Capsenta,	
  spinout	
  from	
  UTCS
2
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Takeaway
• Relational	
  Databases	
  can	
  be	
  virtualized	
  as	
  
Graphs!
• Do	
  you	
  really	
  need	
  to	
  create	
  another	
  
database?
3
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com 4
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Graphs	
  are	
  Cool!
5
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Flexible
6
:US_Constitution_1992/
section/123
“Excessive	
   bail	
  shall	
  not	
  
be	
  required,	
  nor	
  
excessive	
   fines	
  imposed,	
  
nor	
  cruel	
  and	
  unusual	
  
punishments	
   inflicted.”
:text
:US_Constitution_1992
“United	
   States	
   of	
  America	
  
1789	
  (rev.	
  1992)”
:text
:isSectionOf
:Cruelty
:hasTopic
“Prohibition	
  of	
  cruel	
  or	
  
degrading	
  treatment”
:label
“inhumane	
   treatment”
:keyword
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Integration
7
:US_Constitution_1992/
section/123
“Excessive	
   bail	
  shall	
   not	
  
be	
  required,	
   nor	
   excessive	
  
fines	
   imposed,	
   nor	
  cruel	
  
and	
  unusual	
   punishments	
  
inflicted.”
:text
:US_Constitution_1992
“United	
   States	
  of	
  America	
  
1789	
   (rev.	
  1992)”
:isSectionOf
:Cruelty
:hasTopic
“Prohibition	
   of	
  cruel	
   or	
  
degrading	
   treatment”
:label
“inhumane	
   treatment”
:keyword
:text
:EighthAmendment_US
Constitution
:Farmer_vs_Brennan
:lawsApplied
“A	
  prison	
   official’s	
  
‘deliberate	
   indifference’	
  
to	
  a	
  substantial	
   risk	
  of	
  a	
  
serious	
   harm	
   to	
  an	
  inmate	
   	
  
violates	
   the	
  Eighth	
  
Amendment”
:holding
:sameAs
:Prisons_in
_Indiana
:LGBT_right
_case_laws
:subject
:subject
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Data	
  and	
  Metadata	
  are	
  One
8
:US_Constitution_1992/
section/123
“Excessive	
   bail	
  shall	
   not	
  
be	
  required,	
   nor	
   excessive	
  
fines	
   imposed,	
   nor	
  cruel	
  
and	
  unusual	
   punishments	
  
inflicted.”
:text
:US_Constitution_1992
“United	
   States	
  of	
  America	
  
1789	
   (rev.	
  1992)”
:isSectionOf
:Cruelty
:hasTopic
“Prohibition	
   of	
  cruel	
   or	
  
degrading	
   treatment”
:label
“inhumane	
   treatment”
:keyword
:text
:Section :Constitution:Topic
:Rights
_and_
Duties
:Physical
_Integrity
_Rights
:subClass
:subClass
:subClass
:hasTopic :isSectionOf
:type
:type
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Common	
  denominator	
  
9
<constitution id=“US_Constitution_1992”>
<section id="US_Constitution_1992/section/123">
<text>Excessive bail shall ...</text>
</section>
<topic>Cruelty</topic>
</constitution>
“Excessive	
   bail	
  shall	
  not	
  be	
  
required,	
  nor	
  excessive	
   fines	
  
imposed,	
   nor	
  cruel and	
  unusual	
  
punishments	
   inflicted.”
id text topic
123 Excessive	
  bail	
  shall…	
   Cruelty
:US_Constitution_1992/
section/123
“Excessive	
   bail	
  shall	
   not	
  
be	
  required,	
   nor	
   excessive	
  
fines	
   imposed,	
   nor	
  cruel	
  
and	
  unusual	
   punishments	
  
inflicted.”
:text
:Cruelty
:hasTopic
XML Text
Tabular
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Traversal,	
  Navigation,	
  Reachability
10
:US_Constitution_1992/
section/123
“Excessive	
   bail	
  shall	
   not	
  
be	
  required,	
   nor	
   excessive	
  
fines	
   imposed,	
   nor	
  cruel	
  
and	
  unusual	
   punishments	
  
inflicted.”
:text
:US_Constitution_1992
“United	
   States	
  of	
  America	
  
1789	
   (rev.	
  1992)”
:isSectionOf
:Cruelty
:hasTopic
“Prohibition	
   of	
  cruel	
   or	
  
degrading	
   treatment”
:label
“inhumane	
   treatment”
:keyword
:text
:EighthAmendment_US
Constitution
:Farmer_vs_Brennan
:lawsApplied
“A	
  prison	
   official’s	
  
‘deliberate	
   indifference’	
  
to	
  a	
  substantial	
   risk	
  of	
  a	
  
serious	
   harm	
   to	
  an	
  inmate	
   	
  
violates	
   the	
  Eighth	
  
Amendment”
:holding
:sameAs
:Prisons_in
_Indiana
:LGBT_right
_case_laws
:subject
:subject
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Semantics
11
:US_Constitution_1992/
section/123
“Excessive	
   bail	
  shall	
   not	
  
be	
  required,	
   nor	
   excessive	
  
fines	
   imposed,	
   nor	
  cruel	
  
and	
  unusual	
   punishments	
  
inflicted.”
:text
:Cruelty
:hasTopic
“Prohibition	
   of	
  cruel	
   or	
  
degrading	
   treatment”
:label
“inhumane	
   treatment”
:keyword
:Physical
_Integrity
_Rights
:subClass
:hasTopic
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
(Summary)	
  Why	
  are	
  Graphs	
  Cool?
12
• Flexible
• Integration
• Data	
  and	
  Metadata	
  
are	
  one
• Common	
  Denominator
• Traversal,	
  Navigation,	
  
Reachability
• Semantics
ACM	
  Computing	
  Surveys	
  2008
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Are	
  Relational	
  Databases	
  cool?	
  
13
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Flexible
14
id attr1 attr2 attr3 attr4 … attrn …
id attribute value
id attr1 val1 attr2 val2 attr3 val3
id value
attr1
id value
attr2
id value
attr3
Copeland	
  and	
  Khoshafian.	
  A	
  
decomposition	
   storage	
  
model.	
   SIGMOD	
  1985
Agrawal	
  et	
  al.	
  Storage	
  and	
  
Querying	
  of	
  E-­‐Commerce	
  
Data.	
  VLDB	
   2001
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Integration
15
Extract
Transform
Load
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Data	
  and	
  Metadata	
  are	
  One
16
CREATE TABLE Person (
id int primary key,
Name varchar not null,
…
)
Company closePrice closeDate
IBM 130 1/15/2016
MSFT 50.99 1/15/2016
IBM MSFT closeDate
130 50.99 1/15/2016
closePrice closeDate
130 1/15/2016
closePrice closeDate
50.99 1/15/2016
IBM MSFT
-­‐ Krishnamurthy	
  et	
  al.	
  Language	
  features	
  for	
  interoperability	
  of	
  
databases	
  with	
  schematic	
  discrepancies.	
  SIGMOD	
  1991
-­‐ Lakshmanan et	
  al.	
  SchemaSQL -­‐ A	
  Language	
  for	
  Interoperability	
  
in	
  Relational	
  Multi-­‐database	
  Systems.	
  VLDB	
  1996
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Common	
  denominator	
  
• Social	
  Network
• Hierarchical	
  Data
17
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Traversal,	
  Navigation,	
  Reachability
• Write	
  a	
  bunch	
  of	
  Joins
• Recursion
18
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Semantics
• Views
• Triggers
19
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
(Summary)	
  Are	
  Relational	
  Databases	
  Cool?
• Flexible
• Integration
• Data	
  and	
  Metadata	
  are	
  one
• Common	
  Denominator
• Traversal,	
  Navigation,	
  Reachability
• Semantics
20
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Ditch	
  your	
  Relational	
  Database	
  and	
  
move	
  to	
  Graphs!?
Feasible?
21
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Query	
  Federation
What	
  if	
  …
22
Virtualize	
  Relational	
  
Databases	
  as	
  Graphs
Keep	
  your	
  legacy	
  data	
  
in	
  the	
  RDBMS
Run	
  graph	
  queries	
  over	
  the	
  
virtual	
  graph	
  data
Add	
  new	
  data	
  that	
  
doesn’t	
  fit	
  into	
  the	
  
schema	
  into	
  a	
  
separate	
  graph
Federate	
  queries	
  over	
  
Virtualized	
  Graph	
  and	
  
the	
  Real	
  Graph
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Query	
  Federation
What	
  if	
  …
23
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
What	
  type	
  of	
  graphs	
  are	
  we	
  
talking	
  about?
24
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Property	
  Graphs	
  vs	
  RDF	
  Graphs
25
:Bob :Alice
foaf:knows
“Bob	
  Smith”
foaf:name
“Alice	
  
Smith”
foaf:name
id1 id2
knowskey value
name Bob	
  
Smith
key value
name Alice
Smith
key value
since 2005
:g1
2005
:since
http://db-­‐engines.com/en/ranking/graph+dbms http://db-­‐engines.com/en/ranking/rdf+store
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
RDF:	
  Resource	
  Description	
  Framework
• Graph	
  Data	
  Model
• Subject	
  (Node)	
  – Predicate	
  (Edge)	
  – Object	
  (Node)
• W3C	
  Standard	
  for	
  data	
  on	
  the	
  web
• URIs
26
:US_Constitution_1992/
section/123
:US_Constitution_1992
“United	
   States	
  of	
  America	
  
1789	
   (rev.	
  1992)”
:isSectionOf
:text
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Schemas,	
  Taxonomies,	
  Ontologies
27
:Cruelty
:Section :Constitution:Topic
:Rights
_and_
Duties
:Physical
_Integrity
_Rights
:subClass
:subClass
:subClass
:hasTopic :isSectionOf
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
SELECT ?x ?title
WHERE{
?x :hasTopic :cruelty.
?x :text ?t
}
SPARQL	
  Graph
RDF	
  Graph
:USConst/146
:cruelty
:prerel
“Excesses	
  bail	
  shall	
  
not	
  be	
  required	
  …	
  “
:text
?x :cruelty
:hasTopic
?text
SPARQL	
  Protocol	
  and	
  RDF	
  Query	
  Language
28
SPARQL	
   is	
  a	
  Query	
  Language
• Graph	
  query	
  language	
   for	
  RDF
• Match	
   SPARQL	
  graph	
  with	
  RDF	
  graph
• Much	
  more	
  features	
  in	
  SPARQL	
  1.1:	
  
Property	
  Paths
SPARQL	
   is	
  a	
  Protocol
• Send	
  query	
  over	
  HTTP	
   GET	
  or	
  POST
• Response	
   to	
  a	
  query	
  is	
  either	
   in	
  XML,	
  JSON	
  
or	
  CSV	
  format
:text
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
SPARQL	
  Graph
RDF	
  Graph
:USConst/146
:cruelty
:prerel
“Excesses	
  bail	
  shall	
  
not	
  be	
  required	
  …	
  “
:text
?x :cruelty
:hasTopic
?text
:text
SPARQL	
  Protocol	
  and	
  RDF	
  Query	
  Language
29
?x ?text
:USConst/146 “Excesses	
  bail	
  
shall	
  not	
  be	
  
required	
  …	
  “
SELECT ?x ?title
WHERE{
?x :hasTopic :cruelty.
?x :text ?t
}
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Virtualizing	
  Relational	
  Databases	
  
as	
  Graphs
30
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Relational	
  Database	
  to	
  RDF	
  (RDB2RDF)
31
ID NAME AGE CID
1 Alice 25 100
2 Bob NULL 100
Person
CID NAME
100 Austin
200 Madrid
City
<Person/1>
<City/100>
Alice
25
Austin
<Person/2>
Bob
<City/200> Madrid
foaf:namefoaf:name foaf:age
rdfs:label
rdfs:label
foaf:based_near
Mapping
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
W3C	
  RDB2RDF	
  Standards
• W3C	
  Standards	
  to	
  map	
  Relational	
  Data	
  to	
  RDF
• A	
  Direct	
  Mapping	
  of	
  Relational	
  Data	
  to	
  RDF
– Default	
  automatic	
  mapping	
  of	
  relational	
  data	
  to	
  
RDF
• R2RML:	
  RDB	
  to	
  RDF	
  Mapping	
  Language
– Customizable	
  language	
  to	
  map	
  relational	
  data	
  to	
  
RDF
32
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
RDF
W3C	
  Direct	
  Mapping
33
Relational
Database
Direct	
  
Mapping
Engine
Input:	
  
Database	
  (Schema	
  and	
  Data)
Primary	
  Keys
Foreign	
  Keys
Output
RDF	
  graph
https://www.w3.org/TR/rdb-­‐direct-­‐mapping/
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
W3C	
  Direct	
  Mapping	
  Result
34
ID NAME AGE CID
1 Alice 25 100
2 Bob NULL 100
Person
CID NAME
100 Austin
200 Madrid
City
<Person/ID=1>
<City/CID=100>
Alice
25
Austin
<Person/ID=2>
Bob
<City/CID=200> Madrid
Person#Name Person#Age
City#Name
City#Name
Person#ref-­‐CID
Direct	
  Mapping
Person#Name
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
R2RML
35
R2RML
Engine
R2RML
File
:Cruelty
:Section :Constitution:Topic
:Rights
_and_
Duties
:Physical
_Integrity
_Rights
:subClass:subClass
:subClass
:hasTopic :isSectionOf
RDF
Relational
Database
Target	
  Schema
https://www.w3.org/TR/r2rml/
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
<TriplesMap1>
a rr:TriplesMap;
rr:logicalTable [ rr:tableName”Person" ];
rr:subjectMap [ rr:template
"http://www.ex.com/Person/{ID}";
rr:class
foaf:Person ];
rr:predicateObjectMap [
rr:predicate foaf:based_near ;
rr:objectMap [
rr:parentTripelMap <TripleMap2>;
rr:joinCondition [
rr:child “CID”;
rr:parent “CID”;
]
]
]
.
<TriplesMap2>
a rr:TriplesMap;
rr:logicalTable [ rr:tableName ”City" ];
rr:subjectMap [ rr:template "http://ex.com/City/{CID}";
rr:class ex:City ];
rr:predicateObjectMap [
rr:predicate foaf:name;
rr:objectMap [ rr:column ”TITLE" ]
]
.
Example	
  R2RML
36
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Graph	
  Data	
  Virtualization
37
SPARQL
RDBMS Graph
SQL
SQL	
  
Results
SPARQL
Results
R2RML	
  Mapping
by
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Performance	
  of	
  Ultrawrap
• Reuse	
  existing	
  relational	
  infrastructure
– 30+	
  years	
  of	
  optimizations
– Semantic	
  Query	
  Optimizations
• Result:	
  SPARQL	
  as	
  fast	
  as	
  SQL
38
Sequeda	
  J.	
  Integrating	
  Relational	
  Databases	
  with	
  the	
  Semantic	
  Web.	
  IOS	
  Press.	
  2016
http://www.iospress.nl/book/integrating-­‐relational-­‐databases-­‐with-­‐the-­‐semantic-­‐web/
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Demo
39
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Semantic	
  Data	
  Virtualization	
  as	
  a	
  Bridge	
  for	
  BI
40
HIVE
Impala,	
   etc
Oracle
SQL	
  
Server
Postgres
Unstructured
Semi-­‐
Structured
Enterprise	
  Knowledge	
  Graph
Search ReportsAPI
BI	
  Connectors
(Tableau,	
   …)
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
Takeaway:	
  Tipping	
  Point
41
Relational	
  Database
Graphs
• Flexible
• Integration
• Data	
  and	
  Metadata	
  are	
  One
• Common	
  Denominator
• Traversal,	
  Navigation,	
  Reachability	
  
• Semantics
Do	
  you	
  really	
  need	
  another	
  database?	
  
Relational	
  Databases	
  can	
  be	
  virtualized	
  as	
  Graphs
Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com
THANK	
  YOU
Juan	
  Sequeda,	
  Ph.D
Co-­‐Founder	
  – Capsenta
juan@capsenta.com
@juansequeda
42

Weitere ähnliche Inhalte

Was ist angesagt?

Semantic Technologies for Big Data
Semantic Technologies for Big DataSemantic Technologies for Big Data
Semantic Technologies for Big Data
Marin Dimitrov
 
Architecting for Big Data - Gartner Innovation Peer Forum Sept 2011
Architecting for Big Data - Gartner Innovation Peer Forum Sept 2011Architecting for Big Data - Gartner Innovation Peer Forum Sept 2011
Architecting for Big Data - Gartner Innovation Peer Forum Sept 2011
Jonathan Seidman
 

Was ist angesagt? (20)

Sustainability Investment Research Using Cognitive Analytics
Sustainability Investment Research Using Cognitive AnalyticsSustainability Investment Research Using Cognitive Analytics
Sustainability Investment Research Using Cognitive Analytics
 
Should a Graph Database Be in Your Next Data Warehouse Stack?
Should a Graph Database Be in Your Next Data Warehouse Stack?Should a Graph Database Be in Your Next Data Warehouse Stack?
Should a Graph Database Be in Your Next Data Warehouse Stack?
 
How to Build a Smart Data Lake Using Semantics
How to Build a Smart Data Lake Using SemanticsHow to Build a Smart Data Lake Using Semantics
How to Build a Smart Data Lake Using Semantics
 
Graph db
Graph dbGraph db
Graph db
 
Modern Data Discovery and Integration in Insurance
Modern Data Discovery and Integration in InsuranceModern Data Discovery and Integration in Insurance
Modern Data Discovery and Integration in Insurance
 
Enterprise Architecture in the Era of Big Data and Quantum Computing
Enterprise Architecture in the Era of Big Data and Quantum ComputingEnterprise Architecture in the Era of Big Data and Quantum Computing
Enterprise Architecture in the Era of Big Data and Quantum Computing
 
Open Data and News Analytics Demo
Open Data and News Analytics DemoOpen Data and News Analytics Demo
Open Data and News Analytics Demo
 
Graphs for Enterprise Architects
Graphs for Enterprise ArchitectsGraphs for Enterprise Architects
Graphs for Enterprise Architects
 
Going Beyond Rows and Columns with Graph Analytics
Going Beyond Rows and Columns with Graph AnalyticsGoing Beyond Rows and Columns with Graph Analytics
Going Beyond Rows and Columns with Graph Analytics
 
Democratizing Data at Airbnb
Democratizing Data at AirbnbDemocratizing Data at Airbnb
Democratizing Data at Airbnb
 
Semantic Technologies for Big Data
Semantic Technologies for Big DataSemantic Technologies for Big Data
Semantic Technologies for Big Data
 
The Business Case for Semantic Web Ontology & Knowledge Graph
The Business Case for Semantic Web Ontology & Knowledge GraphThe Business Case for Semantic Web Ontology & Knowledge Graph
The Business Case for Semantic Web Ontology & Knowledge Graph
 
Risk Analytics Using Knowledge Graphs / FIBO with Deep Learning
Risk Analytics Using Knowledge Graphs / FIBO with Deep LearningRisk Analytics Using Knowledge Graphs / FIBO with Deep Learning
Risk Analytics Using Knowledge Graphs / FIBO with Deep Learning
 
Architecting for Big Data - Gartner Innovation Peer Forum Sept 2011
Architecting for Big Data - Gartner Innovation Peer Forum Sept 2011Architecting for Big Data - Gartner Innovation Peer Forum Sept 2011
Architecting for Big Data - Gartner Innovation Peer Forum Sept 2011
 
The Graph Database Universe: Neo4j Overview
The Graph Database Universe: Neo4j OverviewThe Graph Database Universe: Neo4j Overview
The Graph Database Universe: Neo4j Overview
 
Scalable, Fast Analytics with Graph - Why and How
Scalable, Fast Analytics with Graph - Why and HowScalable, Fast Analytics with Graph - Why and How
Scalable, Fast Analytics with Graph - Why and How
 
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
AnzoGraph DB: Driving AI and Machine Insights with Knowledge Graphs in a Conn...
 
Bitkom Cray presentation - on HPC affecting big data analytics in FS
Bitkom Cray presentation - on HPC affecting big data analytics in FSBitkom Cray presentation - on HPC affecting big data analytics in FS
Bitkom Cray presentation - on HPC affecting big data analytics in FS
 
Solution architecture for big data projects
Solution architecture for big data projectsSolution architecture for big data projects
Solution architecture for big data projects
 
Smart Data Webinar: Organizing Data and Knowledge - The Role of Taxonomies an...
Smart Data Webinar: Organizing Data and Knowledge - The Role of Taxonomies an...Smart Data Webinar: Organizing Data and Knowledge - The Role of Taxonomies an...
Smart Data Webinar: Organizing Data and Knowledge - The Role of Taxonomies an...
 

Ähnlich wie Virtualizing Relational Databases as Graphs: a multi-model approach

Ähnlich wie Virtualizing Relational Databases as Graphs: a multi-model approach (20)

Operational Analytics Using Spark and NoSQL Data Stores
Operational Analytics Using Spark and NoSQL Data StoresOperational Analytics Using Spark and NoSQL Data Stores
Operational Analytics Using Spark and NoSQL Data Stores
 
Road Map for Careers in Big Data
Road Map for Careers in Big DataRoad Map for Careers in Big Data
Road Map for Careers in Big Data
 
The Rise of Intelligent Content Services
The Rise of Intelligent Content ServicesThe Rise of Intelligent Content Services
The Rise of Intelligent Content Services
 
Transforming Data Management and Time to Insight with Anzo Smart Data Lake®
Transforming Data Management and Time to Insight with Anzo Smart Data Lake®Transforming Data Management and Time to Insight with Anzo Smart Data Lake®
Transforming Data Management and Time to Insight with Anzo Smart Data Lake®
 
Data centric business and knowledge graph trends
Data centric business and knowledge graph trendsData centric business and knowledge graph trends
Data centric business and knowledge graph trends
 
Docker Summit MongoDB - Data Democratization
Docker Summit MongoDB - Data Democratization Docker Summit MongoDB - Data Democratization
Docker Summit MongoDB - Data Democratization
 
Advanced Databases and Knowledge Management
Advanced Databases and Knowledge ManagementAdvanced Databases and Knowledge Management
Advanced Databases and Knowledge Management
 
Powering Real-Time Analytics with Data Virtualization on AWS (ASEAN & ANZ)
Powering Real-Time Analytics with Data Virtualization on AWS (ASEAN & ANZ)Powering Real-Time Analytics with Data Virtualization on AWS (ASEAN & ANZ)
Powering Real-Time Analytics with Data Virtualization on AWS (ASEAN & ANZ)
 
Deploying Enterprise Scale Deep Learning in Actuarial Modeling at Nationwide
Deploying Enterprise Scale Deep Learning in Actuarial Modeling at NationwideDeploying Enterprise Scale Deep Learning in Actuarial Modeling at Nationwide
Deploying Enterprise Scale Deep Learning in Actuarial Modeling at Nationwide
 
Webinar - Fighting Bank Fraud with Real-time Graph Database
Webinar - Fighting Bank Fraud with Real-time Graph Database Webinar - Fighting Bank Fraud with Real-time Graph Database
Webinar - Fighting Bank Fraud with Real-time Graph Database
 
Denodo DataFest 2016: The Governed Data Lake – Putting Big Data to Work
Denodo DataFest 2016: The Governed Data Lake – Putting Big Data to WorkDenodo DataFest 2016: The Governed Data Lake – Putting Big Data to Work
Denodo DataFest 2016: The Governed Data Lake – Putting Big Data to Work
 
Organising the Data Lake - Information Management in a Big Data World
Organising the Data Lake - Information Management in a Big Data WorldOrganising the Data Lake - Information Management in a Big Data World
Organising the Data Lake - Information Management in a Big Data World
 
Modern Data Discovery and Integration in Retail Banking
Modern Data Discovery and Integration in Retail BankingModern Data Discovery and Integration in Retail Banking
Modern Data Discovery and Integration in Retail Banking
 
Is your data paying you dividends?
Is your data paying you dividends? Is your data paying you dividends?
Is your data paying you dividends?
 
A6 big data_in_the_cloud
A6 big data_in_the_cloudA6 big data_in_the_cloud
A6 big data_in_the_cloud
 
Delivering Self-Service Analytics using Big Data and Data Virtualization on t...
Delivering Self-Service Analytics using Big Data and Data Virtualization on t...Delivering Self-Service Analytics using Big Data and Data Virtualization on t...
Delivering Self-Service Analytics using Big Data and Data Virtualization on t...
 
Insights into Real-world Data Management Challenges
Insights into Real-world Data Management ChallengesInsights into Real-world Data Management Challenges
Insights into Real-world Data Management Challenges
 
Women in Big Data
Women in Big DataWomen in Big Data
Women in Big Data
 
Business Centric Data Modeling
Business Centric Data ModelingBusiness Centric Data Modeling
Business Centric Data Modeling
 
Big and fast data strategy 2017 jr
Big and fast data strategy 2017 jrBig and fast data strategy 2017 jr
Big and fast data strategy 2017 jr
 

Mehr von Juan Sequeda

WTF is the Semantic Web
WTF is the Semantic WebWTF is the Semantic Web
WTF is the Semantic Web
Juan Sequeda
 
Drupal 7 and Semantic Web Hands-on Tutorial
Drupal 7 and Semantic Web Hands-on TutorialDrupal 7 and Semantic Web Hands-on Tutorial
Drupal 7 and Semantic Web Hands-on Tutorial
Juan Sequeda
 
Consuming Linked Data 4/5 Semtech2011
Consuming Linked Data 4/5 Semtech2011Consuming Linked Data 4/5 Semtech2011
Consuming Linked Data 4/5 Semtech2011
Juan Sequeda
 
Publishing Linked Data 3/5 Semtech2011
Publishing Linked Data 3/5 Semtech2011Publishing Linked Data 3/5 Semtech2011
Publishing Linked Data 3/5 Semtech2011
Juan Sequeda
 
Introduction to Linked Data 1/5
Introduction to Linked Data 1/5Introduction to Linked Data 1/5
Introduction to Linked Data 1/5
Juan Sequeda
 
Creating Linked Data 2/5 Semtech2011
Creating Linked Data 2/5 Semtech2011Creating Linked Data 2/5 Semtech2011
Creating Linked Data 2/5 Semtech2011
Juan Sequeda
 

Mehr von Juan Sequeda (20)

RDB2RDF Tutorial (R2RML and Direct Mapping) at ISWC 2013
RDB2RDF Tutorial (R2RML and Direct Mapping) at ISWC 2013RDB2RDF Tutorial (R2RML and Direct Mapping) at ISWC 2013
RDB2RDF Tutorial (R2RML and Direct Mapping) at ISWC 2013
 
Linked Data tutorial at Semtech 2012
Linked Data tutorial at Semtech 2012Linked Data tutorial at Semtech 2012
Linked Data tutorial at Semtech 2012
 
WTF is the Semantic Web and Linked Data
WTF is the Semantic Web and Linked DataWTF is the Semantic Web and Linked Data
WTF is the Semantic Web and Linked Data
 
WTF is the Semantic Web
WTF is the Semantic WebWTF is the Semantic Web
WTF is the Semantic Web
 
Drupal 7 and Semantic Web Hands-on Tutorial
Drupal 7 and Semantic Web Hands-on TutorialDrupal 7 and Semantic Web Hands-on Tutorial
Drupal 7 and Semantic Web Hands-on Tutorial
 
Free Money (a.k.a Fellowships)
Free Money (a.k.a Fellowships)Free Money (a.k.a Fellowships)
Free Money (a.k.a Fellowships)
 
Consuming Linked Data 4/5 Semtech2011
Consuming Linked Data 4/5 Semtech2011Consuming Linked Data 4/5 Semtech2011
Consuming Linked Data 4/5 Semtech2011
 
Publishing Linked Data 3/5 Semtech2011
Publishing Linked Data 3/5 Semtech2011Publishing Linked Data 3/5 Semtech2011
Publishing Linked Data 3/5 Semtech2011
 
Introduction to Linked Data 1/5
Introduction to Linked Data 1/5Introduction to Linked Data 1/5
Introduction to Linked Data 1/5
 
Welcome to Linked Data 0/5 Semtech2011
Welcome to Linked Data 0/5 Semtech2011Welcome to Linked Data 0/5 Semtech2011
Welcome to Linked Data 0/5 Semtech2011
 
Creating Linked Data 2/5 Semtech2011
Creating Linked Data 2/5 Semtech2011Creating Linked Data 2/5 Semtech2011
Creating Linked Data 2/5 Semtech2011
 
Introduccion a la Web Semantica
Introduccion a la Web SemanticaIntroduccion a la Web Semantica
Introduccion a la Web Semantica
 
What is the Semantic Web
What is the Semantic WebWhat is the Semantic Web
What is the Semantic Web
 
Consuming Linked Data SemTech2010
Consuming Linked Data SemTech2010Consuming Linked Data SemTech2010
Consuming Linked Data SemTech2010
 
Welcome to Consuming Linked Data tutorial WWW2010
Welcome to Consuming Linked Data tutorial WWW2010Welcome to Consuming Linked Data tutorial WWW2010
Welcome to Consuming Linked Data tutorial WWW2010
 
Introduction to Linked Data - WWW2010
Introduction to Linked Data - WWW2010 Introduction to Linked Data - WWW2010
Introduction to Linked Data - WWW2010
 
Consuming Linked Data by Humans - WWW2010
Consuming Linked Data by Humans - WWW2010Consuming Linked Data by Humans - WWW2010
Consuming Linked Data by Humans - WWW2010
 
Consuming Linked Data by Machines - WWW2010
Consuming Linked Data by Machines - WWW2010Consuming Linked Data by Machines - WWW2010
Consuming Linked Data by Machines - WWW2010
 
Linked Data Applications - WWW2010
Linked Data Applications - WWW2010Linked Data Applications - WWW2010
Linked Data Applications - WWW2010
 
Open Research Problems in Linked Data - WWW2010
Open Research Problems in Linked Data - WWW2010Open Research Problems in Linked Data - WWW2010
Open Research Problems in Linked Data - WWW2010
 

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

Virtualizing Relational Databases as Graphs: a multi-model approach

  • 1. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Virtualizing Relational Databases as Graphs: a multi-model approach Juan F. Sequeda, Ph.D Co-Founder Capsenta 1 (i.e. Want Graphs? Have Relational? No Problem!) Smart  Data/Graphorum Conference  – February  1,  2017
  • 2. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Background • Ph.D.  from  UT  Austin  Computer  Science • Research  on  Integrating  Relational  Databases   with  Semantics  and  Graphs • Editor  W3C  Standard  on  Mapping  Relational   Databases  to  Graphs • Co-­‐Founder  Capsenta,  spinout  from  UTCS 2
  • 3. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Takeaway • Relational  Databases  can  be  virtualized  as   Graphs! • Do  you  really  need  to  create  another   database? 3
  • 4. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com 4
  • 5. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Graphs  are  Cool! 5
  • 6. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Flexible 6 :US_Constitution_1992/ section/123 “Excessive   bail  shall  not   be  required,  nor   excessive   fines  imposed,   nor  cruel  and  unusual   punishments   inflicted.” :text :US_Constitution_1992 “United   States   of  America   1789  (rev.  1992)” :text :isSectionOf :Cruelty :hasTopic “Prohibition  of  cruel  or   degrading  treatment” :label “inhumane   treatment” :keyword
  • 7. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Integration 7 :US_Constitution_1992/ section/123 “Excessive   bail  shall   not   be  required,   nor   excessive   fines   imposed,   nor  cruel   and  unusual   punishments   inflicted.” :text :US_Constitution_1992 “United   States  of  America   1789   (rev.  1992)” :isSectionOf :Cruelty :hasTopic “Prohibition   of  cruel   or   degrading   treatment” :label “inhumane   treatment” :keyword :text :EighthAmendment_US Constitution :Farmer_vs_Brennan :lawsApplied “A  prison   official’s   ‘deliberate   indifference’   to  a  substantial   risk  of  a   serious   harm   to  an  inmate     violates   the  Eighth   Amendment” :holding :sameAs :Prisons_in _Indiana :LGBT_right _case_laws :subject :subject
  • 8. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Data  and  Metadata  are  One 8 :US_Constitution_1992/ section/123 “Excessive   bail  shall   not   be  required,   nor   excessive   fines   imposed,   nor  cruel   and  unusual   punishments   inflicted.” :text :US_Constitution_1992 “United   States  of  America   1789   (rev.  1992)” :isSectionOf :Cruelty :hasTopic “Prohibition   of  cruel   or   degrading   treatment” :label “inhumane   treatment” :keyword :text :Section :Constitution:Topic :Rights _and_ Duties :Physical _Integrity _Rights :subClass :subClass :subClass :hasTopic :isSectionOf :type :type
  • 9. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Common  denominator   9 <constitution id=“US_Constitution_1992”> <section id="US_Constitution_1992/section/123"> <text>Excessive bail shall ...</text> </section> <topic>Cruelty</topic> </constitution> “Excessive   bail  shall  not  be   required,  nor  excessive   fines   imposed,   nor  cruel and  unusual   punishments   inflicted.” id text topic 123 Excessive  bail  shall…   Cruelty :US_Constitution_1992/ section/123 “Excessive   bail  shall   not   be  required,   nor   excessive   fines   imposed,   nor  cruel   and  unusual   punishments   inflicted.” :text :Cruelty :hasTopic XML Text Tabular
  • 10. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Traversal,  Navigation,  Reachability 10 :US_Constitution_1992/ section/123 “Excessive   bail  shall   not   be  required,   nor   excessive   fines   imposed,   nor  cruel   and  unusual   punishments   inflicted.” :text :US_Constitution_1992 “United   States  of  America   1789   (rev.  1992)” :isSectionOf :Cruelty :hasTopic “Prohibition   of  cruel   or   degrading   treatment” :label “inhumane   treatment” :keyword :text :EighthAmendment_US Constitution :Farmer_vs_Brennan :lawsApplied “A  prison   official’s   ‘deliberate   indifference’   to  a  substantial   risk  of  a   serious   harm   to  an  inmate     violates   the  Eighth   Amendment” :holding :sameAs :Prisons_in _Indiana :LGBT_right _case_laws :subject :subject
  • 11. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Semantics 11 :US_Constitution_1992/ section/123 “Excessive   bail  shall   not   be  required,   nor   excessive   fines   imposed,   nor  cruel   and  unusual   punishments   inflicted.” :text :Cruelty :hasTopic “Prohibition   of  cruel   or   degrading   treatment” :label “inhumane   treatment” :keyword :Physical _Integrity _Rights :subClass :hasTopic
  • 12. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com (Summary)  Why  are  Graphs  Cool? 12 • Flexible • Integration • Data  and  Metadata   are  one • Common  Denominator • Traversal,  Navigation,   Reachability • Semantics ACM  Computing  Surveys  2008
  • 13. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Are  Relational  Databases  cool?   13
  • 14. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Flexible 14 id attr1 attr2 attr3 attr4 … attrn … id attribute value id attr1 val1 attr2 val2 attr3 val3 id value attr1 id value attr2 id value attr3 Copeland  and  Khoshafian.  A   decomposition   storage   model.   SIGMOD  1985 Agrawal  et  al.  Storage  and   Querying  of  E-­‐Commerce   Data.  VLDB   2001
  • 15. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Integration 15 Extract Transform Load
  • 16. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Data  and  Metadata  are  One 16 CREATE TABLE Person ( id int primary key, Name varchar not null, … ) Company closePrice closeDate IBM 130 1/15/2016 MSFT 50.99 1/15/2016 IBM MSFT closeDate 130 50.99 1/15/2016 closePrice closeDate 130 1/15/2016 closePrice closeDate 50.99 1/15/2016 IBM MSFT -­‐ Krishnamurthy  et  al.  Language  features  for  interoperability  of   databases  with  schematic  discrepancies.  SIGMOD  1991 -­‐ Lakshmanan et  al.  SchemaSQL -­‐ A  Language  for  Interoperability   in  Relational  Multi-­‐database  Systems.  VLDB  1996
  • 17. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Common  denominator   • Social  Network • Hierarchical  Data 17
  • 18. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Traversal,  Navigation,  Reachability • Write  a  bunch  of  Joins • Recursion 18
  • 19. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Semantics • Views • Triggers 19
  • 20. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com (Summary)  Are  Relational  Databases  Cool? • Flexible • Integration • Data  and  Metadata  are  one • Common  Denominator • Traversal,  Navigation,  Reachability • Semantics 20
  • 21. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Ditch  your  Relational  Database  and   move  to  Graphs!? Feasible? 21
  • 22. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Query  Federation What  if  … 22 Virtualize  Relational   Databases  as  Graphs Keep  your  legacy  data   in  the  RDBMS Run  graph  queries  over  the   virtual  graph  data Add  new  data  that   doesn’t  fit  into  the   schema  into  a   separate  graph Federate  queries  over   Virtualized  Graph  and   the  Real  Graph
  • 23. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Query  Federation What  if  … 23
  • 24. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com What  type  of  graphs  are  we   talking  about? 24
  • 25. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Property  Graphs  vs  RDF  Graphs 25 :Bob :Alice foaf:knows “Bob  Smith” foaf:name “Alice   Smith” foaf:name id1 id2 knowskey value name Bob   Smith key value name Alice Smith key value since 2005 :g1 2005 :since http://db-­‐engines.com/en/ranking/graph+dbms http://db-­‐engines.com/en/ranking/rdf+store
  • 26. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com RDF:  Resource  Description  Framework • Graph  Data  Model • Subject  (Node)  – Predicate  (Edge)  – Object  (Node) • W3C  Standard  for  data  on  the  web • URIs 26 :US_Constitution_1992/ section/123 :US_Constitution_1992 “United   States  of  America   1789   (rev.  1992)” :isSectionOf :text
  • 27. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Schemas,  Taxonomies,  Ontologies 27 :Cruelty :Section :Constitution:Topic :Rights _and_ Duties :Physical _Integrity _Rights :subClass :subClass :subClass :hasTopic :isSectionOf
  • 28. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com SELECT ?x ?title WHERE{ ?x :hasTopic :cruelty. ?x :text ?t } SPARQL  Graph RDF  Graph :USConst/146 :cruelty :prerel “Excesses  bail  shall   not  be  required  …  “ :text ?x :cruelty :hasTopic ?text SPARQL  Protocol  and  RDF  Query  Language 28 SPARQL   is  a  Query  Language • Graph  query  language   for  RDF • Match   SPARQL  graph  with  RDF  graph • Much  more  features  in  SPARQL  1.1:   Property  Paths SPARQL   is  a  Protocol • Send  query  over  HTTP   GET  or  POST • Response   to  a  query  is  either   in  XML,  JSON   or  CSV  format :text
  • 29. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com SPARQL  Graph RDF  Graph :USConst/146 :cruelty :prerel “Excesses  bail  shall   not  be  required  …  “ :text ?x :cruelty :hasTopic ?text :text SPARQL  Protocol  and  RDF  Query  Language 29 ?x ?text :USConst/146 “Excesses  bail   shall  not  be   required  …  “ SELECT ?x ?title WHERE{ ?x :hasTopic :cruelty. ?x :text ?t }
  • 30. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Virtualizing  Relational  Databases   as  Graphs 30
  • 31. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Relational  Database  to  RDF  (RDB2RDF) 31 ID NAME AGE CID 1 Alice 25 100 2 Bob NULL 100 Person CID NAME 100 Austin 200 Madrid City <Person/1> <City/100> Alice 25 Austin <Person/2> Bob <City/200> Madrid foaf:namefoaf:name foaf:age rdfs:label rdfs:label foaf:based_near Mapping
  • 32. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com W3C  RDB2RDF  Standards • W3C  Standards  to  map  Relational  Data  to  RDF • A  Direct  Mapping  of  Relational  Data  to  RDF – Default  automatic  mapping  of  relational  data  to   RDF • R2RML:  RDB  to  RDF  Mapping  Language – Customizable  language  to  map  relational  data  to   RDF 32
  • 33. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com RDF W3C  Direct  Mapping 33 Relational Database Direct   Mapping Engine Input:   Database  (Schema  and  Data) Primary  Keys Foreign  Keys Output RDF  graph https://www.w3.org/TR/rdb-­‐direct-­‐mapping/
  • 34. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com W3C  Direct  Mapping  Result 34 ID NAME AGE CID 1 Alice 25 100 2 Bob NULL 100 Person CID NAME 100 Austin 200 Madrid City <Person/ID=1> <City/CID=100> Alice 25 Austin <Person/ID=2> Bob <City/CID=200> Madrid Person#Name Person#Age City#Name City#Name Person#ref-­‐CID Direct  Mapping Person#Name
  • 35. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com R2RML 35 R2RML Engine R2RML File :Cruelty :Section :Constitution:Topic :Rights _and_ Duties :Physical _Integrity _Rights :subClass:subClass :subClass :hasTopic :isSectionOf RDF Relational Database Target  Schema https://www.w3.org/TR/r2rml/
  • 36. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com <TriplesMap1> a rr:TriplesMap; rr:logicalTable [ rr:tableName”Person" ]; rr:subjectMap [ rr:template "http://www.ex.com/Person/{ID}"; rr:class foaf:Person ]; rr:predicateObjectMap [ rr:predicate foaf:based_near ; rr:objectMap [ rr:parentTripelMap <TripleMap2>; rr:joinCondition [ rr:child “CID”; rr:parent “CID”; ] ] ] . <TriplesMap2> a rr:TriplesMap; rr:logicalTable [ rr:tableName ”City" ]; rr:subjectMap [ rr:template "http://ex.com/City/{CID}"; rr:class ex:City ]; rr:predicateObjectMap [ rr:predicate foaf:name; rr:objectMap [ rr:column ”TITLE" ] ] . Example  R2RML 36
  • 37. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Graph  Data  Virtualization 37 SPARQL RDBMS Graph SQL SQL   Results SPARQL Results R2RML  Mapping by
  • 38. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Performance  of  Ultrawrap • Reuse  existing  relational  infrastructure – 30+  years  of  optimizations – Semantic  Query  Optimizations • Result:  SPARQL  as  fast  as  SQL 38 Sequeda  J.  Integrating  Relational  Databases  with  the  Semantic  Web.  IOS  Press.  2016 http://www.iospress.nl/book/integrating-­‐relational-­‐databases-­‐with-­‐the-­‐semantic-­‐web/
  • 39. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Demo 39
  • 40. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Semantic  Data  Virtualization  as  a  Bridge  for  BI 40 HIVE Impala,   etc Oracle SQL   Server Postgres Unstructured Semi-­‐ Structured Enterprise  Knowledge  Graph Search ReportsAPI BI  Connectors (Tableau,   …)
  • 41. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com Takeaway:  Tipping  Point 41 Relational  Database Graphs • Flexible • Integration • Data  and  Metadata  are  One • Common  Denominator • Traversal,  Navigation,  Reachability   • Semantics Do  you  really  need  another  database?   Relational  Databases  can  be  virtualized  as  Graphs
  • 42. Smart Data for Smarter Business | © 2016 Capsenta | capsenta.com THANK  YOU Juan  Sequeda,  Ph.D Co-­‐Founder  – Capsenta juan@capsenta.com @juansequeda 42