query-e9dc6c0330f1a4a055a3f767e9806e16

rq turtle/ttl

Referenced with a paper

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
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 ?item ?taxonName ?referencedBy ?title ?pages ?bhl ?referenceHasRoleLabel WHERE {
    BIND(wd:Q14560 AS ?higherParent)
    ?item (wdt:P171)* ?higherParent .
    ?item p:P225 ?taxonNameStatement .
    ?taxonNameStatement ps:P225 ?taxonName .
    ?taxonNameStatement prov:wasDerivedFrom ?ref .
    ?ref pr:P248 ?referencedBy .
    ?referencedBy wdt:P31 wd:Q13442814 . #scientific article
    ?referencedBy wdt:P1476 ?title .
    OPTIONAL {?ref pr:P304 ?pages}
    OPTIONAL {?ref pr:P687 ?bhl}
    OPTIONAL {?ref pr:P6184 ?referenceHasRole}
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ASC(?title) ASC(?pages)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?bhl"):::projected v3("?higherParent") v4("?item"):::projected v2("?pages"):::projected v7("?ref") v10("?referenceHasRole") v8("?referencedBy"):::projected v6("?taxonName"):::projected v5("?taxonNameStatement") v1("?title"):::projected c7(["wd:Q13442814"]):::iri c13(["bd:serviceParam"]):::iri c15(["#91;AUTO_LANGUAGE#93;"]):::literal bind0[/"'wd:Q14560'"/] bind0 --as--o v3 v4 --"p:direct/P171"--> v3 v4 --"p:P225"--> v5 v5 --"p:statement/P225"--> v6 v5 --"prov:wasDerivedFrom"--> v7 v7 --"p:reference/P248"--> v8 v8 --"p:direct/P31"--> c7 v8 --"p:direct/P1476"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v7 -."p:reference/P304".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v7 -."p:reference/P687".-> v9 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v7 -."p:reference/P6184".-> v10 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c13 --"wikibase:language"--> c15 end