Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Informasjonsforvaltning/fdk-rdf-parser

⚠️ Archived / Deprecated

This repository is no longer maintained. Its functionality has been replaced by:

➡️ https://github.com/Informasjonsforvaltning/fdk-parser-service


fdk-rdf-parser

This is a pypi-package, fdk-rdf-parser, that parses rdf-data to python-objects used by Felles datakatalog

Develop and run locally

Requirements

Install software:

% pyenv install 3.9.0
% pyenv local 3.9.0
% pip install poetry==1.4.2
% pip install nox==2023.4.22
% pip install nox-poetry==1.0.2
% poetry install

Environment variables

ORGANIZATION_CATALOG_BASE_URI=https://organization-catalog.staging.fellesdatakatalog.digdir.no
REFERENCE_DATA_BASE_URI=http://staging.fellesdatakatalog.digdir.no/reference-data
NEW_REFERENCE_DATA_BASE_URI=https://www.staging.fellesdatakatalog.digdir.no/new-reference-data

Running tests

pytest is used to run tests.

To run linters, safety, checkers and tests:

% nox

Code formatting:

% nox -rs black

Other helpful commands

Run tests outside of a nox session:

% poetry run pytest

Run specific nox sessions:

% nox -s mypy
% nox -rs lint

Run session with specified arguments:

% nox -s tests -- -vv

Creating a new release of the library

  • Manually change the version in pyproject.toml.
  • Optional: update other dependencies as well.
  • Run poetry update
  • All commits to the main branch on GitHub triggers the "Release Drafter"-action, it creates a release draft or adds the commit to an existing draft.
  • Click the Releases link on GitHub when you are ready to publish the draft, and then click the "Edit"-button (looks like a pencil) on the Draft version.
  • Check that the release-tag equals the version in pyproject before clicking the Publish release button. This triggers the Release-action, that uses poetry to release the new version to PyPI.

About

Parses dcat rdf to json

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 11

Languages