query-04142e5ff5e4ab204cef78b5d3ddcf09

rq turtle/ttl

Volumes of a periodical with a publication date set SELECT ?item ?itemLabel ?pubdate ?parentLabel WHERE { VALUES (?fromDate ?toDate) { ( "1800-01-01"^^xsd:dateTime "1901-01-01"^^xsd:dateTime ) }

# anything that's a volume that's part of a periodical ?item (wdt:P31/(wdt:P279)) wd:Q1238720; wdt:P179 ?parent. ?parent (wdt:P31/(wdt:P279)) wd:Q1002697.

?item wdt:P577 ?pubdate. # get the publication date # filter to the period of interest FILTER((?pubdate > ?fromDate) && (?pubdate < ?toDate)) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } Volumes of a periodical with a publication date set SELECT ?item ?itemLabel ?pubdate ?parentLabel WHERE { VALUES (?fromDate ?toDate) { ( "1800-01-01"^^xsd:dateTime "1901-01-01"^^xsd:dateTime ) }

# anything that's a volume that's part of a periodical ?item (wdt:P31/(wdt:P279)) wd:Q1238720; wdt:P179 ?parent. ?parent (wdt:P31/(wdt:P279)) wd:Q1002697.

?item wdt:P577 ?pubdate. # get the publication date # filter to the period of interest FILTER((?pubdate > ?fromDate) && (?pubdate < ?toDate)) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Volumes of a periodical with a publication date set
SELECT ?item ?itemLabel ?pubdate ?parentLabel WHERE {
  VALUES (?fromDate ?toDate) {
    (
      "1800-01-01"^^xsd:date
      "1901-01-01"^^xsd:date
    )
  }

  # anything that's a volume that's part of a periodical
  ?item (wdt:P31/(wdt:P279*)) wd:Q1238720;
      wdt:P179 ?parent.
  ?parent (wdt:P31/(wdt:P279*)) wd:Q1002697.

  ?item wdt:P577 ?pubdate. # get the publication date
  # filter to the period of interest
  FILTER((?pubdate > ?fromDate) && (?pubdate < ?toDate))
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?fromDate") v4("?item"):::projected v5("?parent") v1("?pubdate"):::projected v4("?toDate") a1((" ")) a2((" ")) c5(["wd:Q1002697"]):::iri c8(["bd:serviceParam"]):::iri c3(["wd:Q1238720"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?pubdate > ?fromDate?pubdate < ?toDate"]] f0 --> v1 f0 --> v4 f0 --> v4 bind1[/VALUES ?fromDate ?toDate/] bind1-->v4 bind1-->v4 bind10(["1800-01-01^^xsd:date"]) bind10 --> bind1 bind11(["1901-01-01^^xsd:date"]) bind11 --> bind1 v4 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v4 --"wdt:P179"--> v5 v5 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c5 v4 --"wdt:P577"--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end