Skip to main content

A library for loading datasets and models whose metadata is provided in the DCAT-AP format.

Project description

DCAT-AP Hub

This library enables easy downloading and loading of datasets and models whose metadata is provided in the DCAT-AP format. Currently, only JSON-LD is supported.

How To Install

pip install dcat-ap-hub

How To Load Datasets

from dcat_ap_hub import Dataset

url = "https://data.europa.eu/api/hub/repo/datasets/7b715249-0c76-4592-9df6-f36b9a47f6e5.jsonld"

ds = Dataset.from_url(url)
files = ds.download(data_dir="./data")

How To Load Huggingface Models

from dcat_ap_hub import Dataset

url = "https://ki-daten.hlrs.de/hub/repo/datasets/6f75de8b60a9f8a2fdf7b69cbd86d9e64bcb3837.jsonld"

ds = Dataset.from_url(url)
ds.download(data_dir="./data")
model, processor, metadata = ds.load_model(model_dir="./models")

How To Process Datasets If Supported

from dcat_ap_hub import Dataset

url = "https://data.europa.eu/api/hub/repo/datasets/7b715249-0c76-4592-9df6-f36b9a47f6e5.jsonld"

ds = Dataset.from_url(url)
ds.download(data_dir="./data")
files = ds.process(processed_dir="./processed")

Funding

This project was developed using resources from the HammerHAI project, an EU co-funded AI Factory initiative operated by the High-Performance Computing Center Stuttgart and supported by the European Commission as well as German federal and state ministries. It is funded by the European High Performance Computing Joint Undertaking under Grant Agreement No. 101234027.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dcat_ap_hub-0.1.1.tar.gz (92.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dcat_ap_hub-0.1.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file dcat_ap_hub-0.1.1.tar.gz.

File metadata

  • Download URL: dcat_ap_hub-0.1.1.tar.gz
  • Upload date:
  • Size: 92.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for dcat_ap_hub-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fdd10182f9727e9a32644b469dd6dd1eeffbc206215dd061a3c1af19712dc129
MD5 90c3c88728ff39a3fda677fdd1967a8f
BLAKE2b-256 2649ed1333b88ec57a50808f954b2d1213bafad2bc180524417e74c231e6740b

See more details on using hashes here.

File details

Details for the file dcat_ap_hub-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dcat_ap_hub-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f5b515eeb9e48d355a1f2ac12e2e97cd0a2fa02ecb71122f15171a79bb0d339
MD5 476ba2d7919799ef5a95102dc4c3f7bf
BLAKE2b-256 b9eb94f08a723d2a883531ef1f8fdb8be4bdc4449b77211fdb762fb8d1a08680

See more details on using hashes here.

Supported by

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