Skip to content

RDFa 1.1 distiller/parser library: can extract RDFa 1.1 (and RDFa 1.0, if properly set via a @Version attribute) from (X)HTML, SVG, or XML in general. The module can be used to produce serialized versions of the extracted graph, or simply an RDFLib Graph.

License

prrvchr/pyrdfa3

 
 

Repository files navigation

DOI

Note: since I retired a few months ago I do not really maintain this package any more. I would be more than happy if an interested party was interested to take over. In the meantime, I have "archived" the repository to clearly signal that there is no maintenance. I would be happy to unarchive it and transfer ownership if someone is interested.
@iherman

This new version 3.6.2 is now built and maintained on prrvchr.github.io/pyrdfa3

The package can be installed from PyPI with command:

pip install pyRdfa3

PyRDFA

What is it

pyRdfa distiller/parser library. The distribution contains:

  • ./src/pyRdfa: the Python library. You should copy the directory somewhere into your PYTHONPATH.
    Alternatively, you can also install from Python Package Index with command:
    pip install pyRdfa3

  • ./scripts/CGI_RDFa.py: can be used as a CGI script to invoke the library.
    It has to be adapted to the local server setup, namely in setting the right paths.
    This script has not been ported to Python 3.x. Open a new issue if you need it.

  • ./scripts/localRdfa.py: script that can be run locally on to transform a file into RDF (on the standard output).
    Run the script with -h to get the available flags.
    This script has not been ported to Python 3.x. Open a new issue if you need it.

  • ./doc: pyRdfa3 documentation of the classes and functions (thanks to pdoc).

The package primarily depends on:

  • Python version 3.7 or higher
  • requests: version 2.25.1 or higher is strongly recommended.
  • rdflib: version 6.1.1 or higher is strongly recommended.
  • html5lib: version 1.1.

The package has been tested on Python version 3.7 and higher (no more support for Python 2.x).

For the details on RDFa 1.1, see:

possibly:

About

RDFa 1.1 distiller/parser library: can extract RDFa 1.1 (and RDFa 1.0, if properly set via a @Version attribute) from (X)HTML, SVG, or XML in general. The module can be used to produce serialized versions of the extracted graph, or simply an RDFLib Graph.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%