query-f82c549d9bf9fab760b3348ccfd05705
Tool : List of misc. properties from a set of Wikidata items
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Most used properties of TTRPG (adapted from a query by https://twitter.com/JeanFred https://w.wiki/5Fvr)
#defaultView:BubbleChart
SELECT ?property ?propertyLabel ?propertyDescription (COUNT(DISTINCT ?item) AS ?count)
WHERE {
{
SELECT DISTINCT ?property ?propertyLabel WHERE {
VALUES ?type {
wikibase:ExternalId
wikibase:Url
}
#?property wikibase:propertyType ?type;
# (wdt:P31/(wdt:P279*)) wd:Q28147643;
# rdfs:label ?propertyLabel.
#FILTER((LANG(?propertyLabel)) = "en")
#MINUS { ?property wdt:P1629 wd:Q96096761. }
#MINUS { ?property wdt:P1629 wd:Q27631547. }
}
}
?item wdt:P31 wd:Q1643932 .
?property wikibase:claim ?propertyclaim.
?item ?propertyclaim _:b4.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?property ?propertyLabel ?propertyDescription ORDER BY DESC (?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?count")
v3("?item"):::projected
v4("?property"):::projected
v5("?propertyclaim")
v2("?type")
a1((" "))
c5(["bd:serviceParam"]):::iri
c2(["wd:Q1643932"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?type/]
bind0-->v2
bind00(["wikibase:ExternalId"])
bind00 --> bind0
bind01(["wikibase:Url"])
bind01 --> bind0
v3 --"wdt:P31"--> c2
v4 --"wikibase:claim"--> v5
v3 -->v5--> a1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"count(?item)"/]
v3 --o bind2
bind2 --as--o v6