oc_ocdm
Python library for creating, manipulating, and exporting RDF data compliant with the OpenCitations Data Model. It handles OCDM entities (bibliographic resources, agents, identifiers, etc.) without requiring direct knowledge of RDF or SPARQL.
Quick start
pip install oc_ocdm
from oc_ocdm.graph import GraphSet
from oc_ocdm import Storer
g_set = GraphSet("https://w3id.org/oc/meta/")
br = g_set.add_br("https://w3id.org/oc/meta/prov/pa/1")
br.has_title("OpenCitations Meta")
br.create_journal_article()
doi = g_set.add_id("https://w3id.org/oc/meta/prov/pa/1")
doi.create_doi("10.1162/qss_a_00292")
br.has_identifier(doi)
storer = Storer(g_set)
storer.store_graphs_in_file("output.jsonld")
For guides, API reference, and examples, see the documentation.
Metadata
Release files for oc-ocdm 11.0.22
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| oc_ocdm-11.0.22.tar.gz | 768.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| oc_ocdm-11.0.22-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 873.7 kB
Release files / oc_ocdm-11.0.22.tar.gz
| Download URL | oc_ocdm-11.0.22.tar.gz |
|---|---|
| Size | 768.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb6c2a5e95567769dc3f838118e7424d6ecc2fa5e621ac0b54807e8240013ba4
|
|
BLAKE2b-256 checksum How to use checksums |
3a8c31be9dd0d4f66da6a355d512d0aa6879dc3ce2242d385d7892f729636597
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / oc_ocdm-11.0.22-py3-none-any.whl
| Download URL | oc_ocdm-11.0.22-py3-none-any.whl |
|---|---|
| Size | 105.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6ab1652d55bbeb5dd9e5ca966397036e6e550b9524714cabc12547cb9e99668f
|
|
BLAKE2b-256 checksum How to use checksums |
00248ec264192d3fc76e1d9b167ca9c1e9e190111c0478ecd16d22291399a47c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for oc-ocdm 11.0.22
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.