query-04142e5ff5e4ab204cef78b5d3ddcf09
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
- https://query.wikidata.org/sparql
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
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/bibliographic
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/bibliographic/en
- https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service/queries/examples/bibliographic/nl