Querying RDF Data Cubes with SPARQL

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ต.ค. 2024

ความคิดเห็น • 4

  • @mostafabankesli5451
    @mostafabankesli5451 4 ปีที่แล้ว

    Man, u just made my day

  • @avisheakdasshomrat7321
    @avisheakdasshomrat7321 ปีที่แล้ว

    How can we query observations from multiple dataset? Like "?sub a qb:Observation ; qb:dataSet or ."

    • @giantglobalgraph
      @giantglobalgraph  ปีที่แล้ว

      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.