RDFLib / rdflib

RDFLib is a Python library for working with RDF, a simple yet powerful language for representing information.
https://rdflib.readthedocs.org
BSD 3-Clause "New" or "Revised" License
2.18k stars 559 forks source link

pretty-xml/PrettyXMLSerializer serializer plugin missing #2983

Open kwisatz opened 1 week ago

kwisatz commented 1 week ago

The PrettyXMLSerializer, despite being mentioned in the documentation 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.