Skip to main content

data2rdf

A pipeline for generating data representation in RDF out of raw data given in ASCII, CSV, JSON or EXCEL format.

https://data2rdf.readthedocs.io/en/latest/

Coverage

Coverage Report
FileStmtsMissCoverMissing
data2rdf
   init.py50100% 
   config.py2711 96%
   utils.py1222 83%
   warnings.py30100% 
data2rdf/models
   init.py30100% 
   base.py5455 91%
   graph.py14688 95%
   mapping.py4711 98%
   utils.py581414 76%
data2rdf/modes
   init.py40100% 
data2rdf/parsers
   init.py60100% 
   base.py1531717 89%
   csv.py1682020 88%
   excel.py1831717 91%
   json.py2353939 83%
   utils.py1031010 90%
data2rdf/pipelines
   init.py20100% 
   main.py951616 83%
data2rdf/qudt
   init.py00100% 
   utils.py551616 71%
TOTAL135916688% 

Installation

Install for using the package

Either install the package from the pypi

pip install data2rdf

Install for development

Install the package from the source code:

git clone git@github.com:MI-FraunhoferIWM/data2rdf.git
cd data2rdf
pip install -e .

Unit tests

Before running the unit tests, please install the needed packages:

pip install data2rdf[tests]

Afterwards, run the unittest with:

pytest

Building the docs locally

HTML

A server will start, generate the docs and listen for changes in the source files. This can be done by using docker or installing the development environment directly on the you machine. Next are installation guides for Docker and Linux OS.

Docker

First, build the Docker image by running the following command:

$ docker build -f docs.Dockerfile -t data2rdf-docs .

Then, start the program by running:

$ docker run -it --rm -v $PWD:/app -p 8000:8000 data2rdf-docs

Linux

At an OS level (these commands work on Linux Debian):

$ sudo apt install pandoc graphviz default-jre
$ sudo apt-get install texlive-latex-recommended \
                       texlive-latex-extra \
                       texlive-fonts-recommended \
                       latexmk

The python dependencies:

$ pip install .[docs]

Now you can start the server and render the docs:

$ sphinx-autobuild docs/source docs/build/html

The documentation will be available on http://127.0.0.1:8000.

PDF (LaTeX)

To generate a PDF of the documentation, simply run (from the root project folder):

make -C docs latexpdf

The generated PDF can be found under docs/build/latex/data2rdf_docs.pdf

Metadata

Release files for data2rdf 2.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for data2rdf 2.5.0
File Size Uploaded
data2rdf-2.5.0.tar.gz 47.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for data2rdf 2.5.0
File Interpreter ABI Platform
data2rdf-2.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 122.7 kB

Release files / data2rdf-2.5.0.tar.gz

Download URL data2rdf-2.5.0.tar.gz
Size 47.2 kB
Tags Source
SHA-256 checksum
How to use checksums
21cae1f9fa72962c63b0948fd9bc728a6927cdf4c2f3ebe5b5f6d52cbdadbb22
BLAKE2b-256 checksum
How to use checksums
65add2862e24a5b19619fd64fb13cbb4f859e139e7139b472082f64cccdc86a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / data2rdf-2.5.0-py3-none-any.whl

Download URL data2rdf-2.5.0-py3-none-any.whl
Size 75.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02654dda03c8269f30e2dcd651feda4bdafa4ffadd29e3e863e9e079e2dd1a11
BLAKE2b-256 checksum
How to use checksums
39fd5d67c495a4829c97eb362a6c1133ea853b2927e7f73bc049b412ad1793b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page