rdf-sql-bulkloader
Bulk load of SQL table from RDF in Python
Install
pip install rdf-sql-bulkloader
Usage (Command Line)
rdf-sql-bulkloader load-sqlite -o cl.db cl.owl
Note: currently only sqlite supported
Usage (Programmatic)
See tests
Core table
CREATE TABLE statement (
id TEXT,
subject TEXT,
predicate TEXT,
object TEXT,
value TEXT,
datatype TEXT,
language TEXT,
graph TEXT
);
Prefixes
this uses the merged prefixmap from prefixmaps by default
This can be overridden programmatically when instantiating a loader, e.g
Explicit map:
loader = SqliteBulkloader(path=path, prefix_map={...})
Using pre-registered:
loader = SqliteBulkloader(path=path, named_prefix_maps=["obo", "prefixcc"])
- TODO: add override from CLI
Acknowledgements
This work was entirely inspired by James Overton's rdftab.rs
This cookiecutter project was developed from the sphintoxetry-cookiecutter template and will be kept up-to-date using cruft.
Metadata
Release files for rdf-sql-bulkloader 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rdf_sql_bulkloader-0.1.4.tar.gz | 5.3 kB | Without provenance | Details for rdf_sql_bulkloader-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rdf_sql_bulkloader-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for rdf_sql_bulkloader-0.1.4-py3-none-any.whl |
Total release size: 12.2 kB
Release files / rdf_sql_bulkloader-0.1.4.tar.gz
| Download URL | rdf_sql_bulkloader-0.1.4.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a4688e0cc15b7ded843c2ecb8c81bb3be8725e63273abda68274fb79ef68bfe
|
|
BLAKE2b-256 checksum How to use checksums |
ff39e6c81b43cf8798c1ffe777d11052f310cafb59e8905554d6105004774d19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / rdf_sql_bulkloader-0.1.4-py3-none-any.whl
| Download URL | rdf_sql_bulkloader-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f216a4e997e336f8ce1b08bc374d58407e7784f5bed51b04229501d749a2bdd
|
|
BLAKE2b-256 checksum How to use checksums |
94bd55fb2c8883cf9105f17d43038912c8cc33c410df1f29a43ca7cd67576775
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for rdf-sql-bulkloader 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.