Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A library for mapping a data catalog to rdf

Project description

Tests codecov PyPI Read the Docs


A small Python library for mapping a data catalog to rdf

The library contains helper classes for the following dcat classes:

Other relevant classes are also supported, such as:

The library will map to the Norwegian Application Profile of the DCAT standard.



% pip install datacatalogtordf

Getting started

from datacatalogtordf import Catalog, Dataset

# Create catalog object
catalog = Catalog()
catalog.identifier = ""
catalog.title = {"en": "A dataset catalog"}
catalog.publisher = ""

# Create a dataset:
dataset = Dataset()
dataset.identifier = ""
dataset.title = {"nb": "inntektsAPI", "en": "incomeAPI"}
# Add dataset to catalog:

# get rdf representation in turtle (default)
rdf = catalog.to_rdf()



% pipx install poetry==1.1.4
% pipx install nox==2020.8.22
% pipx inject nox nox-poetry


% git clone
% cd datacatalogtordf
% pyenv install 3.8.2
% pyenv install 3.7.6
% pyenv local 3.8.2 3.7.6
% poetry install

Run all sessions

% nox

Run all tests with coverage reporting

% nox -rs tests


You can enter into Pdb by passing --pdb to pytest:

nox -rs tests -- --pdb

You can set breakpoints directly in code by using the function breakpoint().

Project details

Download files

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

Files for datacatalogtordf, version 1.3.0
Filename, size File type Python version Upload date Hashes
Filename, size datacatalogtordf-1.3.0-py3-none-any.whl (31.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size datacatalogtordf-1.3.0.tar.gz (23.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page