architecture.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. Lakesuperior Architecture
  2. =========================
  3. Lakesuperior is written in Python. It is not excluded that parts of the
  4. code may be rewritten in `Cython <http://cython.readthedocs.io/>`__ for
  5. performance.
  6. Multi-Modal Access
  7. ------------------
  8. Lakesuperior services and data are accessible in multiple ways:
  9. - Via HTTP. This is the canonical way to interact with LDP resources
  10. and conforms quite closely to the Fedora specs (currently v4).
  11. - Via command line. This method includes long-running admin tasks which
  12. are not available via HTTP.
  13. - Via a Python API. This method allows to use Python scripts to access
  14. the same methods available to the two methods above in a programmatic
  15. way. It is possible to write Python plugins or even to embed
  16. Lakesuperior in a Python application, even without running a web
  17. server.
  18. Architecture Overview
  19. ---------------------
  20. .. figure:: assets/lakesuperior_arch.png
  21. :alt: Lakesuperior Architecture
  22. Lakesuperior Architecture
  23. The Lakesuperior REST API provides access to the underlying Python API.
  24. All REST and CLI operations can be replicated by a Python program
  25. accessing this API.
  26. The main advantage of the Python API is that it makes it very easy to
  27. maipulate graph and binary data without the need to serialize or
  28. deserialize native data structures. This matters when handling large ETL
  29. jobs for example.
  30. The Python API is divided in three main areas:
  31. - Resource API: this API in charge of all the resource CRUD operations and
  32. implements the majority of the Fedora specs.
  33. - Admin API: exposes utility methods, mostly long-running maintenance jobs.
  34. - Query API: provides several facilities for querying repository data.
  35. See :doc:`API documentation<api>` for more details.