Skip to main content

A generic pipeline that can be used to map raw data to RDF.

Project description

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.py190100% 
   utils.py3355 85%
   warnings.py20100% 
data2rdf/models
   init.py30100% 
   base.py4744 91%
   graph.py1503535 77%
   mapping.py4011 98%
data2rdf/modes
   init.py40100% 
data2rdf/parsers
   init.py60100% 
   base.py1341111 92%
   csv.py1682020 88%
   excel.py1751717 90%
   json.py1882929 85%
   utils.py791111 86%
data2rdf/pipelines
   init.py20100% 
   main.py8299 89%
data2rdf/qudt
   init.py00100% 
   utils.py421212 71%
TOTAL117915487% 

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

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

data2rdf-2.1.0.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

data2rdf-2.1.0-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

Details for the file data2rdf-2.1.0.tar.gz.

File metadata

  • Download URL: data2rdf-2.1.0.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for data2rdf-2.1.0.tar.gz
Algorithm Hash digest
SHA256 0ac3e320908d2c3f991f760acbea556018f21fcc8288dab8923fd9e6cb2bd995
MD5 0f8ec2495ba9cefb1bfe75b0cdb1ef8f
BLAKE2b-256 1221f341812341356b89875579bbced52962951b5ce8455409097dc5e25adf5c

See more details on using hashes here.

Provenance

File details

Details for the file data2rdf-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: data2rdf-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for data2rdf-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 940db6fbf25f2ee5823a194b9eb7c6c398032599ac5ef4e6164a74cde197f407
MD5 3e4af46246a83949e90b852ec31bf6d3
BLAKE2b-256 30468eaf0479df931058d664acb82e2149236d78d0d8117ec11c57096d2f70f3

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page