Skip to content

Commit 886d0e5

Browse files
committed
docs
1 parent a9ccd79 commit 886d0e5

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
Bulk load of SQL table from RDF in Python
44

5+
## Install
6+
7+
```bash
8+
pip install rdf-sql-bulkloader
9+
```
10+
11+
## Usage (Command Line)
12+
13+
```
14+
rdf-sql-bulkloader load-sqlite -o cl.db cl.owl
15+
```
16+
17+
Note: currently only sqlite supported
18+
19+
## Usage (Programmatic)
20+
21+
See tests
22+
23+
## Core table
24+
525
```
626
CREATE TABLE statement (
727
id TEXT,
@@ -15,6 +35,26 @@ CREATE TABLE statement (
1535
);
1636
```
1737

38+
## Prefixes
39+
40+
this uses the merged prefixmap from [prefixmaps](https://github.com/linkml/prefixmaps) by default
41+
42+
This can be overridden programmatically when instantiating a loader, e.g
43+
44+
Explicit map:
45+
46+
```python
47+
loader = SqliteBulkloader(path=path, prefix_map={...})
48+
```
49+
50+
Using pre-registered:
51+
52+
```python
53+
loader = SqliteBulkloader(path=path, named_prefix_maps=["obo", "prefixcc"])
54+
```
55+
56+
- TODO: add override from CLI
57+
1858

1959
## Acknowledgements
2060

0 commit comments

Comments
 (0)