query-81bfd518a53bc01b20dbad9ca1d78a43
Alba amicorum of KB: inception, start time, end time, publication data SELECT ?item ?itemLabel ?inception ?starttime ?endtime ?publicationdate WHERE { ?item p:P31/ps:P31 wd:Q457843 . ?item p:P195/ps:P195 wd:Q1526131 . OPTIONAL { ?item p:P571/ps:P571 ?inception. } OPTIONAL {?item p:P580/ps:P580 ?starttime.} OPTIONAL {?item p:P582/ps:P582 ?endtime.} OPTIONAL {?item p:P577/ps:P577 ?publicationdate.} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Alba amicorum of KB: inception, start time, end time, publication data
SELECT ?item ?itemLabel ?inception ?starttime ?endtime ?publicationdate
WHERE
{
?item p:P31/ps:P31 wd:Q457843 .
?item p:P195/ps:P195 wd:Q1526131 .
OPTIONAL { ?item p:P571/ps:P571 ?inception. }
OPTIONAL {?item p:P580/ps:P580 ?starttime.}
OPTIONAL {?item p:P582/ps:P582 ?endtime.}
OPTIONAL {?item p:P577/ps:P577 ?publicationdate.}
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("?endtime"):::projected
v2("?inception"):::projected
v1("?item"):::projected
v5("?publicationdate"):::projected
v3("?starttime"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
a6((" "))
c6(["wd:Q1526131"]):::iri
c16(["bd:serviceParam"]):::iri
c18(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q457843"]):::iri
v1 --"p:P31"--> a1
a1 --"p:statement/P31"--> c3
v1 --"p:P195"--> a2
a2 --"p:statement/P195"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P571".-> a3
a3 --"p:statement/P571"--> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P580".-> a4
a4 --"p:statement/P580"--> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P582".-> a5
a5 --"p:statement/P582"--> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P577".-> a6
a6 --"p:statement/P577"--> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c16 --"wikibase:language"--> c18
end