Skip to main content

Data Representation Language for Reading Heterogeneous Datasets

Project description

D-REPR

PyPI Python Build Status GitHub Issues Contributions welcome License

Dataset Representation Language for Reading Heterogeneous Datasets to RDF or JSON. The original dataset can be in different formats (e.g., JSON, CSV, Spreadsheets, etc), layouts (e.g., relational tables, matrix tables, etc), and can contain multiple files (e.g., one file contains data and another file contains data definitions or linked entities).

Table of Contents

Installation

From PyPi: pip install drepr

If you need to process netCDF or fiona, install pip install drepr[fiona,netcdf]. Installing these libraries requires you to have netcdf and gdal preinstalled and configured in your system.

If you want to install from source or have trouble during installation, please look in the Wiki Installation

How D-REPR works

There are four steps in D-REPR to model a dataset:

  1. Define resources: a resource can be a physical file in CSV, JSON format. A dataset may have multiple resources such as one main CSV file and a data-definition dictionary in a JSON file.
  2. Define attributes: each attribute denotes values that belong to a group. For example, in a relational table, each column is an attribute.
  3. Define alignments between attributes: a method to get a value of an attribute from a value of a corresponding attribute. The common methods are accessing by index and by value. For example, in a relational table of products, given a product id, we can retrieve the corresponding product name in the same row (by index). This step essentially defines the layout of the dataset.
  4. Define a semantic model: given each attribute a type and relationships between attributes.

Docs and Examples

Please see the paper D-REPR: A Language for Describing and Mapping Diversely-Structured Data Sources to RDF and the slides.

The example datasets can be found in the example folder.

Testing

Testing rust package: cargo test --no-default-features --features pyo3/auto-initialize

Contributing

Please read the Wiki Contributing for details on our code of conduct, how to setup the development environment and the process for submitting pull requests to us.

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

drepr-2.11.2.tar.gz (9.7 MB view details)

Uploaded Source

Built Distributions

drepr-2.11.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

drepr-2.11.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

drepr-2.11.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

drepr-2.11.2-cp312-none-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.12 Windows x86-64

drepr-2.11.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

drepr-2.11.2-cp312-cp312-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12 macOS 10.14+ x86-64

drepr-2.11.2-cp311-none-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.11 Windows x86-64

drepr-2.11.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

drepr-2.11.2-cp311-cp311-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11 macOS 10.14+ x86-64

drepr-2.11.2-cp310-none-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.10 Windows x86-64

drepr-2.11.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

drepr-2.11.2-cp310-cp310-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10 macOS 10.14+ x86-64

drepr-2.11.2-cp39-none-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.9 Windows x86-64

drepr-2.11.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

drepr-2.11.2-cp39-cp39-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.9 macOS 10.14+ x86-64

drepr-2.11.2-cp38-none-win_amd64.whl (2.7 MB view details)

Uploaded CPython 3.8 Windows x86-64

drepr-2.11.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

drepr-2.11.2-cp38-cp38-macosx_10_14_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.8 macOS 10.14+ x86-64

File details

Details for the file drepr-2.11.2.tar.gz.

File metadata

  • Download URL: drepr-2.11.2.tar.gz
  • Upload date:
  • Size: 9.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.4.0

File hashes

