This package provides a Python interface to the NFDI4Culture infrastructure.
Project description
Culture Python Package
Latest schema.org : https://schema.org/version/latest/schemaorg-current-https.jsonld
NFDI4Culture
This is a placeholder for the Python tools being developed to manage the infrastructure of NFDI4Culture
Example:
from nfdi4culture import cto
from lidolator import from_file
item = cto.Item()
item.datafeed = "https://nfdi4culture.de/id/E5320"
# Or should we have cto.DataFeed("https://nfdi4culture.de/id/E5320") and the rest happens from there?
# either of the above will set things like .publisher on the Item too.
# and create the relevant schema.DataFeedItem and schema.DataFeed triples?
item.sourcefile = "http://foo.com/bar/baz.oai-pmh?id=123456"
# the update method expects a dict with key-value mappings
# the cto.Item objet knows how to map a key and value to the relevant fields.
# How do we specify this field mapping?
# And do we split it into a NamedNode/Literal difference?
item.update(from_file(filepath))
item.ntriples()
# or
item.turtle()
TODO
- JS is working on scraper
Open Discussion Points
Should we use RDFlib? While it is very much a "batteries included" package, for large datasets (which we increasingly want to create) it is just too slow.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
nfdi4culture-0.2-py3-none-any.whl
(260.9 kB
view details)
File details
Details for the file nfdi4culture-0.2-py3-none-any.whl
.
File metadata
- Download URL: nfdi4culture-0.2-py3-none-any.whl
- Upload date:
- Size: 260.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a364dbe4b749678af22e8b2dabeee5b68ffa9bbd3ccad0a97948a7c2dd8affb8 |
|
MD5 | 44841ddcddab951530e350f1c323de56 |
|
BLAKE2b-256 | a65d9447d64229fe175e548e0f806fa79923b13744cf274924b00dda35a26928 |