walidazizi / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

MySQL-RDFLIB 3.2.0. Python 2.7 #213

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Intall rdflib-3.2.0
2.run https://github.com/RDFLib/rdflib/wiki/IntroMySQLStore
3.add to rdflib/plugin.py register('MySQL', Store, 
                'rdflib.plugins.MySQL', 'MySQL')

What is the expected output? What do you see instead?
Expecting: https://github.com/RDFLib/rdflib/wiki/IntroMySQLStore to run
Seen: can't open file 'mysqlrdf.py': [Errno 2] No such file or directory

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by panosvla...@gmail.com on 11 Apr 2013 at 8:06

GoogleCodeExporter commented 8 years ago
Seen: is Traceback (most recent call last):
  File "mysqlrdf.py", line 16, in <module>
    store = plugin.get('MySQL', Store)('rdfstore')
  File "build\bdist.win32\egg\rdflib\plugin.py", line 95, in get
rdflib.plugin.PluginException: No plugin registered for (MySQL, <class 'rdflib.s
tore.Store'>)

Original comment by panosvla...@gmail.com on 11 Apr 2013 at 9:16

GoogleCodeExporter commented 8 years ago
This looks a bit tangled, perhaps I can help.

* Firstly, the RDFLib project has migrated to github 
(https://github.com/RDFLib) as advised in the google code project page: 
https://code.google.com/p/rdflib/ and is now using github to manage issues, I'd 
be grateful if you could use the github repos issue system for submitting any 
further issues.

* The RDFLib Github wiki page you reference ("IntroMySQLStore") is in the 
"legacy rdflib 2" section and the code example is for rdflib 2, as advised by 
the statement on the page: 

"Note that this example is of the old 2.4.X versions of RDFLib. The new 3.X 
series have MySQL support moved to the rdfextras project."

* MySQL support has been removed from the rdfextras project and is only 
currently available as an experimental, buggy and unreleased plugin for 
rdflib/rdfextras:

https://github.com/RDFLib/rdflib-mysql

There is an outstanding and disabling bug which currently renders the plugin 
unusable.

* If you can suffer the extra dependency of SQLAlchemy, the plugin 
rdflib-sqlalchemy is currently passing all of the tests, you will probably have 
better luck with that:

https://github.com/RDFLib/rdflib-sqlalchemy

Original comment by gjhigg...@gmail.com on 11 Apr 2013 at 11:43

GoogleCodeExporter commented 8 years ago
Thanks for the information I will try to install sql-alchemy if I come up with 
any questions I will write in Github

Original comment by panosvla...@gmail.com on 12 Apr 2013 at 7:20