Reputation: 21
I am trying to use https://pythonhosted.org/virtuoso/ with RDFlib but I keep getting the following import error
~\miniconda3\envs\dlvr\lib\site-packages\virtuoso\__init__.py in <module>
2 from pkg_resources import DistributionNotFound
3
----> 4 try: import alchemy
5 except DistributionNotFound: pass
6
ModuleNotFoundError: No module named 'alchemy'
My code for using the plugin is as follows:
import rdflib
from rdflib.store import Store
from rdflib.plugin import get as plugin
Virtuoso = plugin("Virtuoso", Store)
store = Virtuoso("DSN=VOS;UID=dba;PWD=dba;WideAsUTF16=Y")
Does rdflib not support Virtuoso plugin? Is there a better option available for external triples store that I can use to speed up queries on large datasets with rdflib?
Upvotes: 1
Views: 506
Reputation: 9444
A quick Google search suggests you need to install the alchemy library for Python.
Upvotes: 1