query-9bb67ec49e943c0ff88006c3a40f2aa9

rq turtle/ttl

Vizualizace nejčastějších vztahů mezi záznamy

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
#defaultView:BubbleChart
select ?prop ?propLabel (count (?prop) as ?pocet)  where {
               {   
select ?item ?prop ?item2 where
  {
  ?item wdt:P691 [] .
  ?item2 wdt:P691 [] .
  ?item ?prop ?item2 .
  ?item wdt:P31 wd:Q5 .
  ?item2 wdt:P31 wd:Q5 .
  optional {?item rdfs:label ?itemLabel filter(lang(?itemLabel)="cs") .}
  optional {?item2 rdfs:label ?item2Label filter(lang(?item2Label)="cs") .}

  }
limit 5000
              }
?property wikibase:directClaim ?prop .
optional {?property rdfs:label ?propLabel filter(lang(?propLabel)="cs") .}

  }

group by ?prop ?propLabel
having(?pocet > 5)
limit 100

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?item") v6("?item2") v3("?item2Label") v4("?itemLabel") v9("?pocet") v7("?prop"):::projected v2("?propLabel"):::projected v8("?property") a1((" ")) a2((" ")) c5(["wd:Q5"]):::iri f0[["?pocet > '5^^xsd:integer'"]] f0 --> v9 v5 --"wdt:P691"--> a1 v6 --"wdt:P691"--> a2 v5 -->v7--> v6 v5 --"wdt:P31"--> c5 v6 --"wdt:P31"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v5 -."rdfs:label".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v6 -."rdfs:label".-> v3 end v8 --"wikibase:directClaim"--> v7 subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v8 -."rdfs:label".-> v2 end bind2[/"count(?prop)"/] v7 --o bind2 bind2 --as--o v9