cubevizjs
cubevizjs copied to clipboard
DataCube elements weren't recognized in the selection menu
@fteichmann and i tried the following cube, which wasn't working in the latest version of CubeVizJS. The dimension elements are not visible, but the ones of the standard cube are. W3C validation works, so its the question: is CubeViz faulty or is the cube invalid?
https://gist.github.com/FTeichmann/373cb8f9020086c35e96cd3b36dcf124
A few remarks:
- Measure and dimension components (qb:component) are not of type qb:ComponentSpecification, therefore no measures and dimensions will be found
- Observations missing correct type (qb:Observation), hence no observation will be found
- Currently CubeViz needs fully defined dimension elements, no literals like "2011", "2010"
It is for discussion whether we should remove the type check for qb:ComponentSpecification or not ( rdf data cube specs ). I removed it for now. This solves point 1.
@FTeichmann: Are there other problems besides the ones Georges mentioned?
@GeorgesAlkhouri: Please revert the commit with removed type check, i think its not neccessary to be that "liberal" :)
Thanks for your remarks,
- added type qb:ComponentSpecification to qb:component elements
- fixing type error for the observations (from ex:Observation to qb:Observation)
- fully defined dimension elements are currently not generated
- updated the gist after searching for other errors, DataCube should be valid now.
@FTeichmann: Is the adapted qube working with the latest cubevizjs?
Testing with 5c58ded, I can upload my Cube as .ttl File and select my Dataset. I can't, however, see my Dimensions in the Dimensions Tab. All there is to visualize is the 'Republic Of Serbia' Data. Where can I find the error log?
The log box puts out useful information. Just click on it to open. Further of course the browser console shows information.
Which cube you are using?
The Cube is still found here: https://gist.github.com/FTeichmann/373cb8f9020086c35e96cd3b36dcf124
Browser Console: Error: NO DIMENSION ELEMENTS FOUND VALIDATION ERROR at SparqlStore.js:207 at tryCallOne (core.js:37) at core.js:123 at MutationObserver.flush (browser-raw.js:52)