query-4488d633afc5e152c95277aab6ef86ed
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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?si_ge ?si_geLabel ?duration ?normalised_duration ?unitLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?si_ge wdt:P31 wd:Q188055.
OPTIONAL { ?si_ge wdt:P580 ?date_de_d_but. }
OPTIONAL { ?si_ge wdt:P582 ?date_de_fin. }
OPTIONAL { ?si_ge wdt:P276 ?lieu. }
?si_ge p:P2047 [ps:P2047 ?duration ; psv:P2047 [ wikibase:quantityAmount ?normalised_duration; wikibase:quantityUnit ?unit ] ].
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?date_de_d_but")
v3("?date_de_fin")
v5("?duration"):::projected
v4("?lieu")
v6("?normalised_duration"):::projected
v1("?si_ge"):::projected
v7("?unit")
a1((" "))
a2((" "))
c2(["bd:serviceParam"]):::iri
c6(["wd:Q188055"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:direct/P31"--> c6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P580".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P582".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P276".-> v4
end
a1 --"p:statement/P2047"--> v5
a2 --"wikibase:quantityAmount"--> v6
a2 --"wikibase:quantityUnit"--> v7
a1 --"p:statement/value/P2047"--> a2
v1 --"p:P2047"--> a1