Skip to main content

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


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.3-py3-none-any.whl (263.2 kB view details)

Uploaded Python 3

File details

Details for the file nfdi4culture-0.3-py3-none-any.whl.

File metadata

  • Download URL: nfdi4culture-0.3-py3-none-any.whl
  • Upload date:
  • Size: 263.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for nfdi4culture-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8757140e330dcd9168f2ec512f717c4f7708a33377bd0253230e04e46f16fb30
MD5 efa13c5868b9a0eb652144fe2d5e1e86
BLAKE2b-256 43c21babad6c22e77481b8ccdb7eae1eee5a36a9959005ea6adac45bd8817894

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page