https://github.com/opencitations/triplelite
Lightweight in-memory RDF triple store for Python with configurable indexing
https://github.com/opencitations/triplelite
python rdf yagni-principle
Last synced: about 1 month ago
JSON representation
Lightweight in-memory RDF triple store for Python with configurable indexing
- Host: GitHub
- URL: https://github.com/opencitations/triplelite
- Owner: opencitations
- License: isc
- Created: 2026-04-14T17:57:28.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2026-04-15T16:42:32.000Z (about 2 months ago)
- Last Synced: 2026-04-15T17:33:01.797Z (about 2 months ago)
- Topics: python, rdf, yagni-principle
- Language: Python
- Homepage: https://opencitations.github.io/triplelite/
- Size: 121 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# TripleLite
Lightweight in-memory RDF triple store for Python, optimized for speed and memory efficiency with a C core.
[](https://pypi.org/project/triplelite/)
[](https://pypi.org/project/triplelite/)
[](https://github.com/opencitations/triplelite)
[](https://github.com/opencitations/triplelite/actions/workflows/test.yml)
[](https://opencitations.github.io/triplelite/coverage/)
[](https://api.reuse.software/info/github.com/opencitations/triplelite)
[](LICENSE)
## Install
```sh
pip install triplelite
```
For [rdflib](https://rdflib.readthedocs.io/) interop:
```sh
pip install triplelite[rdflib]
```
## Quick start
```python
from triplelite import TripleLite, RDFTerm
g = TripleLite()
g.add(("http://example.org/s", "http://example.org/p", RDFTerm("uri", "http://example.org/o")))
for s, p, o in g.triples(("http://example.org/s", None, None)):
print(s, p, o.value)
```
See the full documentation at [opencitations.github.io/triplelite](https://opencitations.github.io/triplelite).
## License
[ISC](LICENSES/ISC.txt)