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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
oc_ocdm-11.0.22.tar.gz
(768.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
oc_ocdm-11.0.22-py3-none-any.whl
(105.6 kB
view details)
File details
Details for the file oc_ocdm-11.0.22.tar.gz.
File metadata
- Download URL: oc_ocdm-11.0.22.tar.gz
- Upload date:
- Size: 768.1 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb6c2a5e95567769dc3f838118e7424d6ecc2fa5e621ac0b54807e8240013ba4
|
|
| MD5 |
7b703e80f81e29ae98301a149519cf3e
|
|
| BLAKE2b-256 |
3a8c31be9dd0d4f66da6a355d512d0aa6879dc3ce2242d385d7892f729636597
|
File details
Details for the file oc_ocdm-11.0.22-py3-none-any.whl.
File metadata
- Download URL: oc_ocdm-11.0.22-py3-none-any.whl
- Upload date:
- Size: 105.6 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ab1652d55bbeb5dd9e5ca966397036e6e550b9524714cabc12547cb9e99668f
|
|
| MD5 |
fc5d910616fcea606f139d24cbf3c7a9
|
|
| BLAKE2b-256 |
00248ec264192d3fc76e1d9b167ca9c1e9e190111c0478ecd16d22291399a47c
|