query-05da78eaa6234795d0cbca76c83ebe2d

rq turtle/ttl

Beginnen vanuit Wikidata Je kunt dit op twee manieren benaderen: (Q1284250)Edgar du Perron , (Q2143934)Theun de Vries Zoekvraag: geef me alle auteurs met een (of meer) NTA-id (P1006) die een pseudoniem hebben Voorbeelditem: SPARQL:(P742)pseudonym Via

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item ?item_label #?itemAltLabel 
?pseudonym 
#?ntaid
#?image

WHERE
{   
  ?item p:P31/ps:P31 wd:Q5. #humans
  ?item wdt:P27 wd:Q29999. #Dutch
  ?item p:P1006/ps:P1006 ?ntaid. #authors
  ?item p:P742/ps:P742 ?pseudonym.
  ?item rdfs:label ?item_label filter (lang(?item_label) = "nl").
  FILTER (STR(?pseudonym) != STR(?item_label)).  
  #OPTIONAL{?item wdt:P18 ?image.}
  #?item p:P1006/p:P1006 [].

}  
ORDER BY ?item_label 
LIMIT 500

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?item"):::projected v1("?item_label"):::projected v4("?ntaid") v2("?pseudonym"):::projected a1((" ")) a2((" ")) a3((" ")) c4(["wd:Q5"]):::iri c6(["wd:Q29999"]):::iri f0[["str(?pseudonym) != str(?item_label)"]] f0 --> v2 f0 --> v1 f1[["?item_label = 'nl'"]] f1 --> v1 v3 --"p:P31"--> a1 a1 --"p:statement/P31"--> c4 v3 --"p:direct/P27"--> c6 v3 --"p:P1006"--> a2 a2 --"p:statement/P1006"--> v4 v3 --"p:P742"--> a3 a3 --"p:statement/P742"--> v2 v3 --"rdfs:label"--> v1