query-0867c629044dde7052c9fde2f1ac90a1

rq turtle/ttl

Propertiesmaintained by WikiProject (P6104)author (P50)author name string (P2093)object named as (P1932)

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
  (COUNT(?work) AS ?count) 
  ?author_name 
  (CONCAT(
      'https://tools.wmflabs.org/author-disambiguator/names_oauth.php?limit=5000&name=',
      ENCODE_FOR_URI(?author_name)) AS ?generic_resolver_url)
  (CONCAT(
      'https://author-disambiguator.toolforge.org/names_oauth.php?precise=0&doit=Look+for+author&limit=1000&filter=wdt%3AP6104+wd%3AQ56241615&filter_authors=1&name=',
      ENCODE_FOR_URI(?author_name)) AS ?specific_resolver_url)
WHERE {
   {

    SELECT DISTINCT ?author_name WHERE {
      { 
        SERVICE bd:sample { ?work wdt:P6104 wd:Q56241615 . bd:serviceParam bd:sample.limit 10000 }
        ?work wdt:P50 ?author .
        { ?author skos:altLabel ?author_name_. }
        UNION
        { ?author rdfs:label ?author_name_. }
        BIND(STR(?author_name_) AS ?author_name)
      }
      UNION
      {
        ?author_statement ps:P50 ?author;
          pq:P1932 ?author_name.
      }
    }
    LIMIT 2000 
}  ?work wdt:P2093 ?author_name. 
}

GROUP BY ?author_name
ORDER BY DESC (?count)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?author") v5("?author_name"):::projected v4("?author_name_") v6("?author_statement") v7("?count") v7("?generic_resolver_url") v8("?specific_resolver_url") v2("?work"):::projected c4(["bd:serviceParam"]):::iri c3(["wd:Q56241615"]):::iri c6(["10000^^xsd:integer"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v6 --"ps:P50"--> v3 v6 --"pq:P1932"--> v5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; subgraph s1["http://www.bigdata.com/rdf#sample"] style s1 stroke-width:4px; v2 --"wdt:P6104"--> c3 c4 --"bd:sample.limit"--> c6 end v2 --"wdt:P50"--> v3 subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; v3 --"rdfs:label"--> v4 end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"skos:altLabel"--> v4 end union1r <== or ==> union1l end bind0[/"str(?author_name_)"/] v4 --o bind0 bind0 --as--o v5 end union0r <== or ==> union0l end v2 --"wdt:P2093"--> v5 bind2[/"count(?work)"/] v2 --o bind2 bind2 --as--o v7 bind3[/"concat('https://tools.wmflabs.org/author-disambiguator/names_oauth.php?limit=5000&name=',encode-for-uri(?author_name))"/] v5 --o bind3 bind3 --as--o v7 bind4[/"concat('https://author-disambiguator.toolforge.org/names_oauth.php?precise=0&doit=Look+for+author&limit=1000&filter=wdt%3AP6104+wd%3AQ56241615&filter_authors=1&name=',encode-for-uri(?author_name))"/] v5 --o bind4 bind4 --as--o v8