adityaarun1 / skg

Implementation of Trey Grainger's Semantic Knowledge Graph in Elasticsearch 6.8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Semantic Knowledge Graph

Implementation of Trey Grainger's Semantic Knowledge Graph in Elasticsearch 6.8

Data preperation

Run the following command to fetch the relevant data.

sh ./download_data.sh

This downloads scifi stackexchange forum data.

Data ingestion

Run the following command to ingest the data in ElasticSearch (you must have elasticsearch instance running in the background)

python ingest_xml.py

Usage

python skg.py "<entity1>" "<entity2>" <depth>

Reference

  1. The Semantic Knowledge Graph: A compact, auto-generated model for real-time traversal and ranking of any relationship within a domain [arxiv link]
  2. Natural Language Search with Knowledge Graphs - Trey Grainger, Lucidworks [youtube video]

About

Implementation of Trey Grainger's Semantic Knowledge Graph in Elasticsearch 6.8

License:GNU General Public License v3.0


Languages

Language:Python 96.1%Language:Shell 3.9%