SlideShare a Scribd company logo
1 of 43
Download to read offline
Scalable Knowledge Graphs
with the new
Distributed AllegroGraph 7.0
Dr. Jans Aasman
(allegrograph.com)
And Gruff 8.0 in the Browser
Topic for today:
[1] Gruff 8.0 in the Browser.
[2] AllegroGraph Free and Enterprise Edition on AWS
[3] Distributed AllegroGraph
• Our customers and partners believe in
• Data Centric Computing
• Entity Event based Knowledge Graphs
• Distributed AllegroGraph supports DCC and EEKG
• Some Benchmarking
Gruff 8.0 (aka: Gruff in the Browser)
• A common customer request for the last years:
Please port Gruff to the Browser.
• We ported the graphics layer Gruff to HTML5,
the same code base runs the standalone and GruffJS
version
• In many ways faster than the thick client
[all the data copying happens locally on the server]
If you feel the urge to try it out:
Or work with it locally
• Allegrograph.com/downloads
Distributed AllegroGraph 7.0
• Inspired by a telecom CRM use case with Amdocs
• Heavily tested in production at Montefiore hospital
• Now also use cases in a call center, finance, and marketing.
• Most useful in you believe in
• Data Centric Computing
• And Entity/Event based Knowledge Graphs
• Semantic Technology
Data Centric Computing
Data centric refers to an architecture where data is the
primary and permanent asset, and applications come and
go. In the data centric architecture, the data model
precedes the implementation of any given application and
will be around and valid long after it is gone.
Many think this is what happens now but it rarely happens
this way. Businesses want functionality, and they purchase or
build application systems. Each application system has its
own data model, and its code is inextricably tied with this
data model. It is extremely difficult to change the data
model of an implemented application system.
Of course, this application is only one of hundreds or
thousands of such …. Each application on its own has
hundreds to thousands of tables and tens of thousands of
attributes.These applications are very partially and very
unstably “interfaced” to one another through some
middleware …
The data centric approach turns
all this on its head.There is a
semantic data model and each
bit of application functionality
reads and writes through the
shared model
Data Centric Computing and an event based
knowledge graph in healthcare
Knowledge Graph Roadmap in Montefiore
• Developed using grant funding (NHLBI, PCORI, and ICTR) and Intel/Franz collaboration
• Fully integrated with Epic, and hosted by MIT Data Center.
• Go-Live January 2017 with Respiratory Failure and Mortality Prediction à Prevention
• C: Sepsis, HF, Spinal Cord Compression (etc) all with associated ROI
• Wide and multi-disciplinary spectrum of applications confirms a platform approach
2017 2021
Respiratory Failure
Mortality
Sepsis
Heart Failure
Spinal Cord
Compression
Fractures,
Osteoporosis
Outpatient
Appointments
Malpractice
ED utilization
Discharge,
Bed Reassignment
Net Revenue
Per Encounter
Claim Rejection
Prevention
Proprietary and Confidential, Copyright 2018 © Montefiore Health System, All Rights Reserved
Events directly connect to Entity
The KG provides radical simplification of the EDW schema:
we turn everything into an EVENT
• Healthcare: everything that can happen to a patient is a time based (sub) event:
Check In, Check Out, Test, Diagnosis, Procedure, Medication administration,
Medication order, Sensor reading for vital signs, Invoice, Bill payment, Non-bill
payment, all insurance interactions.
• Telecom: everything that happens with a telco user is a time based (sub) event:
telephone call, sms, whatsapp, web site visit, location record, crm call, bill pay,
non-bill pay …
• Even your demographic features are events (names, address, etc)
• From thousands of tables to one event table (well, graph)
Entity Event Knowledge Graphs implement DCC
Core features of the EEKG
• Entities and Events are represented as Hierarchical Trees
• Entity-Event trees are logically and physically grouped
• The tree terminates in a knowledge base for enterprise
taxonomies, thesauri, and domain knowledge
Structured patient data combined with complex
integrated terminologyPatient Data
OMOP
MTH
Snomed CT
ICD9/ICD10
The entity-event tree in Healthcare
• Line 1
The entity-event tree in a Telco
Benefit: Easy to understand the model, easy to do
complex queries
Benefit: provide 360 overview in milliseconds and in a
one-liner
Benefit: One time mapping and ETL
• But no big bang required:
• EEKG can be built
incrementally
• Start with an ontology of your core entities and events
• Start with a knowledge graph that contains your digital assets
• Then map input-streams or table/columns to a small target ontology of
entities and events.
Benefit: Provenance at every level
Security for every triple (edge)
Triple Attributes
• Every triple can have arbitrary number of key/value pairs.
• Meets requirements of government security model & HIPAA
And one incredible benefit
• Enables horizontal scaling through sharding
• 4th element or triple attribute becomes sharding key
Distributed AllegroGraph with Fedshard™
• Entity-Event trees go into shards
with entity-id as shard key
• Shards get federated with
non-shardable knowledge bases.
First something about AllegroGraph Federation
• Open multiple repositories at the same time
• Use virtual cursors that issue ‘get-triple :s :p :o :g’ queries to each repo.
• SPARQL doesn’t even need to know that it is talking to multiple sources
dbpedia geonames Census
2000
Federated store
sparql
Example of AllegroGraph Federation
• What is the medium income of the area where Barack
Obama was born?
• What does it do:
• Find in dbpedia Obama’s birth place and its geonameID
• Then find in geonames the geonamesIDs within ten miles of the place above
• Then find in census2000 the mediumIncomeAbove16YearsAndOlder for
each of those IDs
A quick demo
Open up multiple repos at the same time
After opening it is about 1.6 B statements
We use this federation in AG-7.0
Shard
#1
Knowledge Base #1
Federation
#1
ShardShard Shard Shard
Shard
#n
Knowledge Base #2 Knowledge Base #3
Federation
#n
Non Shardable
Knowledge
Shardable data
Federation
AllegroGraph Distributed Architecture
Server 1 Server 2 Server 3
●●
●
Scalability experiment with hospital data
Cluster:
• The cluster consists of 8 nodes. Each node has 256 Gig of RAM and 10 T of
spinning disk
• Each node runs one AllegroGraph server, and per server we have 4 patient
repositories or 'shards’
• Each shard contains about 550 M triples = 17.7 Billion triples total
Supermicro:
• 500 Gig of Ram and runs entirely on SSDs. We tested max IO and we got to
120,000 IOs per second
• This is a single repository containing all patients plus the terminology system.
HOWEVER: I deleted all the provenance triples because keeping those in the
database made queries slower. About 4 billion triples.
Scalability Examples
• Attrition: answer how many patients did we lose (for any reason) from the
year 2010 to the year 2011. This is a medium complexity query as it
contains some interesting unions, joins, and filters.
• Demographics: look up demographics for all patients, low complexity.
• Diagnostics: look up every diagnostic in the database for
inpatient/outpatient encounters to feed diagnostics., low complexity.
• CDRN: an example of a medium to high complexity ETL query used for
the NYC CDRN project.
Scalability Numbers
Query performance on the 38 PC queries to feed
machine learning pipeline
• Yes: everything gets a lot faster on the cluster
• We need to optimize based on # of partitions and # of cpus
So: can I check how busy the cluster is?
6 seconds of
38 proofcheck
queries
Concluding [1]
Concluding [2]
• If you believe in
• The Data Centric Computing Approach
• Entity Event Knowledge Graphs
• Semantics
• Then try it out for yourself
• Call us and we get you on your way
• And: try our demo server at: gruff.allegrograph.com:10035
Documents: JSON, JSON-LD Graphs: RDF, Quads, Properties
Storage: Triple Attributes, Security Filters, Compression, Indexing, Full-text
Transactions: “Real” ACID, 2 Phase Commit
Management: Security, Multi-Master Replication, Backup/Restore, Warm Failover
Stored Procs:
JavaScript
Lisp
Prolog
SPARQL
Magic Predicates
Reasoning:
RDFS++
OWL2-RL
Prolog
Probabilistic
NLP:
Taxonomies
Entity Extract
Text Classify
Sentiment
Machine
Learning
Speech
Recognition
ETL:
RDBMS
CSV
TEXT
NoSQL
Events:
Geospatial
Temporal
Social
REST GUI: GRUFF/AGWebView
Java Python Lisp
Built-In Integrations
Cloud:
Amazon AWS
Microsoft Azure
Data Science:
Anaconda
R Studio
Knowledge:
Linked Open Data
Editors:
Ontology, Taxonomy
NoSQL:
Cloudera, MongoDB,
Solr
Containers:
Docker, VMWare
Massively Parallel - Federation and Sharding
OSS Clients
SPARQL Prolog
AllegroGraph Architecture

