query-1d999fb6d5c0be12cf09cfc5e4c66c6a

rq turtle/ttl

List of authors with links to Wikisource but not any other project 06:32, 13 December 2020 (UTC)) talk (NMaia linking to that author. (Q47461344)written work I'd like a list of authors with links to Wikisource but not any other project. The catch is that there must also be an item which is a subclass of :NMaia@

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?p ?pLabel (SAMPLE(?ẁork) as ?work)
{
    ?work wdt:P50 ?p .
    ?p wikibase:sitelinks 1 . 
    [] schema:about ?p ; schema:isPartOf / wikibase:wikiGroup "wikisource" .
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}  
GROUP BY ?p ?pLabel
LIMIT 10

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?p"):::projected v4("?work") v3("?ẁork"):::projected a1((" ")) a2((" ")) c3(["1^^xsd:integer"]):::literal c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c7(["wikisource"]):::literal v4 --"wdt:P50"--> v2 v2 --"wikibase:sitelinks"--> c3 a1 --"schema:about"--> v2 a1 --"schema:isPartOf"--> a2 a2 --"wikibase:wikiGroup"--> c7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end bind1[/"sample(?ẁork)"/] v3 --o bind1 bind1 --as--o v4