Get started with CellStore, Part 4: Query CellStore

This page is a placeholder, its contents are being worked on.

Estimated reading time: 2 minutes

Query CellStore

There are several options to test the querying of CellStore.

Step 1: Acquaint yourself with the filtering mechanism

In this section we propose to use either the Admin UI or the Rest API:

Option 1: Query CellStore using the Admin UI

If you have imported the Apple 10Q in previous step, you can now use CellStore Admin UI to query some facts:

  1. Open the Admin UI at http://localhost:8080/ in the browser.
  2. Navigate to the Facts collection.
  3. Click on Filters
  4. In the field marked with “Add a dimension name you would like to filter” insert xbrl:concept and press Enter.
  5. In the filter shelf in the field “Add dimension value” add: us-gaap:Assets and press Enter.

Now you should see only the facts that have dimension/value xbrl:concept=us-gaap:Assets:

Facts collection filtered by concept

Option 2: Query CellStore using the Rest API

For interfacing with the Rest API directly we suggest using tools like:

In order to issue the same query request that we ran in Option 1, we choose the following settings:

  • Endpoint: /facts
  • HTTP method: GET
  • Parameters:
    • xbrl:concept=us-gaap:Assets

Query facts for xbrl:concept=us-gaap=Assets

The alternative curl command looks like this:

curl http://localhost:8080/cellstore/v1/facts?xbrl:concept=us-gaap:Assets

You can also use your browser for querying: http://localhost:8080/cellstore/v1/facts?xbrl:concept=us-gaap:Assets.

When using the browser for querying we suggest using a pretty printing plugin like JsonView for Chrome.

Try to filter in the same way the /instances or /contexts endpoint.

Common parameters of the Rest API

There are several parameters that you can use on every endpoint:

  • open (true/false): Issue either an open hypercube or closed hypercube query
    • Open hypercube: returns all facts matching the filtering dimensions
    • Closed hypercube: returns all facts matching the filtering dimensions and the filtered key dimensions (In the Admin UI the key dimensions are highlighted with a gray background). Each endpoint has some default key dimensions that are automatically filtered. For example, the Facts endpoint is filtered by xbrl:concept=*&xbrl:entity=*&xbrl:period=*&xbrl:unit=*.
  • limit (number): Limit the number of returned items (default: 50).
  • skip (number): Offset the results for paging (default: 0).
  • paging (true/false): Adds the fields lastHref (link to the “last” page) and maxCount (default: false). Warning: Adding paging=true can have a significant performance impact.
  • debug (true/false): Adds debug information, such as the issued hypercube, to the response of each request (default: false).

Would you like to understand the open parameter?

You could try to filter xbrl:concept=us-gaap:IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest with open=true or open=false. Also add debug=true to inspect the query hypercube used to query CellStore.

cellstore, get started, guide, tutorial, query