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 download_data, load_data

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

dataset_dir = download_data(url, base_dir="./datasets")
data = load_data(dataset_dir, summarize=True, lazy=True)

How To Load Huggingface Models

from dcat_ap_hub import load_hf_model

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

model, processor, metadata = load_hf_model(url)

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.0.3.tar.gz (88.7 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.0.3-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dcat_ap_hub-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2eee318341ca32f82ac1e25c0ed7e5f9e2e3a2a23825cbcde56d4c98b0ff2ab8
MD5 bad4e8dd6c2b94450f753c75fbfb23c4
BLAKE2b-256 90b17be7dd3b70daead39ea8ce90e4e7c98f5b8b357b128fcc3f5728a5271d82

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dcat_ap_hub-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 300b8868ab4bb0c96d8898f5c29ce618c07554653d96ef81b0a2185417cc8c1f
MD5 c91204987e053119d0d067d3e02604f7
BLAKE2b-256 8cb7045e5c828aea7ebda07650ba69fd74f071985bdb9fffb5b9ae6e7df16d7f

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