rdf-sql-bulkloader
Project description
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](https://github.com/ontodev/rdftab.rs
This cookiecutter project was developed from the sphintoxetry-cookiecutter template and will be kept up-to-date using cruft.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for rdf-sql-bulkloader-0.1.0rc2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17660331ffc690c535537724ad1ab6fac38ac784b9b2d5c621b1fe9740d5ee0a |
|
MD5 | 2142205b29454176efab62a1828e02c1 |
|
BLAKE2b-256 | 02aeefd7154dd1fbeda5d26b4d501bdef3874c8d675ab70c2e83e57c5757524b |
Close
Hashes for rdf_sql_bulkloader-0.1.0rc2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d09953d71ccc48778f49ab2050e0f01ea87d10597ba28db6f3022dcffd552de |
|
MD5 | 20364df74180c1da6eb0b348d9439753 |
|
BLAKE2b-256 | 3dfc16ae7acd1a40fd1e2c38d64635e85ff4c033934c3bf293cac8aa206db1ef |