query-84e6f64d27b403cfe0bd9545ce8fc854

rq turtle/ttl

TODO

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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?parent_taxonLabel ?taxon_name  ?item  ?year_described  ?taxon_author ?taxon_authorLabel  ?nomencaturalstatus ?nomencaturalstatusLabel ?inaturalist_ID  WHERE {
  ?item wdt:P171 wd:Q1757472;
    p:P225 ?stat.
  ?stat ps:P225 ?taxon_name.
  OPTIONAL { ?item wdt:P171 ?parent_taxon. }
  OPTIONAL { ?stat pq:P574 ?year_of_taxon_name_publication. }
  OPTIONAL { ?stat pq:P405 ?taxon_author. }
  OPTIONAL { ?stat pq:P1135 ?nomencaturalstatus. }
  OPTIONAL { ?item wdt:P3151 ?inaturalist_ID. }
  BIND(str(YEAR(?year_of_taxon_name_publication)) AS ?year_described).

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

} 
ORDER BY DESC (?year_described)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?inaturalist_ID"):::projected v2("?item"):::projected v8("?nomencaturalstatus"):::projected v5("?parent_taxon") v3("?stat") v7("?taxon_author"):::projected v4("?taxon_name"):::projected v10("?year_described"):::projected v6("?year_of_taxon_name_publication") c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q1757472"]):::iri v2 --"p:direct/P171"--> c2 v2 --"p:P225"--> v3 v3 --"p:statement/P225"--> v4 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P171".-> v5 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:qualifier/P574".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:qualifier/P405".-> v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:qualifier/P1135".-> v8 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:direct/P3151".-> v9 end bind0[/"str(year-from-dateTime(?year_of_taxon_name_publication))"/] v6 --o bind0 bind0 --as--o v10 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end