query-b69db32c6d2bfc74404f9e9615a653be
Vizualizace častých vlastností v položkách s ID
Use at
- https://query.wikidata.org/sparql
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 ?label (COUNT(*) AS ?number) WHERE {
{
SELECT DISTINCT ?wdt ?label {
?property wikibase:propertyType wikibase:ExternalId;
wikibase:directClaim ?wdt;
rdfs:label ?label .
FILTER( LANG( ?label ) = 'en' ) .
FILTER( ?property != wd:P691 ) .
}
}.
{
SELECT DISTINCT ?item {
?item wdt:P691 [] .
?item wdt:P31 wd:Q5 .
#BIND( MD5(CONCAT(STR(?item), STR(RAND()))) AS ?hash ) .
}
#ORDER BY ?hash
LIMIT 100
}.
?item ?wdt [] .
}
GROUP BY ?wdt ?label
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?item")
v2("?label"):::projected
v5("?number")
v1("?property")
v3("?wdt")
a1((" "))
a2((" "))
c9(["wd:Q5"]):::iri
c4(["wikibase:ExternalId"]):::iri
f0[["?property != 'wd:P691'"]]
f0 --> v1
f1[["?label = 'en'"]]
f1 --> v2
v1 --"wikibase:propertyType"--> c4
v1 --"wikibase:directClaim"--> v3
v1 --"rdfs:label"--> v2
v4 --"wdt:P691"--> a1
v4 --"wdt:P31"--> c9
v4 -->v3--> a2
bind3[/"count(*)"/]
bind3 --as--o v5