oxivault 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
oxivault-0.1.0/LICENSE ADDED
@@ -0,0 +1,211 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License.
67
+
68
+ Subject to the terms and conditions of this License, each Contributor
69
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
70
+ royalty-free, irrevocable copyright license to reproduce, prepare
71
+ Derivative Works of, publicly display, publicly perform, sublicense,
72
+ and distribute the Work and such Derivative Works in Source or Object
73
+ form.
74
+
75
+ 3. Grant of Patent License.
76
+
77
+ Subject to the terms and conditions of this License, each Contributor
78
+ hereby grants to You a perpetual, worldwide, non-exclusive, no-charge,
79
+ royalty-free, irrevocable (except as stated in this section) patent
80
+ license to make, have made, use, offer to sell, sell, import, and
81
+ otherwise transfer the Work, where such license applies only to those
82
+ patent claims licensable by such Contributor that are necessarily
83
+ infringed by their Contribution(s) alone or by combination of their
84
+ Contribution(s) with the Work to which such Contribution(s) was
85
+ submitted. If You institute patent litigation against any entity
86
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
87
+ the Work or a Contribution incorporated within the Work constitutes
88
+ direct or contributory patent infringement, then any patent licenses
89
+ granted to You under this License for that Work shall terminate as of
90
+ the date such litigation is filed.
91
+
92
+ 4. Redistribution.
93
+
94
+ You may reproduce and distribute copies of the Work or Derivative Works
95
+ thereof in any medium, with or without modifications, and in Source or
96
+ Object form, provided that You meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding those notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions.
135
+
136
+ Unless You explicitly state otherwise, any Contribution intentionally
137
+ submitted for inclusion in the Work by You to the Licensor shall be
138
+ under the terms and conditions of this License, without any additional
139
+ terms or conditions. Notwithstanding the above, nothing herein shall
140
+ supersede or modify the terms of any separate license agreement you may
141
+ have executed with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks.
144
+
145
+ This License does not grant permission to use the trade names,
146
+ trademarks, service marks, or product names of the Licensor, except as
147
+ required for reasonable and customary use in describing the origin of
148
+ the Work and reproducing the content of the NOTICE file.
149
+
150
+ 7. Disclaimer of Warranty.
151
+
152
+ Unless required by applicable law or agreed to in writing, Licensor
153
+ provides the Work (and each Contributor provides its Contributions) on
154
+ an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
155
+ express or implied, including, without limitation, any warranties or
156
+ conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR
157
+ A PARTICULAR PURPOSE. You are solely responsible for determining the
158
+ appropriateness of using or redistributing the Work and assume any
159
+ risks associated with Your exercise of permissions under this License.
160
+
161
+ 8. Limitation of Liability.
162
+
163
+ In no event and under no legal theory, whether in tort (including
164
+ negligence), contract, or otherwise, unless required by applicable law
165
+ (such as deliberate and grossly negligent acts) or agreed to in
166
+ writing, shall any Contributor be liable to You for damages, including
167
+ any direct, indirect, special, incidental, or consequential damages of
168
+ any character arising as a result of this License or out of the use or
169
+ inability to use the Work (including but not limited to damages for
170
+ loss of goodwill, work stoppage, computer failure or malfunction, or
171
+ any and all other commercial damages or losses), even if such
172
+ Contributor has been advised of the possibility of such damages.
173
+
174
+ 9. Accepting Warranty or Additional Liability.
175
+
176
+ While redistributing the Work or Derivative Works thereof, You may
177
+ choose to offer, and charge a fee for, acceptance of support, warranty,
178
+ indemnity, or other liability obligations and/or rights consistent with
179
+ this License. However, in accepting such obligations, You may act only
180
+ on Your own behalf and on Your sole responsibility, not on behalf of
181
+ any other Contributor, and only if You agree to indemnify, defend, and
182
+ hold each Contributor harmless for any liability incurred by, or claims
183
+ asserted against, such Contributor by reason of your accepting any such
184
+ warranty or additional liability.
185
+
186
+ END OF TERMS AND CONDITIONS
187
+
188
+ APPENDIX: How to apply the Apache License to your work.
189
+
190
+ To apply the Apache License to your work, attach the following
191
+ boilerplate notice, with the fields enclosed by brackets "[]"
192
+ replaced with your own identifying information. (Don't include
193
+ the brackets!) The text should be enclosed in the appropriate
194
+ comment syntax for the file format. We also recommend that a
195
+ file or class name and description of purpose be included on the
196
+ same "printed page" as the copyright notice for easier
197
+ identification within third-party archives.
198
+
199
+ Copyright 2026 Daniel Kapitan
200
+
201
+ Licensed under the Apache License, Version 2.0 (the "License");
202
+ you may not use this file except in compliance with the License.
203
+ You may obtain a copy of the License at
204
+
205
+ http://www.apache.org/licenses/LICENSE-2.0
206
+
207
+ Unless required by applicable law or agreed to in writing, software
208
+ distributed under the License is distributed on an "AS IS" BASIS,
209
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
210
+ See the License for the specific language governing permissions and
211
+ limitations under the License.
@@ -0,0 +1,216 @@
1
+ Metadata-Version: 2.4
2
+ Name: oxivault
3
+ Version: 0.1.0
4
+ Summary: Vault-LD knowledge graph store on object storage
5
+ Keywords: vault-ld,knowledge-graph,rdf,sparql,obsidian,markdown,s3,fastapi
6
+ Author: Daniel Kapitan
7
+ Author-email: Daniel Kapitan <daniel@kapitan.net>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.14
14
+ Classifier: Programming Language :: Python :: Implementation :: CPython
15
+ Classifier: Topic :: Database
16
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Topic :: Text Processing :: Markup :: Markdown
18
+ Requires-Dist: boto3>=1.35.0
19
+ Requires-Dist: click>=8.5.0
20
+ Requires-Dist: dulwich>=0.22.0
21
+ Requires-Dist: fastapi>=0.115.0
22
+ Requires-Dist: polars>=1.44.2
23
+ Requires-Dist: pydantic>=2.10.0
24
+ Requires-Dist: pyyaml>=6.0.2
25
+ Requires-Dist: rdflib>=7.1.0
26
+ Requires-Dist: uvicorn>=0.34.0
27
+ Requires-Python: >=3.14
28
+ Project-URL: Homepage, https://github.com/dkapitan/oxivault
29
+ Project-URL: Repository, https://github.com/dkapitan/oxivault
30
+ Project-URL: Issues, https://github.com/dkapitan/oxivault/issues
31
+ Project-URL: Changelog, https://github.com/dkapitan/oxivault/blob/main/CHANGELOG.md
32
+ Description-Content-Type: text/markdown
33
+
34
+ # OxiVault
35
+
36
+ [![PyPI](https://img.shields.io/pypi/v/oxivault)](https://pypi.org/project/oxivault/)
37
+ [![Python](https://img.shields.io/pypi/pyversions/oxivault)](https://pypi.org/project/oxivault/)
38
+
39
+ Vault-LD knowledge graph store on object storage.
40
+
41
+ `oxivault` converts Obsidian-style Markdown vaults to and from RDF using in-process Vault-LD reference algorithms and RDFLib. It supports local files, in-memory stores, Git repositories, and S3-compatible object storage, with CLI, Python, and HTTP API interfaces.
42
+
43
+ ## Upstream specification and reference credit
44
+
45
+ OxiVault builds on the original Vault-LD work from The Knowledge Graph Guys:
46
+
47
+ - Specification: [Vault-LD SPEC.md](https://github.com/The-Knowledge-Graph-Guys/vault-ld/blob/025e71be8d810e387dc451c920e05472d1c47170/SPEC.md)
48
+ - Reference implementation:
49
+ - [scripts/vault_to_rdf.py](https://github.com/The-Knowledge-Graph-Guys/vault-ld/blob/025e71be8d810e387dc451c920e05472d1c47170/scripts/vault_to_rdf.py)
50
+ - [scripts/rdf_to_vault.py](https://github.com/The-Knowledge-Graph-Guys/vault-ld/blob/025e71be8d810e387dc451c920e05472d1c47170/scripts/rdf_to_vault.py)
51
+
52
+ This project adapts those reference conversion algorithms for in-process library use under `src/oxivault/_reference/vault_ld/`.
53
+
54
+ ## Features
55
+
56
+ - **Vault ↔ RDF conversion**
57
+ - `vault2rdf`: export vault content to `schema.ttl` and `data.ttl`
58
+ - `rdf2vault`: ingest RDF into Markdown notes with frontmatter
59
+ - **Graph access and querying**
60
+ - Canonical triples table via `Vault.triples()` (Polars DataFrame)
61
+ - SPARQL querying via `Vault.query()` and `oxivault query`
62
+ - Graph exploration via `neighbors()`, `backlinks()`, `search()`, `search_body()`
63
+ - **Note CRUD with optimistic concurrency**
64
+ - `get_note()`, `put_note()`, `delete_note()`, `list_notes()`, `exists_note()`
65
+ - **ObjectStore backends**
66
+ - `LocalDirStore`, `MemoryStore`, `S3Store`, `GitStore`
67
+ - **Sync engine**
68
+ - Two-way sync between local vaults and S3-compatible storage (`oxivault sync`)
69
+ - **HTTP API server (FastAPI)**
70
+ - Endpoints for notes, graph querying, search, and reindexing
71
+
72
+ ## Requirements
73
+
74
+ - Python **3.14+**
75
+ - For S3 sync/backends: credentials configured for your AWS or S3-compatible provider (through boto3/client configuration)
76
+
77
+ ## Installation
78
+
79
+ ```bash
80
+ pip install oxivault
81
+ ```
82
+
83
+ With `uv`:
84
+
85
+ ```bash
86
+ uv add oxivault
87
+ ```
88
+
89
+ ## CLI quick start
90
+
91
+ Export a vault to RDF:
92
+
93
+ ```bash
94
+ oxivault vault2rdf ./my-vault --out-dir ./dist --source
95
+ ```
96
+
97
+ Ingest RDF into a vault:
98
+
99
+ ```bash
100
+ oxivault rdf2vault ./my-vault ./graph.ttl
101
+ ```
102
+
103
+ Run a SPARQL query:
104
+
105
+ ```bash
106
+ oxivault query ./my-vault "SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"
107
+ ```
108
+
109
+ Sync local vault with S3:
110
+
111
+ ```bash
112
+ oxivault sync ./my-vault --bucket my-s3-vault --direction both
113
+ ```
114
+
115
+ Start the HTTP API server:
116
+
117
+ ```bash
118
+ oxivault serve ./my-vault --host 127.0.0.1 --port 8000
119
+ ```
120
+
121
+ ## Python quick start
122
+
123
+ ```python
124
+ from oxivault.models import RdfDocument
125
+ from oxivault.store.memory import MemoryStore
126
+ from oxivault.vault import Vault
127
+
128
+ store = MemoryStore()
129
+ vault = Vault(store)
130
+
131
+ rdf = b"""@prefix ex: <https://example.org/> .
132
+ @prefix data: <https://example.org/data/> .
133
+
134
+ data:item1 a ex:Thing .
135
+ """
136
+
137
+ vault.rdf2vault([RdfDocument(content=rdf, format="turtle")])
138
+
139
+ triples = vault.triples()
140
+ print(triples.select(["subject", "predicate", "object"]))
141
+ ```
142
+
143
+ ## HTTP API
144
+
145
+ Run:
146
+
147
+ ```bash
148
+ oxivault serve ./my-vault --port 8000
149
+ ```
150
+
151
+ Then use:
152
+
153
+ - `GET /vault`
154
+ - `GET /notes`
155
+ - `GET /notes/{path}`
156
+ - `PUT /notes/{path}`
157
+ - `DELETE /notes/{path}`
158
+ - `POST /graph/sparql`
159
+ - `GET /graph/edges?subject=...`
160
+ - `GET /graph/issues`
161
+ - `GET /search?q=...`
162
+ - `POST /reindex`
163
+
164
+ Interactive docs are available at `/docs`.
165
+
166
+ ## Conversion behavior and constraints
167
+
168
+ - Not all RDF graphs are representable as vault notes. Check reported conversion issues when ingesting/exporting.
169
+ - CLI RDF ingest accepts `.ttl` (Turtle) and `.nt` (N-Triples) files.
170
+ - `Vault.vault2rdf()` and `oxivault vault2rdf` default to query-oriented export. Use `source=True` (Python) or `--source` (CLI) to include placement metadata for roundtrip location fidelity.
171
+ - `Vault.rdf2vault([])` is invalid (empty sequence). Passing a non-empty sequence with an empty RDF document is valid.
172
+
173
+ ## Examples
174
+
175
+ Runnable examples are in `examples/`:
176
+
177
+ - `examples/local_store_demo.py`
178
+ - `examples/roundtrip_demo.py`
179
+ - `examples/graph_query_demo.py`
180
+ - `examples/server_and_backends_demo.py`
181
+
182
+ Run an example:
183
+
184
+ ```bash
185
+ uv run python examples/roundtrip_demo.py
186
+ ```
187
+
188
+ ## Development
189
+
190
+ ```bash
191
+ uv sync --group dev
192
+ tara check
193
+ ```
194
+
195
+ ## Release and PyPI publishing
196
+
197
+ Publishing is automated with GitHub tags through `.github/workflows/publish.yml`.
198
+ Create and push an annotated SemVer tag to publish, for example:
199
+
200
+ ```bash
201
+ git tag -a v0.1.0 -m "Release 0.1.0"
202
+ git push origin v0.1.0
203
+ ```
204
+
205
+ The publish workflow builds source and wheel distributions and uploads them to PyPI with GitHub OIDC trusted publishing.
206
+ Configure a PyPI trusted publisher for `dkapitan/oxivault` that points to workflow `publish.yml` and environment `pypi`.
207
+
208
+ ## License
209
+
210
+ Licensed under the Apache License 2.0. See [LICENSE](LICENSE).
211
+
212
+ ## Project links
213
+
214
+ - Source: https://github.com/dkapitan/oxivault
215
+ - Issue tracker: https://github.com/dkapitan/oxivault/issues
216
+ - Changelog: [CHANGELOG.md](CHANGELOG.md)
@@ -0,0 +1,183 @@
1
+ # OxiVault
2
+
3
+ [![PyPI](https://img.shields.io/pypi/v/oxivault)](https://pypi.org/project/oxivault/)
4
+ [![Python](https://img.shields.io/pypi/pyversions/oxivault)](https://pypi.org/project/oxivault/)
5
+
6
+ Vault-LD knowledge graph store on object storage.
7
+
8
+ `oxivault` converts Obsidian-style Markdown vaults to and from RDF using in-process Vault-LD reference algorithms and RDFLib. It supports local files, in-memory stores, Git repositories, and S3-compatible object storage, with CLI, Python, and HTTP API interfaces.
9
+
10
+ ## Upstream specification and reference credit
11
+
12
+ OxiVault builds on the original Vault-LD work from The Knowledge Graph Guys:
13
+
14
+ - Specification: [Vault-LD SPEC.md](https://github.com/The-Knowledge-Graph-Guys/vault-ld/blob/025e71be8d810e387dc451c920e05472d1c47170/SPEC.md)
15
+ - Reference implementation:
16
+ - [scripts/vault_to_rdf.py](https://github.com/The-Knowledge-Graph-Guys/vault-ld/blob/025e71be8d810e387dc451c920e05472d1c47170/scripts/vault_to_rdf.py)
17
+ - [scripts/rdf_to_vault.py](https://github.com/The-Knowledge-Graph-Guys/vault-ld/blob/025e71be8d810e387dc451c920e05472d1c47170/scripts/rdf_to_vault.py)
18
+
19
+ This project adapts those reference conversion algorithms for in-process library use under `src/oxivault/_reference/vault_ld/`.
20
+
21
+ ## Features
22
+
23
+ - **Vault ↔ RDF conversion**
24
+ - `vault2rdf`: export vault content to `schema.ttl` and `data.ttl`
25
+ - `rdf2vault`: ingest RDF into Markdown notes with frontmatter
26
+ - **Graph access and querying**
27
+ - Canonical triples table via `Vault.triples()` (Polars DataFrame)
28
+ - SPARQL querying via `Vault.query()` and `oxivault query`
29
+ - Graph exploration via `neighbors()`, `backlinks()`, `search()`, `search_body()`
30
+ - **Note CRUD with optimistic concurrency**
31
+ - `get_note()`, `put_note()`, `delete_note()`, `list_notes()`, `exists_note()`
32
+ - **ObjectStore backends**
33
+ - `LocalDirStore`, `MemoryStore`, `S3Store`, `GitStore`
34
+ - **Sync engine**
35
+ - Two-way sync between local vaults and S3-compatible storage (`oxivault sync`)
36
+ - **HTTP API server (FastAPI)**
37
+ - Endpoints for notes, graph querying, search, and reindexing
38
+
39
+ ## Requirements
40
+
41
+ - Python **3.14+**
42
+ - For S3 sync/backends: credentials configured for your AWS or S3-compatible provider (through boto3/client configuration)
43
+
44
+ ## Installation
45
+
46
+ ```bash
47
+ pip install oxivault
48
+ ```
49
+
50
+ With `uv`:
51
+
52
+ ```bash
53
+ uv add oxivault
54
+ ```
55
+
56
+ ## CLI quick start
57
+
58
+ Export a vault to RDF:
59
+
60
+ ```bash
61
+ oxivault vault2rdf ./my-vault --out-dir ./dist --source
62
+ ```
63
+
64
+ Ingest RDF into a vault:
65
+
66
+ ```bash
67
+ oxivault rdf2vault ./my-vault ./graph.ttl
68
+ ```
69
+
70
+ Run a SPARQL query:
71
+
72
+ ```bash
73
+ oxivault query ./my-vault "SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"
74
+ ```
75
+
76
+ Sync local vault with S3:
77
+
78
+ ```bash
79
+ oxivault sync ./my-vault --bucket my-s3-vault --direction both
80
+ ```
81
+
82
+ Start the HTTP API server:
83
+
84
+ ```bash
85
+ oxivault serve ./my-vault --host 127.0.0.1 --port 8000
86
+ ```
87
+
88
+ ## Python quick start
89
+
90
+ ```python
91
+ from oxivault.models import RdfDocument
92
+ from oxivault.store.memory import MemoryStore
93
+ from oxivault.vault import Vault
94
+
95
+ store = MemoryStore()
96
+ vault = Vault(store)
97
+
98
+ rdf = b"""@prefix ex: <https://example.org/> .
99
+ @prefix data: <https://example.org/data/> .
100
+
101
+ data:item1 a ex:Thing .
102
+ """
103
+
104
+ vault.rdf2vault([RdfDocument(content=rdf, format="turtle")])
105
+
106
+ triples = vault.triples()
107
+ print(triples.select(["subject", "predicate", "object"]))
108
+ ```
109
+
110
+ ## HTTP API
111
+
112
+ Run:
113
+
114
+ ```bash
115
+ oxivault serve ./my-vault --port 8000
116
+ ```
117
+
118
+ Then use:
119
+
120
+ - `GET /vault`
121
+ - `GET /notes`
122
+ - `GET /notes/{path}`
123
+ - `PUT /notes/{path}`
124
+ - `DELETE /notes/{path}`
125
+ - `POST /graph/sparql`
126
+ - `GET /graph/edges?subject=...`
127
+ - `GET /graph/issues`
128
+ - `GET /search?q=...`
129
+ - `POST /reindex`
130
+
131
+ Interactive docs are available at `/docs`.
132
+
133
+ ## Conversion behavior and constraints
134
+
135
+ - Not all RDF graphs are representable as vault notes. Check reported conversion issues when ingesting/exporting.
136
+ - CLI RDF ingest accepts `.ttl` (Turtle) and `.nt` (N-Triples) files.
137
+ - `Vault.vault2rdf()` and `oxivault vault2rdf` default to query-oriented export. Use `source=True` (Python) or `--source` (CLI) to include placement metadata for roundtrip location fidelity.
138
+ - `Vault.rdf2vault([])` is invalid (empty sequence). Passing a non-empty sequence with an empty RDF document is valid.
139
+
140
+ ## Examples
141
+
142
+ Runnable examples are in `examples/`:
143
+
144
+ - `examples/local_store_demo.py`
145
+ - `examples/roundtrip_demo.py`
146
+ - `examples/graph_query_demo.py`
147
+ - `examples/server_and_backends_demo.py`
148
+
149
+ Run an example:
150
+
151
+ ```bash
152
+ uv run python examples/roundtrip_demo.py
153
+ ```
154
+
155
+ ## Development
156
+
157
+ ```bash
158
+ uv sync --group dev
159
+ tara check
160
+ ```
161
+
162
+ ## Release and PyPI publishing
163
+
164
+ Publishing is automated with GitHub tags through `.github/workflows/publish.yml`.
165
+ Create and push an annotated SemVer tag to publish, for example:
166
+
167
+ ```bash
168
+ git tag -a v0.1.0 -m "Release 0.1.0"
169
+ git push origin v0.1.0
170
+ ```
171
+
172
+ The publish workflow builds source and wheel distributions and uploads them to PyPI with GitHub OIDC trusted publishing.
173
+ Configure a PyPI trusted publisher for `dkapitan/oxivault` that points to workflow `publish.yml` and environment `pypi`.
174
+
175
+ ## License
176
+
177
+ Licensed under the Apache License 2.0. See [LICENSE](LICENSE).
178
+
179
+ ## Project links
180
+
181
+ - Source: https://github.com/dkapitan/oxivault
182
+ - Issue tracker: https://github.com/dkapitan/oxivault/issues
183
+ - Changelog: [CHANGELOG.md](CHANGELOG.md)