-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
missing documentation #33
Comments
@FlorianLudwig, unfortunately, I have difficulties to help here. I have put the HTML fragment into a separate file and ran it through the RDFa processor as a standalone program, and it worked without problems. However, what you do is to run this from inside a Python program, relying on the RDFLib plugin architecture; the plugin approach has changed over the years, and I have not followed those changes (I have stopped working on this library about 5-6 years ago). At this moment, your program does not even get to the point as yours on my own machine, which shows that my local setup may not be up-to-date either. The error message seems to suggest that the bridge between the plugin mechanism and the parser itself seems to be erroneous: line 138 is the entry point into the pyRdfa environment... I would hope @nicholascar can help in at least locating where the problem may be. |
Hi all. The code above still runs fine with RDFlib 4.2.2, just not with RDFlib 5.0.0. So yes, there is a change inside RDFlib 5.0.0's In the short term, just drop the RDFlib version you're using back to 4.2.2 to use this plugin. I'll try and see if I can find someone to look into the issue in detail. Apologies for not testing compatibility with PyRdfa3 before releasing RDFlib 5.0.0! We'll be merging the JSON-LD plugin into RDFlib core for RDFlib 6.0.0 and perhaps this could be merged in then too, if not much is changing with RDFa. |
Thanks @nicholascar. I have, b.t.w., a PR (#34) that takes care of some of the issues around Python3, but I am not sure whether merging this is wise with the versions of RDFLib changing. The changes are really only on the level of Python2 vs. Python3 (usage of |
rdflib-jsonld is now merged into rdflib, as of 6.0.0 and the PR #34 mentioned above is merged. A PR to restore RDFa support in RDFlib is in progress here: RDFLib/rdflib#1503 |
I am looking for documentation how to use this - I tried using it like other parsers:
But that won't work:
The text was updated successfully, but these errors were encountered: