Implementation of the JSON QB API
json-qb-rest-api's Introduction
json-qb-rest-api's People
json-qb-rest-api's Issues
Removing {distinct} from values queries
In the query for values of dim, attributes and measure distinct will influence data analysis results.
Adding available cubes path
We need to explore available cubes (qb:DataSet or qb:DataStructureDefinition) before start queering for other cube contents.
Adding "limit" argument
In most of queries a LIMIT argument will help to handle bigger data sets.
Specially for (values) queries.
Support Language negotiation
Updating json response format to match visualization needs
our visualization tools expects the following json response (result) format:
path:
cubeQueryingAPI/LqbMeta?
dsuri=http%3A%2F%2Fogi.eu%2F%23RPBYmunicipality_ds&limit=500)
results:
[{"name":"3","type":"http://purl.org/linked-data/cube#order"},{"name":"http://ogi.eu/#municipality","type":"http://purl.org/linked-data/cube#dimension"},{"name":"6","type":"http://purl.org/linked-data/cube#order"},{"name":"http://ogi.eu/#county","type":"http://purl.org/linked-data/cube#dimension"},{"name":"5","type":"http://purl.org/linked-data/cube#order"},{"name":"http://ogi.eu/#counrty","type":"http://purl.org/linked-data/cube#dimension"},{"name":"4","type":"http://purl.org/linked-data/cube#order"},{"name":"http://ogi.eu/#sex","type":"http://purl.org/linked-data/cube#dimension"},{"name":"1","type":"http://purl.org/linked-data/cube#order"},{"name":"http://ogi.eu/#time_period","type":"http://purl.org/linked-data/cube#dimension"},{"name":"1","type":"http://purl.org/linked-data/cube#order"},{"name":"http://ogi.eu/#resident_population_at_the_beginning_of_the_year_persons","type":"http://purl.org/linked-data/cube#measure"},{"name":"2","type":"http://purl.org/linked-data/cube#order"},{"name":"http://ogi.eu/#age","type":"http://purl.org/linked-data/cube#dimension"}]
path:
cubeQueryingAPI/listdataofLqb?dsuri=http%3A%2F%2Fogi.eu%2F%23IWaveBNetwork30Min_ds&limit=500
results:
[{"SeaTemperature":"","latitude":"54.233932","MeanCurDirTo":"","Time":"2016-08-29T11:00:00Z","PeakPeriod_qc":"0.0","SignificantWaveHeight":"","TimebyYear":"2016","Hmax_qc":"0.0","longitude":"-10.1429","UpcrossPeriod":"","station_id":"Belmullet Wave Buoy Berth B","PeakPeriod":"","UpcrossPeriod_qc":"0.0","SeaTemperature_qc":"0.0","TimebyMonth":"2016-08","THmax":"4.2","THmax_qc":"0.0","PeakDirection":"","TimebyDay":"2016-08-29","MeanCurSpeed":"","SignificantWaveHeight_qc":"0.0","MeanCurSpeed_qc":"0.0","PeakDirection_qc":"0.0","MeanCurDirTo_qc":"0.0","Hmax":"174.0"},{"SeaTemperature":"16.5","latitude":"53.227","MeanCurDirTo":"","Time":"2016-08-30T13:25:00Z","PeakPeriod_qc":"0.0","SignificantWaveHeight":"","TimebyYear":"2016","Hmax_qc":"0.0","longitude":"-9.271","UpcrossPeriod":"","station_id":"Galway Bay Wave Buoy","PeakPeriod":"","UpcrossPeriod_qc":"0.0","SeaTemperature_qc":"0.0","TimebyMonth":"2016-08","THmax":"","THmax_qc":"0.0","PeakDirection":"","TimebyDay":"2016-08-30","MeanCurSpeed":"","SignificantWaveHeight_qc":"0.0","MeanCurSpeed_qc":"0.0","PeakDirection_qc":"0.0","MeanCurDirTo_qc":"0.0","Hmax":""},{"SeaTemperature":"16.55","latitude":"53.227","MeanCurDirTo":"","Time":"2016-08-25T01:45:00Z","PeakPeriod_qc":"0.0","SignificantWaveHeight":"","TimebyYear":"2016","Hmax_qc":"0.0","longitude":"-9.271","UpcrossPeriod":"","station_id":"Galway Bay Wave Buoy","PeakPeriod":"","UpcrossPeriod_qc":"0.0","SeaTemperature_qc":"0.0","TimebyMonth":"2016-08","THmax":"","THmax_qc":"0.0","PeakDirection":"","TimebyDay":"2016-08-25","MeanCurSpeed":"","SignificantWaveHeight_qc":"0.0","MeanCurSpeed_qc":"0.0","PeakDirection_qc":"0.0","MeanCurDirTo_qc":"0.0","Hmax":""},
.....
Example draft for adapting the API to visualization requirements:
https://github.com/mohadelrezk/ogi-drafts/blob/master/adaptingJSONAPI.py
Adding /measures-values or compacting all value retrieval paths to one
Support pagination of slice results
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.