query-09ab19f66d79a2d603acf5f538b66737
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?wiki_software ?wiki_softwareLabel ?software_version_identifier ?date WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?wiki_software wdt:P31 wd:Q6686945.
# ?wiki_software wdt:P178 wd:Q180 .
?wiki_software rdfs:label ?wiki_softwareLabel. filter(lang(?wiki_softwareLabel)="en")
filter(str(?wiki_softwareLabel) = "MediaWiki")
OPTIONAL { ?wiki_software p:P348 ?stat . ?stat ps:P348 ?software_version_identifier.
OPTIONAL {?stat pq:P577 ?date.} }
}
order by ?date
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?date"):::projected
v5("?software_version_identifier"):::projected
v4("?stat")
v3("?wiki_software"):::projected
v2("?wiki_softwareLabel"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c8(["wd:Q6686945"]):::iri
f0[["str(?wiki_softwareLabel) = 'MediaWiki'"]]
f0 --> v2
f1[["?wiki_softwareLabel = 'en'"]]
f1 --> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
v3 --"p:direct/P31"--> c8
v3 --"rdfs:label"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."p:P348".-> v4
v4 --"p:statement/P348"--> v5
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."p:qualifier/P577".-> v1
end
end