cubevizjs icon indicating copy to clipboard operation
cubevizjs copied to clipboard

DataCube elements weren't recognized in the selection menu

Open k00ni opened this issue 8 years ago • 8 comments

@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?

k00ni avatar Jan 09 '17 12:01 k00ni

https://gist.github.com/FTeichmann/373cb8f9020086c35e96cd3b36dcf124

FTeichmann avatar Jan 09 '17 12:01 FTeichmann

A few remarks:

  1. Measure and dimension components (qb:component) are not of type qb:ComponentSpecification, therefore no measures and dimensions will be found
  2. Observations missing correct type (qb:Observation), hence no observation will be found
  3. 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.

GeorgesAlkhouri avatar Jan 10 '17 10:01 GeorgesAlkhouri

@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" :)

k00ni avatar Jan 10 '17 11:01 k00ni

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 avatar Jan 10 '17 12:01 FTeichmann

@FTeichmann: Is the adapted qube working with the latest cubevizjs?

k00ni avatar Feb 27 '17 11:02 k00ni

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?

FTeichmann avatar Mar 06 '17 10:03 FTeichmann

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?

GeorgesAlkhouri avatar Mar 07 '17 14:03 GeorgesAlkhouri

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)

FTeichmann avatar Mar 07 '17 17:03 FTeichmann