File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33Bulk 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```
626CREATE 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
You can’t perform that action at this time.
0 commit comments