skillfed

pyrdfa3

pyRdfa distiller/parser library

pyrdfa3 v3.6.5 585.8K downloads/30d#5,885 on PyPI1
License unclear AGING released

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 pyrdfa3

uv

uv add pyrdfa3

poetry

poetry add pyrdfa3

Installing 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

License :: OSI Approved :: W3C LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

rdfa parserextract rdf from htmlrdfa distillersemantic web markuphtml rdfa extractionrdflib rdfaw3c rdfa 1.1
semantic-weblinked-datardf

More HTML packages