metadata_store.py 778 B

123456789101112131415161718192021222324252627
  1. from os import path
  2. from lakesuperior.store.base_lmdb_store import BaseLmdbStore
  3. from lakesuperior import env
  4. class MetadataStore(BaseLmdbStore):
  5. """
  6. LMDB store for RDF metadata.
  7. Note that even though this store connector uses LMDB as the
  8. :py::class:`LmdbStore` class, it is separate because it is not part of the
  9. RDFLib store implementation and carries higher-level concepts such as LDP
  10. resource URIs.
  11. """
  12. db_labels = ('checksums',)
  13. """
  14. At the moment only ``checksums`` is implemented. It is a registry of
  15. LDP resource graphs, indicated in the key by their UID, and their
  16. cryptographic hashes.
  17. """
  18. path = path.join(
  19. env.app_globals.config['application']['store']['ldp_rs']['location'],
  20. 'metadata')