query-aab2bb98cbaf227327cdaa685739bd38
PropertiesArt UK artist ID (P1367)instance of (P31)
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?prop ?propLabel ?count WHERE {
{
SELECT ?prop (COUNT(DISTINCT ?item) AS ?count) WHERE {
?item wdt:P1367 ?yp_id .
?item ?p ?id .
?prop wikibase:directClaim ?p .
{?prop wdt:P31 wd:Q19847637} # Wikidata property representing a unique identifier
UNION
{?prop wdt:P31 wd:Q19595382} # Wikidata property for authority control for people
} GROUP BY ?prop
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
} ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?count"):::projected
v5("?id")
v2("?item")
v4("?p")
v6("?prop"):::projected
v3("?yp_id")
c4(["wd:Q19847637"]):::iri
c7(["bd:serviceParam"]):::iri
c5(["wd:Q19595382"]):::iri
c9(["en"]):::literal
v2 --"wdt:P1367"--> v3
v2 -->v4--> v5
v6 --"wikibase:directClaim"--> v4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v6 --"wdt:P31"--> c5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v6 --"wdt:P31"--> c4
end
union0r <== or ==> union0l
end
bind1[/"count(?item)"/]
v2 --o bind1
bind1 --as--o v7
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end