Programming Knowledge Graphs with Python

Cover of Programming Knowledge Graphs with Python

EPUB · English

Price and availability

EPUB eBookUS store

$30.99

Sign in to buy

You’ll review your order and final price before payment.

Download from your library after delivery. Protected eBooks need a compatible reading app.

For personal use under the eBook licence.

Territorial availability

Available in: Andorra, Austria, Australia, Belgium, Bulgaria, Canada, Switzerland, Cyprus, Czechia, Germany, Denmark, Estonia, Spain, Finland, France, United Kingdom, Guernsey, Greece, Croatia, Hungary, Ireland, Isle of Man, Iceland, Italy, Jersey, Japan, Liechtenstein, Lithuania, Luxembourg, Latvia, Monaco, Malta, Netherlands, Norway, Poland, Portugal, Romania, Sweden, Slovenia, Slovakia, San Marino, United States, Vatican City, South Africa

Publisher rights cover these stores: US, UK, Canada, EU, Australia. Checkout availability is shown above.

Format
EPUB
DRM
Not stated by the publisher
Language
English
Publisher
Distributed via Draft2Digital
Published
26 September 2026
ISBN
9798237498639
Subjects
Programming & scripting languages: general, Database software, Computer science, Artificial intelligence, Natural language & machine translation, Programming and scripting languages: general, Database software, Computer science, Artificial intelligence (AI), Natural language and machine translation

About this book

Get practical hands-on to build your own knowledge graph, and use it across retrieval, analytics and agentsLLMs sound confident, but they forget context, invent facts and can't show their reasoning. A knowledge graph gives them structured, traceable facts to work from. What you'll do in this book is grow a single Neo4j graph from the Python Enhancement Proposals, which are the documents that shaped the language. It starts with getting to grips with nodes and relationships and writing Cypher like a pro. Then you design a schema in Pydantic, chunk documents into a lexical graph and extract entities with spaCy and local LLMs. Then, you add vector embeddings and indexes, and combine full-text search, vector search and graph traversal into GraphRAG retrieval that cites its sources.The rest of the book goes into more detail. You can rank and cluster nodes with Graph Data Science, infer new facts with rules, import ontologies and validate data with SHACL. You also give LangGraph agents guarded Cypher tools, serve the graph over MCP, store agent memory with Graphiti and trace every decision. Key LearningsWrite expressive, parameterized Cypher queries from Python.Design graph schemas with Pydantic, constraints and indexes.Chunk documents into lexical graphs with batched ingestion pipelines.Extract entities and relationships using spaCy rules and schema-guided local LLMs.Store embeddings in Neo4j and query them through vector indexes and similarity metrics.Build GraphRAG retrievers for full-text, vector search and subgraph expansion.Rank, cluster and predict links with PageRank, Leiden and GDS pipelines.Infer facts with Cypher rules, SKOS ontologies and SHACL shape validation.Connect LangGraph agents to graphs through guarded Cypher tools, MCP and Graphiti memory.Operate graphs with incremental refreshes, temporal facts, evaluation runs, tuning and backups.

Bibliographic data © Gardners Books Ltd.