Ontotext GraphDB is a graph database and knowledge discovery tool compliant with RDF and SPARQL.

Dependencies

Install the rdflib package with
pip install rdflib==7.0.0

Graph QA Chain

Connect your GraphDB Database with a chat model to get insights on your data. See the notebook example here.
from langchain_community.graphs import OntotextGraphDBGraph
from langchain.chains import OntotextGraphDBQAChain