From Knowledge Graphs to Knowledge Lakes
local graph
Chapter 14 — From Knowledge Graphs to Knowledge Lakes
Section titled “Chapter 14 — From Knowledge Graphs to Knowledge Lakes”Data is one of a modern enterprise’s most valuable assets. With an organizing principle in hand, you can build a knowledge graph that drives significant business value for many use cases. This final chapter examines potential future directions for knowledge graphs. You’ll see how knowledge graphs may move down the enterprise stack into a more foundational role and how in that role their scope will broaden. This intriguing pattern is known as a knowledge lake, and it might be one possible future for knowledge graph technology.
Conventional Knowledge Graph Deployments
Section titled “Conventional Knowledge Graph Deployments”In the last few years, the deployment of knowledge graphs has proliferated, mirroring the advances in modern graph technology. Knowledge graphs for individual use cases or departments are becoming commonplace. Indeed, knowledge graphs for significant cross-functional business activities (e.g., compliance) or entities (e.g., customers) are now becoming increasingly common. At each step, as the scope of the knowledge graph grows, the infrastructure to support it moves further down the stack, as shown in Figure 14-1.
Figure 14-1. Knowledge graph proliferation to date
The high-level architecture shown in Figure 14-1 is uncontroversial. Some knowledge graphs have narrow use, and some have broader use. Each drives some business value.
The knowledge graph starts as a departmental asset fueled by that department’s data. But as your needs become more sophisticated, those graphs may be interlocked via ontologies and middleware to create a knowledge graph that spans data from multiple departments.
At the most sophisticated level, the knowledge graph not only spans data from multiple departments but becomes a foundational technology layer for enterprise-wide reuse. Using a large knowledge graph system as a foundation conveniently allows other knowledge-intensive systems to be built atop its curated data. This is a success insofar as knowledge graphs have been broadly adopted and have themselves become a foundation for other useful systems.
But the question arises: what happens when the proliferation of knowledge graphs becomes a victim of its own success? How does an enterprise manage with many knowledge graphs without them becoming an ungovernable mess? Does the enterprise architecture devolve into a system of recursive knowledge graphs all the way down? Hopefully not.
From Knowledge Graphs to Knowledge Lakes
Section titled “From Knowledge Graphs to Knowledge Lakes”The prospect of more and better-quality data is intriguing. It implies a bigger and broader role for knowledge graphs and, consequently, an increasingly foundational role for them. As knowledge graphs become more fundamental for businesses, the deployment architecture changes. You move from (potentially many) knowledge graphs for individual use cases and specific cross-functional activities into a general-purpose approach. This general-purpose approach is known as a knowledge lake whose architecture is shown in Figure 14-2.
Figure 14-2. A knowledge lake is a general-purpose contextualized information system at scale
A knowledge lake is an architecture and usage pattern that is itself a knowledge graph and can subsume other knowledge graphs and nongraph data. It sits right next to an enterprise’s data warehouses and data lakes. It stores a curated subset of the organization’s data, represented as a graph, which can then be served up to multiple projects inside that enterprise. It is effectively a collection of knowledge graphs designed for reuse.
It’s important to understand that a knowledge lake isn’t a replacement for a data lake or (to a lesser extent) a data warehouse. Data lakes have the property that data can be poured into them at high volume, on the basis that meaning can be established later. Volume and throughput are key characteristics.
A knowledge lake brings meaning to this data after the fact. It makes the huge volumes of data in the lake or warehouse meaningful so that it has value to the business. It is therefore the knowledge lake that becomes the primary lens through which business-meaningful data is consumed. In effect, you get the best of both worlds.
Throughout this book, you’ve seen how knowledge graphs help businesses harness connected data to drive business value. You’ve also seen how this can be done without high-cost, high-risk, rip-and-replace technical projects. Instead, you now understand that knowledge graphs can be deployed as a nondisruptive technology sitting alongside existing systems while simultaneously enhancing their utility and value.
Despite their scope, knowledge lakes are no different. While the end goal might be to provide contextualized understanding and linkage with broad coverage across the enterprise, the starting point can be as small as a single system. Like any graph, your knowledge lake can grow over time and accrete more data and use cases. While it needs governance and automation to ensure that it doesn’t become stale or patchy, the end game is a knowledge lake that can map out the entirety of the enterprise’s data, so it can be discovered, used (and reused), and curated.
Looking to the Future
Section titled “Looking to the Future”We are drowning in information but starved for knowledge. —John Naisbitt, Megatrends
Naisbitt is right. Our businesses are not short of data. The challenge is to understand that data and put it to good use.
Knowledge graphs and, in the future, knowledge lakes, represent a significant opportunity to understand data in context. The patterns and use cases you’ve seen in this book provide the foundation you need to tackle this monumental challenge. Today, you have the ability to create systems of immense business value. Tomorrow, you may well be able to tame the complexity of the most challenging data-intensive systems and extract business value from them as easily as querying a single database. There’s an exciting journey ahead!
- ACID (atomicity, consistency, isolation, durability)
- Neo4j, 49
- additive dependencies, 193-195
- aggregation, 169
- additive/aggregate dependencies, 193
- aggregate dependencies, 199-201
- aggregate multi-dependencies, 195-197, 202-203
- Cypher functions, 44
- datasets, 131
- master entities, 147
- polysemic words, 255
- alarm correlation, root cause analysis, 206
- algorithms, 93
- analytical, use cases, 95
- centrality, 95
- community detection, 95
- entity matching, 141
- GPUs (graphics processing units), 96
- influence and, 95
- link detection and, 95
- Louvain, 159
- ML (machine learning), 95
- Neo4j Graph Data Science, 96
- execution phases, 97
- graph projection phase, 98
- queries, 99
- scale-out approach, 98
- network propagation, 95
- reasons to use, 93-94
- statistical, 94
- stream version, 147
- taxonomies, 19
- use cases, 95
- WCC (Weakly Connected Components), 96
- writer version, 147
- annotations, text, 212-217
- semantic search and, 222-231
- anonymous activity, duplicate data and, 137
- Apache Hop, ETL (extract, transform, load), 89-92
- Apache Kafka, 84-86
- Apache Spark, 87-89
- APOC library, Neo4j, 45
- data virtualization and, 75-79
- server-side procedures, 74
- virtual resources, 75-79
- Banking Circle case study, 164
- betweenness centrality, 101
- blocking keys, 141
- Bloom (Neo4j), 12, 101
- calculating indegree, 10
- Cartesian products, 60
- case studies
- Banking Circle, 164
- DXC Technology, 185
- Meredith Corporation, 153
- NASA, 231
- centrality, 95
- charts
- org charts, 165-166
- versus graphs, 2
- searches and, 217-221
- cold start, 221
- drivers, 67
- Neo4j, 67-68
- Rust driver, 69-70
- objects, 70
- Neo4j, 67-68
- duplicate data
- anonymous activity and, 137
- data integration and, 136
- identity and, 135
- intentional/fraudulent, 137
- DXC Technology case study, 185
- entities
- identifying, 141
- NER (named-entity recognition), 213-217
- text annotations, 212-217
- entity disambiguation, 222-231
- entity resolution, 135, 137
- data preparation and, 138-141
- data sets, overlapping, 137
- entity matching, 141-145
- persisted record of master entities, 145-149
- entity-property-value triplets, 235
- ETL (extract, transform, and load)
- Apache Hop, 89-92
- Euler, Leonhard, 3-5
- event correlation, root cause analysis, 206
- expertise knowledge graph, 170-173
- EXPLAIN keyword (Cypher), 45
- extracted facts (see fact extraction)
- disambiguation and, 237
- entity-property-value triplets, 235
- fact extraction
- NER (named-entity recognition) and, 234
- NLP and, 234-237
- feature engineering, 116
- federation, 71
- composition databases, 72-73
- first-party fraud, 156-157
- fixed-length records, 47
- flexibility, 24
- fraud detection, 155
- first-party fraud, 156-157
- fraud rings, 159-162
- operationalizing graph, 164
- separating from data, 157-159
- fraud rings, 159-162
- fraudulent duplicate data, 137
- functions
- calling, 44-45
- custom, 79-81
- invoking, 45
- global queries, 42-44
- golden records, master data, 65, 135, 137
- GQL (Graph Query Language), 28
- graph algorithms (see algorithms)
- graph data science, 93
- (see also Neo4j Graph Data Science)
- graph databases, 27
- Cypher, 28
- Neo4j, 28
- graph global queries, 42-44
- graph local queries, 37-41
- graph models, enriched, 11
- graph theory, 3
- graph-feature engineering, 116
- graph-native machine learning, 113
- complementary actors, 117-125
- pipelines, 116-117
- GraphDataScience class, 103-104
- GraphQL, 82-84
- graphs
- description, 2
- networks, 3
- versus charts, 2
- versus knowledge graphs, 10
- hidden dependencies, 188
- hierarchy, taxonomies as, 14-19
- HTAP (hybrid transactional and analytics processing), 108
- hypergraphs, 5
- hypernymy, 257, 265
- hyponymy, 257, 265
- identity
- duplicate data, 136-137
- duplicate data and, 135
- unstructured data, 149-153
- impact propagation, 198-201
- importing dependencies, 189
- in-graph machine learning, 114-116
- input, natural language as, 233
- intentional duplicate data, 137
- interoperability, ontologies, 23
- JSON (JavaScript Object Notation)
- APOC and, 75
- extracted facts, 235
- results serialization, 148
- Jupyter Notebook, 101
- Kafka Connect plug-in, 84-86
- key-value pairs, 5, 11
- keys, blocking, 141
- knowledge graphs, 1
- constraints, 34
- data creation, 29-31
- definition, 8
- duplicates, avoiding, 31-37
- enriching, 109-111
- motivation for, 7
- organizing principle, 8
- organizing principles, choosing, 21-22
- queries
- graph global queries, 42-44
- graph local queries, 37-41
- versus graphs, 10
- knowledge lakes, 268-269
- labeled property graph model
- polymorphism, 15
- type system, 15
- labels
- associativity, 15
- nodes, 5
- groups, 30
- layered ontologies, 20
- LCS (least common subsumer), 261
- Leacock-Chodorow similarity, 260-261
- lemma, 255-256
- lexical databases, 234
- polysemic words, 255-256
- semantic relationships, 257
- synsets, 253
- WordNet, 253-257
- Lexical Entry-Lexical Sense-Lexical Concept, 253
- link prediction, algorithms and, 95
- link prediction, pipelines, 116-117
- Linkurious, 12
- LLIS (lessons learned information system), NASA, 231
- LOAD CSV (Cypher), 56-61
- loading data
- initial bulk load, 61-64
- LOAD CSV (Cypher), 56-61
- Neo4j Data Importer, 51-55
- neo4j-admin tool, 61-64
- local queries, graph local queries, 37-41
- locality benefits, 98
- Louvain algorithm, 159
- master data
- golden records, 65
- management, 135
- master entities, persisted representation, 145-149
- MATCH keyword (Cypher), 30
- MERGE (Cypher), 54
- MERGE keyword (Cypher), 33
- meronymy, 257
- metadata, 1, 128
- metadata knowledge graphs, 127
- data sinks, 130
- datasets, platforms, 129
- distributed data, 127-128
- example, 130-131
- queries, 131-132
- relationships, 133-134
- tasks, 129-130
- ML (machine learning), 113
- (see also graph-native machine learning)
- algorithms, 95
- feature engineering and, 116
- graph feature engineering, 114, 116
- in-graph machine learning, 114
- topological, 114-116
- multidependency, 193
- additive dependencies, 193-195
- redundant dependencies, 195-197
- NASA case study, 231
- natural language
- generating from graph, 245-252
- as input, 233
- organizing principle annotation, 248-252
- as output, 233
- queries, 238
- semantics, 23
- subject-predicate-object sentences, 245-247
- natural language interfaces, 234
- processing results, 244
- Neo4j
- ACID and, 49
- Apache Kafka, 84-86
- APOC library, 45
- Bloom, 101
- Cypher, 67
- Data Importer, CSV files, 51-55
- GraphQL, 82-84
- importing RDF, 253
- queries
- hardware, 48
- index-free adjacency, 47
- property storage, 48
- REPL (read-evaluate-print loop) console, 67
- spaCy and, 238-245
- Spark, 87-89
- Neo4j Composite Databases, 72-73
- Neo4j drivers, 67-68
- Rust driver, 69-70
- Neo4j Graph Data Science, 93
- algorithms, 96
- execution phases, 97
- graph projection phase, 98
- queries, 99
- scale-out approach, 98
- counterintuitive results, 107
- experiments, 101-107
- graph database integration, 96
- in-graph machine learning, 114
- Jupyter Notebook, 101
- Pythonic API, 101
- algorithms, 96
- Neo4j graph database, 28
- Cypher, 28
- data storage, 30
- neo4j-admin, 61-64
- NER (named-entity recognition), 213-217
- fact extraction and, 234
- network propagation, algorithms and, 95
- networks, 3
- NLP (natural language processing), 211
- Diffbot Natural Language API, 235-237
- fact extraction and, 234-237
- knowledge graphs and, 233
- NER (named-entity recognition), 213-217
- spaCy, 238
- NLTK (Natural Language Toolkit for Python)
- versus Cypher, 260
- path_similarity method, 259
- nodes
- calculating the indegree, 10
- labels, 5
- groups, 30
- properties, 5
- ontologies, 19
- as semantic bridge, 20
- examples, 23
- interoperability, 23
- knowledge and, 21
- layered, 20
- natural language generation and, 248-252
- standard, 23
- org charts, 165-166
- organizational performance predictions, 179-186
- organizational planning knowledge graph, 175-179
- organizing principles, 9
- annotating, natural language generation and, 248-252
- annotations, semantic search, 222-231
- as contract, 14
- choosing, 21-22
- creating, 23-24
- OWL (Web Ontology Language), 23
- RDF Schema, 23
- SKOS (Simple Knowledge Organization System), 23
- output, natural languages as, 233
- OWL (Web Ontology Language), 23
- path similarity, 258-260
- pattern detection graphs
- fraud detection, 155
- first-party fraud, 156-157
- fraud rings, 159-162
- operationalizing graph, 164
- separating from data, 157-159
- fraud detection, 155
- performance, 24
- persisted master entities, entity resolution and, 145-149
- pip, Pythonic API, 101
- polymorphism, 15
- polysemic words, 255-256
- primary servers, 107
- primitives, 5
- procedures
- calling, 44-45
- invoking, 45
- production, 107-109
- PROFILE keyword (Cypher), 46
- properties
- Cypher, creating in, 140
- Neo4j, 48
- nodes, 5
- relationships, 5
- property graph model, 5
- as contract, 14
- constraints, 6
- label associativity, 15
- nodes, 5
- relationships, 5, 6
- Pythonic API for Graph Data Science, 101
- qualified dependencies, 190-193
- queries
- graph global queries, 42-44
- graph local queries, 37-41
ifstructure and, 244- metadata knowledge graphs, 131-132
- natural language, 238-245
- Neo4j
- hardware, 48
- index-free adjacency, 47
- property storage, 48
- parameterized, 70
query_dbfunction, 244- read-only, 70
- read/write, 70
- random forest method, classification and regression, 187
- RDF (Resource Description Framework), 25
- importing to Neo4j, 259
- RDF Schema, 23
- records
- creating, 32
- database management, 49
- duplicate, 127
- fixed length, 47
- golden, 135, 137
- golden records, 65
- persisted record of master entities, 145-149
- redirecting, 66
- removing, 32
- recursive dependencies, 188-190
- redundant dependencies, 195-197
- regular expressions, spaCy and, 238
- relationships
- data models, 7
- directed, 5
- direction, 30
- FRIEND, 57-59
- hypergraphs, 5
- LIVES_IN, 57-59
- metadata knowledge graphs, 133-134
- nodes, calculating the indegree, 10
- properties, 5
- property graph model, 6
- types, 5
- undirected, 5
- root cause analysis, dependency modeling, 206-210
- schemas, 6
- search engines, 212
- searches, 211
- (see also semantic search)
- Google web searches, 212
- secondary servers, 107
- semantic relationships, 257
- semantic search
- document similarity and, 217-221
- cold start, 221
- results, ranking, 212
- text annotations
- entities and, 212-217
- NER (named-entity recognition), 213-214
- organizing principle, 221-222
- unstructured data, 211-212
- semantic similarity
- Leacock-Chodorow similarity, 260-261
- path similarity, 258-260
- Wu and Palmer similarity, 261-266
- Semantic Web technology stack, 15
- semantics, 9
- just-enough, 22
- natural language, 23
- ontologies and, 20
- sentence generation, natural language, 246-247
- server-side procedures, 73
- APOC library, 74
- SQL database drivers, 74
- servers
- primary, 107
- secondary, 107
- skills matching
- career growth, individual, 175-176
- expertise knowledge graph, 170-171
- org charts, 165-166
- organizational performance, predicting, 179-186
- organizational planning, 175-179
- skills knowledge graph, 167-170
- SKOS (Simple Knowledge Organization System), 23
- spaCy, 238
- Matchers, 239-240
- patterns, 240
- Neo4j and, 238-245
- regular expressions and, 238
- Spans, 241
- Spark, 87-89
- SPOF (single point of failure), 205-206
- statistical algorithms, 94
- use cases, 95
- subject-predicate-object sentences, natural language, 245-247
- synsets, 253
- taxonomies, hierarchy and, 14-19
- temporal validity, dependencies, 192
- text annotation, 211-217
- semantic search, organizing principle, 222-223
- topological machine learning, 114-116
- type systems, labeled property graph model, 15
- undirected relationships, 5
- unstructured data
- identity and, 149-153
- semantic search, 151-152
- UNWIND (Cypher), 74
- validation
- dependency modeling
- aggregate multi-dependencies, 202-203
- consumption, 203
- cycles, 202
- redundant dependency configuration, 204
- dependency modeling
- Vanguard Group, 209
- virtual resources, APOC library, 74-79
- visualization
- Bloom (Neo4j), 12, 101
- Linkurious, 12
- WCC (Weakly Connected Components), 96, 145
- WordNet database, 251-257
- adding entities, 263
- lemma, 255-256
- RDF (resource description framework), 253
- semantic relationships, 257
- Wu and Palmer similarity, 261-266