The project was created by Ron Wu. For a POC purpose to showcase that any text can be parsed into a sematic graph and thus can be consumed in a knowledge graph. Once the knowledge graph is built one can used for searching, analyzing or building chatbot.
The project consists of two parts:
The frontend uses React + D3 for plotting the knowledge graph.
Runs the frontend in the development mode.
cd to frontend folder,
- Run
npm install - Adding the proxy by modifying line 17 of
Home.jsfile fromROOT = ''toROOT = localhost:8080 - Then run
npm startoryarn start
This will start the frontend. Open http://localhost:3000 to view it in the browser.
The backend is purely JAVA: Springboot + StanfordNLP, so that it is production ready.
To run the backend.
cd to backend folder,
- Run
./mvnw spring-boot:run
This will start the backend. Open http://localhost:8080 to view it in the browser.
- remove proxy by modifying line 17 of
Home.jsfile under thefrontend/srctoROOT = '' - Then
cdto frontend folder, runnpm run build. This will create a production build for the frontend - Copy everything in the
buildfolder tobackend/src/main/resources/static/. This allows Springboot to host the static web content. - Then
cdto backend folder, run./mvnw package -DskipTeststo create a single JAR build (about 300MB) - Then deploy to the any Cloud. Notice it requires 2GB heap space to run.
