query-0508c618b0f6ffeca353aa12f10f8d16

rq turtle/ttl

. I had to include that limitation to avoid timeout. (Q5)human (P31)instance of what you requested. It excludes the authors from other projects than Wikisource by checking that the number of counted Wikisources equals the total number of sitelinks. The difference from the request is that the query only includes authors which are almost: I made a query which is NMaia@ 01:31, 14 December 2020 (UTC)) talk (NMaia: It can link to more than one Wikisource. Only one would be unnecessarily limiting. Dipsacus fullonum@ 20:12, 13 December 2020 (UTC)) talk (Dipsacus fullonum, did you mean authors with links to more than one Wikisource? --NMaiaThat query only finds authors with link to one Wikisource. The request said "links to Wikisource" (plural). : I found a way to get all results at once without timeout. This query finds approx. 4232 authors where the previous two queries each found about 2366 humans and 1869 other authors. NMaia @

Use at

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 bd: <http://www.bigdata.com/rdf#>
SELECT ?author ?authorLabel
WHERE
{

{
  SELECT ?author
  WHERE
  {

{
  SELECT ?author
  {
    ?wikisource schema:about ?author ; schema:isPartOf / wikibase:wikiGroup "wikisource" .
    ?author wikibase:sitelinks ?sitelinks . 
    ?work wdt:P50 ?author .
  }
  GROUP BY ?author
  HAVING (COUNT(DISTINCT ?wikisource) = SAMPLE(?sitelinks))
}    FILTER EXISTS
    {
      ?work wdt:P50 ?author .
      ?work wdt:P31/wdt:P279* wd:Q47461344 . # Written work exists

    }
  }
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?_anon_42b5416610844a34809f33a099ae9de14187") v6("?_anon_42b5416610844a34809f33a099ae9de14188") v2("?author"):::projected v4("?sitelinks") v3("?wikisource") v1("?work") a4((" ")) a2((" ")) a3((" ")) a1((" ")) c4(["wd:Q47461344"]):::iri c11(["bd:serviceParam"]):::iri c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal c8(["wikisource"]):::literal f0[[" "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P50"--> e0v2 e0v1 --"wdt:P31"--> e0a1 e0a1 --"wdt:P279"--> e0c4 e0v2("?author"):::projected e0v1("?work"):::projected e0a1((" ")):::projected e0c4(["wd:Q47461344"]):::iri end f0--EXISTS--> f0e0 f0 --> v1 f0 --> c1 f0 --> v2 f0 --> c2 f0 --> a1 f0 --> c3 f0 --> c4 v1 --"wdt:P50"--> v2 v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 f1[[" = "]] f1 --> a2 f1 --> a3 v3 --"schema:about"--> v2 v3 --"schema:isPartOf"--> a4 a4 --"wikibase:wikiGroup"--> c8 v2 --"wikibase:sitelinks"--> v4 v1 --"wdt:P50"--> v2 bind4[/"count(?wikisource)"/] v3 --o bind4 bind4 --as--o v5 bind5[/"sample(?sitelinks)"/] v4 --o bind5 bind5 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end