Question

I have installed rdflib in python, it is in version 3.2 when i do this:

import rdflib
print rdflib.__ version__
3.2.0
from rdflib.TripleStore import TripleStore
Traceback (most recent call last): File "", line 1, in ImportError: No module named TripleStore

Somebody help me with this please. :)

Was it helpful?

Solution

TripleStore was removed in rdflib 3.x and even in 2.4 it was deprecated in favor of Graph.

Use Graph in combination with Store to manage/persist your triples.

TripleStore was a subclass of Graph so it should be almost a drop-in replacement.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top