Cubiql
CubiQL: A GraphQL service for querying multidimensional Linked Data Cubes
Install / Use
/learn @Swirrl/CubiqlREADME
CubiQL

CubiQL (formerly called graphql-qb) is a proof of concept GraphQL service for querying Linked Data Cubes that was produced as part of the OpenGovIntelligence project, funded by the European Union’s Horizon 2020 research and innovation programme under grant agreement No 693849.
The primary aim of CubiQL is to facilitate the querying of multidimensional QB datasets through GraphQL in an easier more familiar way than through SPARQL.
Running
The project is built with leiningen - after installing it you can build an uberjar with
$ lein uberjar
this will create a cubiql-version-standalone.jar file in the target/uberjar directory. The server can then be started with:
$ java -jar target/uberjar/cubiql-standalone.jar OPTIONS
The available options are:
| Name | Description | Required | Default | |---------------|-----------------------------------------|----------|---------| | port | Port to run server on | no | 8080 | | endpoint | Endpoint for datasets | yes | | | configuration | Configuration for the dataset structure | no | |
For example to run the server against a remote SPARQL endpoint on port 9000:
$ java -jar cubiql-standalone.jar --port 9000 --endpoint http://remote-endpoint/sparql/query
The endpoint can also refer to a local directory containing RDF data files. The repository contains test datasets in the data directory. When running from the root directory this repository can be specified with:
$ java -jar cubiql-standalone.jar --port 9000 --endpoint data
During development lein run can be used instead of building the uberjar:
$ lein run --endpoint data
The server hosts a GraphQL endpoint at http://localhost:PORT/graphql which follows the protocol described here.
Example Queries
The following examples expect the server to be running locally on port 8080 with the example dataset. You can run the server with
$ lein run --endpoint data
-
Dataset Discovery
-
Dataset metadata
-
Filtering (any combination of the following filtering examples is valid)
- By Dimension (boolean or)
- By Dimension (boolean and)
- Filtering datasets about gender
- Filtering datasets about population group
- By Measure (boolean or)
- By Measure (boolean and)
- By Attribute (boolean or)
- By Attribute (boolean and)
- By Dimension/Attribute value (boolean or)
- By Dimension/Attribute value (boolean and)
- By Dimension hierarchical level (boolean or)
- By Dimension hierarchical level (boolean and)
-
Locking Dimensions
- and counting matches
- [and getting observations](http://localhost:8080/index.html?query=%7Bcubiql%7B%0A%20%20dataset_earnings%20%7B%0A%20%20%20
Related Skills
node-connect
352.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
