pyrdfa3
pyRdfa distiller/parser library
What it is and what it does
pyRdfa3 is a Python library that parses RDFa 1.1 markup embedded in HTML documents and distills it into structured RDF data. It reads HTML files or web pages containing RDFa annotations—semantic metadata embedded as HTML attributes—and extracts the underlying RDF triples, which can then be queried or manipulated using rdflib.
The package is built on three core dependencies: requests for fetching remote HTML, rdflib for representing and working with RDF graphs, and html5lib for robust HTML parsing. It supports Python 3.8 and higher and is designed for developers working with semantic web standards, linked data, or applications that need to extract structured metadata from web pages.
Use it for:
- Extract structured data from web pages marked up with RDFa to build knowledge graphs or semantic search indexes.
- Convert RDFa-annotated HTML documents into RDF/Turtle or other RDF serialization formats for downstream processing.
- Validate or test RDFa markup compliance in HTML documents against the RDFa 1.1 specification.
- Integrate semantic web data extraction into data pipelines that consume linked data from third-party websites.
- Build tools that harvest schema.org or other RDFa vocabularies from HTML to populate databases or ontologies.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parses RDFa markup embedded in HTML documents and extracts structured RDF data using the RDFa 1.1 specification.
Yes, with conditions. The package has low install friction and no known vulnerabilities, making it technically safe to use. However, the original maintainer has retired and the package is now community-maintained with minimal activity (1 star, aging status, last commit in January 2026). Install it if you need RDFa 1.1 parsing and are comfortable with a stable but not actively developed library; verify the unclear license terms before use in commercial or restricted-license projects.
Install
pyrdfa3 on PyPI
pip
pip install pyrdfa3uv
uv add pyrdfa3poetry
poetry add pyrdfa3Installing pyrdfa3
Before you install
Low install friction with three straightforward dependencies (requests, rdflib, html5lib). However, the original maintainer has stepped back and the package is now maintained by a community contributor; the repository is archived but not abandoned. Last commit was recent, but the aging status and low star count suggest limited active development.
License in practice
License treatment is unclear—the classifier indicates W3C License approval, but no explicit SPDX or raw license text is recorded in the package metadata. Verify the actual license terms before relying on this package in a commercial or restricted-license context.
Quickstart
pip install pyRdfa3
import pyRdfa
from rdflib import Graph
graph = pyRdfa.parse('http://example.com/page.html')
# graph is an rdflib Graph object containing extracted RDF triples
Requires Python 3.8 or higher; requests 2.32.3 or higher, rdflib 7.0.0 or higher, and html5lib 1.1.
Verify before relying
- Whether the W3C License classifier accurately reflects the actual license terms and any restrictions on use.
- Current maintenance status and responsiveness to issues given the original maintainer's retirement and community takeover.
- Whether the package handles all RDFa 1.1 edge cases or if there are known parsing limitations.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, rdflib, html5lib |
| Maintenance | aging — 209 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 585,794/month — #5,885 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pyrdfa3-3.6.5-py3-none-any.whl
Tags
More HTML packages
MarkupSafe provides a text object that escapes…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
beautifulsoup4Beautiful Soup parses HTML and XML documents…
permissive · top 100 on PyPI
lxmllxml provides Python bindings to libxml2 and…
permissive · top 1,000 on PyPI
docutilsDocutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
MarkdownConverts Markdown text to HTML using a Python…
permissive · top 1,000 on PyPI
extructExtracts structured metadata from HTML markup…
permissive · top 15,000 on PyPI
rdflibRDFLib is a Python library for parsing,…
permissive · top 1,000 on PyPI
html5rdfParses HTML documents into tree structures…
permissive · top 5,000 on PyPI
rdflib-jsonldProvides JSON-LD parsing and serialization for…
permissive · top 15,000 on PyPI
owlrlImplements OWL2 RL Profile and RDFS inference…
unclear · top 5,000 on PyPI
CFGraphCFGraph extends rdflib's Graph to read RDF…
permissive · top 15,000 on PyPI
SPARQLWrapperSPARQLWrapper provides a Python interface to…
unclear · top 5,000 on PyPI
PyLDPyLD is a Python implementation of the JSON-LD…
permissive · top 15,000 on PyPI
PyShExPyShEx parses and validates RDF data against…
permissive · top 15,000 on PyPI
pymanticPymantic parses and queries RDF and semantic…
permissive · top 15,000 on PyPI