A natural language interface to knowledge graphs (via GraphQL)
The following packages are required in order to run the tool:
- Apollo Server (https://www.apollographql.com/docs/apollo-server/getting-started/)
- JaroWinkler (https://www.npmjs.com/package/jaro-winkler)
If you want to start a server and obtain results from it, you'll also need: 3. prompt-sync (https://www.npmjs.com/package/prompt-sync) 4. HTTPS (https://www.npmjs.com/package/https)
Open a terminal/cmd window for this folder and follow these 2 steps:
- Run the command "node server" to start the local Apollo server
- Open a new terminal/cmd tab or window and run the command "node main" to run the mapping tool
You can then enter your query and see the resulting GraphQL query. The detected keywords (type, field and operator names) in your query will be shown as well as their interpretation by the system. If the server is running, the result from the GraphQL query will be returned as well.