This Hydra-driven API provides functionality for creating and finding dimensions (dictionaries) share between all Cube Creator's cubes.
It is not standalone and deployed together with the Core API under a sub path /dimension
.
All resources have their base URL rewritten in the database. This way canonical identifiers are used, but the front end access the API on dereferencable API endpoints. Check the configuration section below.
Please refer to the latter for authentication and debugging information.
| meta
| https://cube.link/meta/
|
The API provides two distinct of functionalities:
- Retrieving Shared Dimensions from the store
- Managing user-defined Shared Dimensions
The API operates on instances of shared dimensions. A Shared Dimension is an RDF resource, found anywhere in the store, which is defined as
?dimension a schema:DefinedTermSet , meta:SharedDimension .
There are two endpoints: /term-sets
and /terms{?dimension}
which return collections of Shared Dimensions, and the terms they define respectively.
Any resource which has both schema:DefinedTermSet
and meta:SharedDimension
RDF Types will be returned.
The /terms{?dimension}
endpoint requires the URI of a Shared Dimension as the query string parameter.
TBD
These environment variables are required for the API to function correctly:
Variable | Description |
---|---|
MANAGED_DIMENSIONS_BASE |
Base URI for term sets and terms |
MANAGED_DIMENSIONS_GRAPH |
Named Graph in the database which contains user-created Shared Dimensions |
MANAGED_DIMENSIONS_API_BASE |
Base URI for API resources. Must be equal API_CORE_BASE |
And of course, these variables need to be provided to configure database connection:
MANAGED_DIMENSIONS_STORE_ENDPOINT
MANAGED_DIMENSIONS_STORE_UPDATE_ENDPOINT
MANAGED_DIMENSIONS_STORE_GRAPH_ENDPOINT
MANAGED_DIMENSIONS_STORE_USERNAME
MANAGED_DIMENSIONS_STORE_PASSWORD