query-643160496aaf1f82841b10df83d1dfe7
Count the software items assigned to each TaDiRAH class.
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 schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Tools for Digital Humanities: most frequent TaDiRAH classes
#defaultView:BubbleChart
SELECT DISTINCT
?tadirahID
(COUNT(DISTINCT ?tool) AS ?toolCount)
(URI( CONCAT ("https://reasonator.toolforge.org/?&q=", STRAFTER(STR(?method), STR(wd:) ))) as ?link) # link to the wikidata item through reasonator
?methodDesc
WHERE {
{
SELECT DISTINCT
?tool ?method ?tadirahID
WHERE {
# select all items that have a TaDiRAH ID and are therefore assumed to be methods
?method wdt:P9309 ?tadirahID.
# select all items which are linked to these methods through `has use`
?tool wdt:P366 ?method;
# limit tools to software in the broadest sense
wdt:P31/wdt:P279* wd:Q7397.
}
LIMIT 3000
} SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?method rdfs:label ?methodLabel.
?method schema:description ?methodDesc.
}
}
GROUP BY ?tadirahID ?link ?method ?methodDesc
ORDER BY DESC(?toolCount)
LIMIT 100