query-365b63b8c0584ec3f27d726897bd3424
TODO
Use at
- https://query.wikidata.org/sparql
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#>
SELECT DISTINCT ?item ?itemLabel ?authorLabel (YEAR(?date) AS ?year) ?publisherLabel ?page WHERE {
?item wdt:P31 wd:Q571; wdt:P921 wd:Q847 .
OPTIONAL { ?item wdt:P50 ?author } .
OPTIONAL { ?item wdt:P577 ?date } .
OPTIONAL { ?item wdt:P123 ?publisher } .
OPTIONAL { ?item wdt:P1104 ?page } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?author")
v3("?date"):::projected
v1("?item"):::projected
v5("?page"):::projected
v4("?publisher")
v6("?year")
c10(["bd:serviceParam"]):::iri
c12(["en"]):::literal
c4(["wd:Q847"]):::iri
c2(["wd:Q571"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P921"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P50".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P577".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P123".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1104".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind0[/"year-from-dateTime(?date)"/]
v3 --o bind0
bind0 --as--o v6