I don't use RDF Data Cube Vocabulary anymore as we created our own model (cube.link). This is an example of how I join two cubes in the cube.link vocabulary: -- SELECT DISTINCT ?dimension0 ?dimension1 ?dimension2 ?dimension3 ?dimension4 WHERE { ?observationSet0 . ?observationSet0 ?source0 . ?observationSet1 . ?observationSet1 ?source1 . ?source0 ?dimension0 . ?source0 ?dimension1 . ?source1 ?dimension1 . ?source0 ?dimension2 . ?source1 ?dimension2 . ?source1 ?dimension3 . ?source1 ?dimension4 . FILTER ( ?dimension1 IN ( )) FILTER ( ?dimension2 IN ( )) } GROUP BY ?dimension0 ?dimension1 ?dimension2 ?dimension3 ?dimension4 -- So you simply create two sources and join the dimensions on those keys you want to join.
Man, u just made my day
How can we query observations from multiple dataset? Like "?sub a qb:Observation ; qb:dataSet or ."
I don't use RDF Data Cube Vocabulary anymore as we created our own model (cube.link). This is an example of how I join two cubes in the cube.link vocabulary:
--
SELECT DISTINCT ?dimension0 ?dimension1 ?dimension2 ?dimension3 ?dimension4 WHERE {
?observationSet0 .
?observationSet0 ?source0 .
?observationSet1 .
?observationSet1 ?source1 .
?source0 ?dimension0 .
?source0 ?dimension1 .
?source1 ?dimension1 .
?source0 ?dimension2 .
?source1 ?dimension2 .
?source1 ?dimension3 .
?source1 ?dimension4 .
FILTER ( ?dimension1 IN ( ))
FILTER ( ?dimension2 IN ( ))
}
GROUP BY ?dimension0 ?dimension1 ?dimension2 ?dimension3 ?dimension4
--
So you simply create two sources and join the dimensions on those keys you want to join.