This project extends the Graph GPT project with different approaches in the type of output and the interaction with the originated graph.
- RDFGraphGPT can be used as follows: the user inserts any natural language text and obtains an RDF graph visualization.
- The rdf will be stored in a chosen file so it can be used later either for extend it or for graphing it in another time.
- Note that the resultant rdf file is generated by GPT (through its API) so there maight be some syntax errors. If any syntax problem is encountered at the moment of the graph visualization, the app will solicitate the user to analyze the rdf and edit it in order to garph it. Don't worry, the error is shown so you can fix it quickly 😉.
- You can extend an existing rdf document only by choosing it and adding the information you want in the "Extender RDF existente" section. This functionality is also achived by using GPTs API, and as in the main functioality, this changes will be stored in the selected document and you will be able to see the graph visualiization in that moment.
- You can graph an existing rdf document by choosing it in the "Graficar un archivo RDF" section.
- First of all, you will need to have a Python 3.9+ version and poetry installed.
- Make sure you have an OpenAI API key. You need it to interact with the GPT API.
- Once you cloned this project, make sure you are on the "main" branch.
- Standing on "RDFGraphGPT/RDFGraphGPT" folder:
4.1. Run
poetry install. This should install all the dependencies. 4.2. Create a .env file and declare this enviroment variable:OPENAI_API_KEY='<the value of the API key you obtained>'. 4.3. Runpoetry shelland thenflask --app index run. Now RDFGraphGPT is running on your computer 🎊.