Hey, I'm trying to convert a N-Triples/.nt file to MySQL,
with rdflib, sqlalchemy and mysql.connector with Python.

This is my code:

from rdflib import Graph
import sqlalchemy


#1.0.9
print(sqlalchemy.__version__)


engine = sqlalchemy.create_engine(
'mysql+mysqlconnector://root:@localhost:3306/ksaat', pool_recycle=3600)
connection = engine.connect()
#<sqlalchemy.engine.base.Connection object at ..>
print(connection)


g = Graph(engine, identifier="ksaat")
g.open(connection, create=True)
g.parse("input", format="nt")
g.store()


#3110284
print(len(g))



I'm getting this error message:
No plugin registered for 
(Engine(mysql+mysqlconnector://root:***@localhost:3306/ksaat), 
<class 'rdflib.store.Store'>)



What can I do to make my code work?

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to