Skip to content
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

pretty-xml/PrettyXMLSerializer serializer plugin missing #2983

Open
kwisatz opened this issue Nov 15, 2024 · 1 comment
Open

pretty-xml/PrettyXMLSerializer serializer plugin missing #2983

kwisatz opened this issue Nov 15, 2024 · 1 comment

Comments

@kwisatz
Copy link

kwisatz commented Nov 15, 2024

The PrettyXMLSerializer, despite being mentioned in the documentation as available in default RDFLib for version 7.1.1, is missing from it.

(venv) kwisatz@alai:~/project - main $ pip3 show rdflib
Name: rdflib
Version: 7.1.1

Error:

rdflib.plugin.PluginException: No plugin registered for (pretty-xml, <class 'rdflib.parser.Parser'>)

and

Traceback (most recent call last):
  File "/home/kwisatz/.virtualenvs/ludap/lib/python3.11/site-packages/rdflib/plugin.py", line 134, in get
    p: Plugin[PluginT] = _plugins[(name, kind)]
                         ~~~~~~~~^^^^^^^^^^^^^^
KeyError: ('pretty-xml', <class 'rdflib.parser.Parser'>)

The documentation does not mention in any way that some serializer plug-ins would need to be registered manually.

@kwisatz
Copy link
Author

kwisatz commented Dec 2, 2024

I have found that the same is true for e.g. the longturtle format/serializer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant