A knowledge graph is a collection of interlinked entities where each entity is a piece of information. A wikipedia category graph is a structure used by wikepedia for effectively managing the information sub-categories of the information. We've build a knowledge graph of news headlines(targeting Indian NEWS) and expanded the knowledge using wikipedia category graph(s).
To run the program
- Install following Python packages: spacy(additionally en_core_web_sm model), neo4j and nltk.
- Install neo4j Desktop on system and run a local instance of it. Configure a database with username and password.
- Download Install APOC Plugin in your application.
- Register and create an account on https://newsapi.org/ to get an API Key for your application.
- Make changes in the Python file accordingly replacing credentials and API Key.