Knowledge Graphs: Semantic Graphs and Property Graphs
Authors/Creators
Description
An illustrated, practical guide to semantic knowledge graphs and labeled property graphs, progressing from graph fundamentals to ontology modeling, querying, validation, and architectural decisions.
A running learning-catalog example connects RDF, RDFS, OWL, SPARQL, and SHACL with Neo4j and Cypher. Readers explore identity, relationships, constraints, inference, and events, then apply these ideas to recommendation policies, interoperability, graph RAG, performance, and governance.
This 173-page edition includes original diagrams, worked examples, 183 explained review questions, exercises and a glossary.
Version 0.2.0 expands the recommendation-equivalence discussion and adds semantic evolution and dated policy replay, eligibility versus suitability, reasoning-cost decisions, identity and evidence handling, and missing-data validation. The additions are integrated with exercises, explained answers, glossary entries, navigation, and companion materials.
Validation combines document and structural checks with isolated executable exercises. Retained paired query results cover 145 cases: 143 aligned cases agree and two boundary counterexamples intentionally differ. Independent paired reproduction remains open. These results do not establish general equivalence of RDF and property graphs, performance superiority, or personal suitability.
Original book text, illustrations, and synthetic example data are licensed under CC BY 4.0. Original companion code is licensed separately under MIT; third-party notices are retained. Technical corrections and feedback on clarity are welcome.
Files
Knowledge-Graphs-v0.2.0.pdf
Additional details
Related works
- Is supplemented by
- Software: https://github.com/mdhabibi/one-graph-two-worlds (URL)
Software
- Repository URL
- https://github.com/mdhabibi/one-graph-two-worlds