Knowledge Graph Construction with Ontologies in Neo4j— Part 2

Lokesh Sharma
9 min readAug 26, 2023

Continuing our exploration of Knowledge Graphs and Ontologies, this next part delves into hands-on implementation. Let’s transform flat CSV files into a dynamic knowledge graph using Python, building upon the groundwork from Part 1 🚀

Since we intend to build the graph structure in Neo4j we will need cypher queries to be dynamically generated based on the flat csv file and the defined ontology. For this purpose, a python dictionary could be useful to create mappings of which columns from csv files need to be places as nodes…

--

--

Lokesh Sharma

Curious minds are exploring the potential of knowledge graphs in GIS technologies. If topography and graphs interest you too, join me in this journey!