query-0c4d63399b506d3be4e54be517da5bc0

rq turtle/ttl

Articles where the main subject is "Younger Dryas impact hypothesis" and the reference for that statement is a link to "The Bib"

SELECT DISTINCT ?item ?date ?itemLabel ?publisherLabel ?doi ?statements ?ids (COUNT(?cite) AS ?cites) # ?ref ?sitelinks WHERE { ?item wdt:P921 wd:Q1092095.

?item p:P921 ?statement. ?statement prov:wasDerivedFrom ?refnode. ?refnode pr:P854 ?ref.

FILTER(CONTAINS(STR(?ref), "younger-dryas-impact-hypothesis-bibliography-and-paper-archive")).

OPTIONAL { ?item wdt:P577 ?date } OPTIONAL { ?item wdt:P1433 ?publisher } OPTIONAL { ?item wdt:P356 ?doi } OPTIONAL { ?item wdt:P2860 ?cite } OPTIONAL { ?item wikibase:statements ?statements ; wikibase:identifiers ?ids ; wikibase:sitelinks ?sitelinks }

SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } } GROUP BY ?item ?date ?itemLabel ?publisherLabel ?doi ?statements ?ids ORDER BY ?date ?itemLabel

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
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#>
# Articles where the main subject is "Younger Dryas impact hypothesis" and the reference for that statement is a link to "The Bib"

SELECT DISTINCT ?item ?date ?itemLabel ?publisherLabel ?doi ?statements ?ids (COUNT(?cite) AS ?cites) # ?ref ?sitelinks
WHERE
{ 
  ?item wdt:P921 wd:Q1092095.

  ?item p:P921 ?statement.
  ?statement prov:wasDerivedFrom ?refnode.
  ?refnode   pr:P854 ?ref.

  FILTER(CONTAINS(STR(?ref), "younger-dryas-impact-hypothesis-bibliography-and-paper-archive")).

  OPTIONAL { ?item wdt:P577 ?date }
  OPTIONAL { ?item wdt:P1433 ?publisher }
  OPTIONAL { ?item wdt:P356 ?doi }
  OPTIONAL { ?item wdt:P2860 ?cite }
  OPTIONAL { ?item wikibase:statements ?statements ; wikibase:identifiers ?ids ; wikibase:sitelinks ?sitelinks }


  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
GROUP BY ?item ?date ?itemLabel ?publisherLabel ?doi ?statements ?ids
ORDER BY ?date ?itemLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v9("?cite"):::projected v13("?cites") v1("?date"):::projected v8("?doi"):::projected v11("?ids"):::projected v4("?item"):::projected v2("?itemLabel"):::projected v7("?publisher") v3("?ref") v6("?refnode") v12("?sitelinks") v5("?statement") v10("?statements"):::projected c3(["wd:Q1092095"]):::iri c15(["bd:serviceParam"]):::iri c17(["#91;AUTO_LANGUAGE#93;"]):::literal f0[["contains(str(?ref),'younger-dryas-impact-hypothesis-bibliography-and-paper-archive')"]] f0 --> v3 v4 --"p:direct/P921"--> c3 v4 --"p:P921"--> v5 v5 --"prov:wasDerivedFrom"--> v6 v6 --"p:reference/P854"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P577".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P1433".-> v7 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P356".-> v8 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v4 -."p:direct/P2860".-> v9 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v4 -."wikibase:statements".-> v10 v4 --"wikibase:identifiers"--> v11 v4 --"wikibase:sitelinks"--> v12 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c15 --"wikibase:language"--> c17 end bind2[/"count(?cite)"/] v9 --o bind2 bind2 --as--o v13