2

I am trying to use FOPLRelationalModel.MySQLMassLoader from rdflib but when I use,it shows

       /usr/bin/python: No module named rdflib.store.FOPLRelationalModel.MySQLMassLoader

I have tried installing rdfextras also but that is also not helping.The rdflib version is 4.2.0 Can anyone please tell me what should be done here

aditi rana
  • 35
  • 6
  • looks to me as if you're trying to combine an rdflib 2.4.0 rdflib extras feature with rdflib 4.2.0... https://github.com/RDFLib/rdfextras/tree/master/rdfextras/store/FOPLRelationalModel doesn't have a MySQLMassLoader anymore – Jörn Hees May 10 '15 at 16:52
  • then what is the best way to connect to a database in postgres or Mysql with rdflib 4.2.0 – aditi rana May 10 '15 at 16:59

1 Answers1

0

you probably want to have a look at RDFLib SQLAlchemy.

It allows you to connect to various databases like mysql, postgres, sqlite... and use them as a Store backend of rdflib.

Jörn Hees
  • 3,338
  • 22
  • 44
  • now i am using RDFLib SQLAlchemy.But can I insert rdf file content into postgres.I can not find that in the documentation – aditi rana May 10 '15 at 17:50