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 179-page edition includes 18 original diagrams, worked examples, 183 explained review questions, exercises and a glossary.
Version 0.2.1 improves the visual explanation of the same learning catalog: a visual key, inference versus validation, recommendation bindings and a changed-fact counterexample, semantic evolution, event evidence and reconciliation. Class memberships, literal/property mappings, prerequisite direction, validation targets, labels and contrast are clarified. Editable SVG sources are separate from generated exports. Baseline lab fixtures, query listings and retained research inputs are unchanged.
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.1.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