query-a7eeef9c31a203e733d83a576631fab3

rq turtle/ttl

SWIB20 participants aggregated by institution

PREFIX zbwext: http://zbw.eu/namespaces/zbw-extensions/

select ?item ?itemLabel ?count where { # institutions' items and count of participants from custom WDQS-enabled endpoint service http://zbw.eu/beta/sparql/econ_corp/query { ?item zbwext:swib20participants ?count. bind(concat(str(?count), ' participant', if(?count > 1, 's', '')) as ?participants) } SERVICE wikibase:label { bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE],de,fr,es". } } order by desc(?count)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# SWIB20 participants aggregated by institution
#
PREFIX zbwext: <http://zbw.eu/namespaces/zbw-extensions/>
#
select ?item ?itemLabel ?count
where {
  # institutions' items and count of participants from custom WDQS-enabled endpoint
  service <http://zbw.eu/beta/sparql/econ_corp/query> {
    ?item zbwext:swib20participants ?count.
    bind(concat(str(?count), ' participant', if(?count > 1, 's', '')) as ?participants)
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,[AUTO_LANGUAGE],de,fr,es". }
}
order by desc(?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?count"):::projected v2("?item"):::projected v3("?participants") c4(["bd:serviceParam"]):::iri c6(["en,#91;AUTO_LANGUAGE#93;,de,fr,es"]):::literal subgraph s1["http://zbw.eu/beta/sparql/econ_corp/query"] style s1 stroke-width:4px; v2 --http://zbw.eu/namespaces/zbw-extensions/swib20participants--> v1 bind0[/"concat(str(?count),' participant',if(?count > '1^^xsd:integer','s',''))"/] v1 --o bind0 bind0 --as--o v3 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c4 --"wikibase:language"--> c6 end