Skip to content

opencitations/triplelite

Repository files navigation

TripleLite

Lightweight in-memory RDF triple store for Python with configurable indexing.

PyPI Python Tests Coverage REUSE License: ISC

Install

pip install triplelite

For rdflib interop:

pip install triplelite[rdflib]

Quick start

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.

License

ISC

About

Lightweight in-memory RDF triple store for Python with configurable indexing

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages