Skip to main content

pyrdf-prefix

This project provides a Prefix utility and many predefined prefixes for many popular RDF vocabularies, like RDFS, SHACL, SKOS and OWL. It returns NamedNodes to be used with pyoxigraph.

Usage

from pyoxigraph import NamedNode
from pyrdf_prefix import Prefix

EX = Prefix('https://example.org/ns#')
assert EX.Sponge == NamedNode('https://example.org/ns#Sponge')
assert EX['Crusty-Crab'] == NamedNode('https://example.org/ns#Crusty-Crab')

It also predefines many well-known prefixes, like rdf, skos, sh:

from pyrdf_prefix import RDF, SKOS, SH
from pyoxigraph import Quad

def describe():
    return Quad(EX.MyRestaurant, RDF.type, SKOS.Concept)

Release files for pyrdf-prefix 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyrdf-prefix 0.2.1
File Size Uploaded
pyrdf_prefix-0.2.1.tar.gz 231.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyrdf-prefix 0.2.1
File Interpreter ABI Platform
pyrdf_prefix-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 481.1 kB

Release files / pyrdf_prefix-0.2.1.tar.gz

Download URL pyrdf_prefix-0.2.1.tar.gz
Size 231.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b28e7e1c2190d2322fc52f919cb8d2fa07ae806ff448051cc12150f269e9fb08
BLAKE2b-256 checksum
How to use checksums
02c08c67746c769acf66e5e7764470d1903c3b5a30f3a9ebf2c9f4eb89f773f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / pyrdf_prefix-0.2.1-py3-none-any.whl

Download URL pyrdf_prefix-0.2.1-py3-none-any.whl
Size 249.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a51b23599b4041c9f58bae95886fe20d963ebe0f3708d71cb905a65df5404f50
BLAKE2b-256 checksum
How to use checksums
b17d6c3ea76774cae40fcec5e3fcd7d7da40e4d29c465eb37c10df3f2b348bfc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page