model entities as facets
Stratocumulus should allow entities to behave like facets: like a profession facet allows a prospect on entities associated with the given profession, should an entity facet allow prospect on entities associated with the given entity.
If facets and entities are both treated the same, this simplifies the codebase tremendously. This is because front-end does not anymore need to download entities directly from Corpora API but Stratocumulus server.
There was a time when backend fetched the entities and put them into graph format. The entities back then did not look like facets but nevertheless were nodes in the graph.
Requirements:
- allow queries where entity and its ID behave as a facet. The result can contain multiple content types.
- backend might again need to decide when to show filters and when entities.
- each facet (either filter or entity) returned by the server must carry a URL that the client can use to get the results. This makes the responses more RESTful.