More Related Content

Recently uploaded

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
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 interpreternaman860154
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
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 MenDelhi Call girls
 
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.pdfUK Journal
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
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.pdfEnterprise Knowledge
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
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 slidevu2urc
 
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 Servicegiselly40
 
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 productivityPrincipled Technologies
 
[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.pdfhans926745
 
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...Miguel Araújo
 
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 WorkerThousandEyes
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
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 AutomationSafe Software
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 

Recently uploaded (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
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
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
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
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
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
 
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
 
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
 
[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
 
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...
 
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 Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Featured

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 

Scalable Knowledge Graphs using the New Distributed AllegroGraph 7

  • 1. Scalable Knowledge Graphs with the new Distributed AllegroGraph 7.0 Dr. Jans Aasman (allegrograph.com) And Gruff 8.0 in the Browser
  • 2. Topic for today: [1] Gruff 8.0 in the Browser. [2] AllegroGraph Free and Enterprise Edition on AWS [3] Distributed AllegroGraph • Our customers and partners believe in • Data Centric Computing • Entity Event based Knowledge Graphs • Distributed AllegroGraph supports DCC and EEKG • Some Benchmarking
  • 3. Gruff 8.0 (aka: Gruff in the Browser) • A common customer request for the last years: Please port Gruff to the Browser. • We ported the graphics layer Gruff to HTML5, the same code base runs the standalone and GruffJS version • In many ways faster than the thick client [all the data copying happens locally on the server]
  • 4.
  • 5.
  • 6. If you feel the urge to try it out:
  • 7. Or work with it locally • Allegrograph.com/downloads
  • 8. Distributed AllegroGraph 7.0 • Inspired by a telecom CRM use case with Amdocs • Heavily tested in production at Montefiore hospital • Now also use cases in a call center, finance, and marketing. • Most useful in you believe in • Data Centric Computing • And Entity/Event based Knowledge Graphs • Semantic Technology
  • 9. Data Centric Computing Data centric refers to an architecture where data is the primary and permanent asset, and applications come and go. In the data centric architecture, the data model precedes the implementation of any given application and will be around and valid long after it is gone. Many think this is what happens now but it rarely happens this way. Businesses want functionality, and they purchase or build application systems. Each application system has its own data model, and its code is inextricably tied with this data model. It is extremely difficult to change the data model of an implemented application system. Of course, this application is only one of hundreds or thousands of such …. Each application on its own has hundreds to thousands of tables and tens of thousands of attributes.These applications are very partially and very unstably “interfaced” to one another through some middleware … The data centric approach turns all this on its head.There is a semantic data model and each bit of application functionality reads and writes through the shared model
  • 10. Data Centric Computing and an event based knowledge graph in healthcare
  • 11. Knowledge Graph Roadmap in Montefiore • Developed using grant funding (NHLBI, PCORI, and ICTR) and Intel/Franz collaboration • Fully integrated with Epic, and hosted by MIT Data Center. • Go-Live January 2017 with Respiratory Failure and Mortality Prediction à Prevention • C: Sepsis, HF, Spinal Cord Compression (etc) all with associated ROI • Wide and multi-disciplinary spectrum of applications confirms a platform approach 2017 2021 Respiratory Failure Mortality Sepsis Heart Failure Spinal Cord Compression Fractures, Osteoporosis Outpatient Appointments Malpractice ED utilization Discharge, Bed Reassignment Net Revenue Per Encounter Claim Rejection Prevention Proprietary and Confidential, Copyright 2018 © Montefiore Health System, All Rights Reserved
  • 12.
  • 13. Events directly connect to Entity The KG provides radical simplification of the EDW schema: we turn everything into an EVENT • Healthcare: everything that can happen to a patient is a time based (sub) event: Check In, Check Out, Test, Diagnosis, Procedure, Medication administration, Medication order, Sensor reading for vital signs, Invoice, Bill payment, Non-bill payment, all insurance interactions. • Telecom: everything that happens with a telco user is a time based (sub) event: telephone call, sms, whatsapp, web site visit, location record, crm call, bill pay, non-bill pay … • Even your demographic features are events (names, address, etc) • From thousands of tables to one event table (well, graph)
  • 14. Entity Event Knowledge Graphs implement DCC Core features of the EEKG • Entities and Events are represented as Hierarchical Trees • Entity-Event trees are logically and physically grouped • The tree terminates in a knowledge base for enterprise taxonomies, thesauri, and domain knowledge
  • 15. Structured patient data combined with complex integrated terminologyPatient Data OMOP MTH Snomed CT ICD9/ICD10
  • 16. The entity-event tree in Healthcare • Line 1
  • 17. The entity-event tree in a Telco
  • 18. Benefit: Easy to understand the model, easy to do complex queries
  • 19. Benefit: provide 360 overview in milliseconds and in a one-liner
  • 20.
  • 21. Benefit: One time mapping and ETL • But no big bang required: • EEKG can be built incrementally • Start with an ontology of your core entities and events • Start with a knowledge graph that contains your digital assets • Then map input-streams or table/columns to a small target ontology of entities and events.
  • 22. Benefit: Provenance at every level
  • 23. Security for every triple (edge)
  • 24. Triple Attributes • Every triple can have arbitrary number of key/value pairs. • Meets requirements of government security model & HIPAA
  • 25. And one incredible benefit • Enables horizontal scaling through sharding • 4th element or triple attribute becomes sharding key
  • 26. Distributed AllegroGraph with Fedshard™ • Entity-Event trees go into shards with entity-id as shard key • Shards get federated with non-shardable knowledge bases.
  • 27. First something about AllegroGraph Federation • Open multiple repositories at the same time • Use virtual cursors that issue ‘get-triple :s :p :o :g’ queries to each repo. • SPARQL doesn’t even need to know that it is talking to multiple sources dbpedia geonames Census 2000 Federated store sparql
  • 28. Example of AllegroGraph Federation • What is the medium income of the area where Barack Obama was born? • What does it do: • Find in dbpedia Obama’s birth place and its geonameID • Then find in geonames the geonamesIDs within ten miles of the place above • Then find in census2000 the mediumIncomeAbove16YearsAndOlder for each of those IDs
  • 30. Open up multiple repos at the same time
  • 31. After opening it is about 1.6 B statements
  • 32.
  • 33. We use this federation in AG-7.0
  • 34. Shard #1 Knowledge Base #1 Federation #1 ShardShard Shard Shard Shard #n Knowledge Base #2 Knowledge Base #3 Federation #n Non Shardable Knowledge Shardable data Federation
  • 35. AllegroGraph Distributed Architecture Server 1 Server 2 Server 3 ●● ●
  • 36. Scalability experiment with hospital data Cluster: • The cluster consists of 8 nodes. Each node has 256 Gig of RAM and 10 T of spinning disk • Each node runs one AllegroGraph server, and per server we have 4 patient repositories or 'shards’ • Each shard contains about 550 M triples = 17.7 Billion triples total Supermicro: • 500 Gig of Ram and runs entirely on SSDs. We tested max IO and we got to 120,000 IOs per second • This is a single repository containing all patients plus the terminology system. HOWEVER: I deleted all the provenance triples because keeping those in the database made queries slower. About 4 billion triples.
  • 37. Scalability Examples • Attrition: answer how many patients did we lose (for any reason) from the year 2010 to the year 2011. This is a medium complexity query as it contains some interesting unions, joins, and filters. • Demographics: look up demographics for all patients, low complexity. • Diagnostics: look up every diagnostic in the database for inpatient/outpatient encounters to feed diagnostics., low complexity. • CDRN: an example of a medium to high complexity ETL query used for the NYC CDRN project.
  • 39. Query performance on the 38 PC queries to feed machine learning pipeline • Yes: everything gets a lot faster on the cluster • We need to optimize based on # of partitions and # of cpus
  • 40. So: can I check how busy the cluster is? 6 seconds of 38 proofcheck queries
  • 42. Concluding [2] • If you believe in • The Data Centric Computing Approach • Entity Event Knowledge Graphs • Semantics • Then try it out for yourself • Call us and we get you on your way • And: try our demo server at: gruff.allegrograph.com:10035
  • 43. Documents: JSON, JSON-LD Graphs: RDF, Quads, Properties Storage: Triple Attributes, Security Filters, Compression, Indexing, Full-text Transactions: “Real” ACID, 2 Phase Commit Management: Security, Multi-Master Replication, Backup/Restore, Warm Failover Stored Procs: JavaScript Lisp Prolog SPARQL Magic Predicates Reasoning: RDFS++ OWL2-RL Prolog Probabilistic NLP: Taxonomies Entity Extract Text Classify Sentiment Machine Learning Speech Recognition ETL: RDBMS CSV TEXT NoSQL Events: Geospatial Temporal Social REST GUI: GRUFF/AGWebView Java Python Lisp Built-In Integrations Cloud: Amazon AWS Microsoft Azure Data Science: Anaconda R Studio Knowledge: Linked Open Data Editors: Ontology, Taxonomy NoSQL: Cloudera, MongoDB, Solr Containers: Docker, VMWare Massively Parallel - Federation and Sharding OSS Clients SPARQL Prolog AllegroGraph Architecture