Domanda

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. :)

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top