Skip to main content

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.catalog 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 concept to catalog:

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




% 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 0.1.0a3
Filename, size File type Python version Upload date Hashes
Filename, size datacatalogtordf-0.1.0a3-py3-none-any.whl (12.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size datacatalogtordf-0.1.0a3.tar.gz (10.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page