I'm quite new to linked data and rdflib and I'm quite lost. I am trying to use rdflib to make a persistence store with 'Sleepycat' to load the DBLP database rdf file and then start querying it.This is what I've done:
import rdflib
graph = rdflib.Graph("Sleepycat")
graph.open("C:\Users\Maral\Desktop\Springer-DBLP\Mydblp", create=True)
graph.parse("C:\Users\Maral\Desktop\dblp.rdf", format = 'xml')
It took almost 2 hours but now it seems that dblp.rdf is loaded, parsed and stored in Mydblp. But len(graph) returns 0, and I don't know how to access the data and query it.
Am I missing any steps? Is the data correctly loaded? All the examples are about adding triples to graphs but I just want to query what is already there.
Thank you.