query-9afe2ea002e07ed27f029736f37a6eaa

rq turtle/ttl

Propertiesparent taxon (P171)author (P50)taxon name (P225)stated in (P248)reference has role (P6184)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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 prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?ref ?refLabel ?author ?authorLabel WHERE {
  ?item wdt:P171* wd:Q106345.
  ?item p:P225 ?s.
  ?s prov:wasDerivedFrom ?r. 
  ?r pr:P248 ?ref.
  ?r pr:P6184 wd:Q1361864.
  SERVICE <https://query-scholarly.wikidata.org/sparql> {
    ?ref wdt:P50 ?author.
    ?ref rdfs:label ?refLabel.
    FILTER ( LANG(?refLabel) = "en" )
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?author"):::projected v1("?item"):::projected v3("?r") v4("?ref"):::projected v5("?refLabel"):::projected v2("?s") c2(["wd:Q106345"]):::iri c15(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal c7(["wd:Q1361864"]):::iri c13(["bd:serviceParam"]):::iri v1 --"p:direct/P171"--> c2 v1 --"p:P225"--> v2 v2 --"prov:wasDerivedFrom"--> v3 v3 --"p:reference/P248"--> v4 v3 --"p:reference/P6184"--> c7 subgraph s1["https://query-scholarly.wikidata.org/sparql"] style s1 stroke-width:4px; f0[["?refLabel = 'en'"]] f0 --> v5 v4 --"p:direct/P50"--> v6 v4 --"rdfs:label"--> v5 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c13 --"wikibase:language"--> c15 end