Hashes for drepr-2.11.2.tar.gz
Algorithm Hash digest
SHA256 2b48fc2786ebf75a88418cbe3581c330bdc3c4fd565e0f0dbe44ae5cb77e1c56
MD5 78cf0774076d751cf9b102ebffcb6581
BLAKE2b-256 8dbd4261da202b2c0367eb5b78ac26621f1c2f3510f3fd0d7f5a50b4cba56c1f

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4a3af4b95cedf304539443adcf6da189f3692f8c66b3a7a9256a4871ceafeda7
MD5 911dd19b556719e9a471a8eb113285e6
BLAKE2b-256 6d166174cf5ce3324fc3d83e07be02168b1483595d8fd1942445b5ad8fe1ce96

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9bddc9d0f2b5dd719699e1d221e149907125f19912a4e0697dfd9f79e40574a6
MD5 d632cfe7c128be4f18256c5aa5a3009c
BLAKE2b-256 a1e1cb0b947691c69c08e4988101a728bbc063e8dd095451b63df2ad0d7c4301

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a74c95d70d62272aa41f7426b7394aaf4a9b5507d5fa3912a2f96eda36a37400
MD5 2009e3b036a86fb825954645dfa959e7
BLAKE2b-256 de365351d71d12d0508a3f004adebb6bd60221369511c19da4c2268a7a005465

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 a7da77811778966091a8895d830c10fb2934bbe4580369dff66c180fc8062c21
MD5 dcdb121fa207dfe65b204ded2f5275d8
BLAKE2b-256 ffb1a04c9e7bf7eb60ae93526f268f78294defda8fab48fa7f55e6b555bda2ad

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4f556fee898b8241895977321cb514ccebbf823219dd9af53b2877ecc3ff0977
MD5 e813ebfb01d7f9ac4d262d1a4dd76966
BLAKE2b-256 bf9e9c71dba54cda31249a8e13ba14a55b1c53f2cd2df4d4597fa989d33b5dca

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp312-cp312-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp312-cp312-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 85778030da54d561ffe0880a0cf67626997e94eff457545fac6322d02807b020
MD5 33932a55cec58c6daef52750d74b9ee7
BLAKE2b-256 32f3692922967aeba2a7976bd804f4006bd9de2b8824087b3775791782f99ee6

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp311-none-win_amd64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 82ed85f0c2d285763716325002184edf82df7d4006d5731f1dcf3545450febcc
MD5 8af661c607d8da89110de3cb635a68e6
BLAKE2b-256 df1b4be0295bddf3d85eb64828d96bb8cb554baba952a671a0ee05282804352d

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0c6f2b93e6e807b444f223efea01ef6e4a5e109ef3146ef1b3ea5583dceff975
MD5 c0c78bba50f21facdf63be59e970ab27
BLAKE2b-256 624d860c36559ece9b3f2079afaf48fa35b8c7341b57e3a2959ef367ab431a34

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp311-cp311-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp311-cp311-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 971f84c8a02ab8cf075b8f7467f30c2d8e8303f876e2b57b6f6e5e4bf48eab1f
MD5 fa030184638ec489ed706171c7d03dbf
BLAKE2b-256 19ec9385845c3e45ca91ad1bdc71244905037efec750e64b0d78e39435f0af02

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp310-none-win_amd64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 d5a0a0243dab56b9974a1715a35cb314be4995eedee868fcfc54f66ce62951b6
MD5 7b5e98024a728ec619a84562ee54ca7c
BLAKE2b-256 92bb9ab602beff883a17064425dc55579b5fd9b83adf1a4966dedae196b3e990

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 818e13bc6f26cf3e683484306ab19f0005c0856c47b4d8cd528c2073baeb50fc
MD5 56118c5d2d6a367706162aca737712bf
BLAKE2b-256 cccf2bbc4c1fe9f97a728fef6c78acb9aa8d7a8ac8b5ac8a9eac2c327472eb27

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp310-cp310-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp310-cp310-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 97446601bf08ba4ee2fcaa461cbaa038a16d562843ee01107ab752e19400afac
MD5 b62c4cddafd7a9bcb6ed2233b76ff4c9
BLAKE2b-256 dd8676673c5060e69720098edf3baae5a355b88f1b6299d180caf2355fdc65be

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp39-none-win_amd64.whl.

File metadata

  • Download URL: drepr-2.11.2-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.4.0

File hashes

Hashes for drepr-2.11.2-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 311344640f0ad8dcb7ebb4f6d055d25767480fa19dcc3445591bb3521485c154
MD5 7b981ad5bea68fcc0d4c6d1d7fbcaab0
BLAKE2b-256 d5fe6769a96ca007a61cf85d6b8b8686dba2605986f719461d622aa73de93676

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 be19fb2b52425ba7ee99f3e7b51e18fce1186568920ef842c7104b1c5a040d63
MD5 6f88626b54cd26a53de259c57248152a
BLAKE2b-256 e8f4395d334c953537b97d83da3eade05f789352d405f74a446547a183dcb080

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp39-cp39-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 8c782fc4cc29dce95fc4b12da2abe5ffad6083cd5cce453bf66c5d045378157c
MD5 0ea04b54d85f216b5cde09b735fbe282
BLAKE2b-256 66699e59b9a38df59ccb08ee935c41d0e543f8ab4972fcfee33b233f5400b87d

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp38-none-win_amd64.whl.

File metadata

  • Download URL: drepr-2.11.2-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.4.0

File hashes

Hashes for drepr-2.11.2-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 581eabf00c8b6e4280f545a3035874c2b14f6458dd941211948ff7a4dc1e5502
MD5 d02475ff09cb8d14bac25c927a7c5ad1
BLAKE2b-256 7934205eaca8401b2e1807c3dd7e1eac8e6efd8bd247ce24c169df8da757031f

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d66b540667d579fcf98424476f2bd1b3bc97d6fe26d2c6dbb1efcfc187bea1d0
MD5 22648a478a1fa37c6775c86be1ef9d09
BLAKE2b-256 cb95ef036e03f2b02e36fa2ce9a1d4922fea6f4f4188e4dd7fed71145a14c49a

See more details on using hashes here.

File details

Details for the file drepr-2.11.2-cp38-cp38-macosx_10_14_x86_64.whl.

File metadata

File hashes

Hashes for drepr-2.11.2-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm Hash digest
SHA256 e1c784b7e6f0c10e1b5a41af837681fcf4f4aacf15ba39db687f403a221771ae
MD5 f9f58d96fe3540c838e88f54e2606b88
BLAKE2b-256 f56e46665d2fb701e40d66fd91479c92246b4cc487604ce14684d52cc09a5f10

See more details on using hashes here.

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