This project implements a Knowledge Graph for historic art using Neo4j and Next.js.
- Node.js (v18+)
- Neo4j Database (Desktop or Aura)
bun installCreate a .env file in the root directory (copy from .env.example):
cp .env.example .envFill in your Neo4j credentials and Google Gemini API Key in .env:
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=your_password
GOOGLE_GENERATIVE_AI_API_KEY=your_google_ai_keyPopulate your Neo4j database with the initial dataset:
bun run seedEnrich the data with Wikidata relations:
bun run enrichGenerate vector embeddings for semantic search and chatbot:
bun run embedStart the development server:
bun run devOpen http://localhost:3000 with your browser.
- Knowledge Graph: Explore artists and artworks connected by relationships.
- Semantic Search: Search by meaning, not just keywords.
- Museum Guide Chatbot: Ask questions about the collection and get AI-generated answers based on the database.
- Interactive Visualization: Visual graph of artist connections.