query-b8f35886fb78ddb6d9b631ef94f58b19
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 ?dateLabel ?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")
v1("?item"):::projected
v5("?page"):::projected
v4("?publisher")
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