query-d5a5b37051f005aa4e8574ff7f196cca
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 p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?wiki_software ?wiki_softwareLabel ?software_version_identifier 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/ps:P348 ?software_version_identifier. }
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?software_version_identifier"):::projected
v2("?wiki_software"):::projected
v1("?wiki_softwareLabel"):::projected
a1((" "))
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c8(["wd:Q6686945"]):::iri
f0[["str(?wiki_softwareLabel) = 'MediaWiki'"]]
f0 --> v1
f1[["?wiki_softwareLabel = 'en'"]]
f1 --> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
v2 --"p:direct/P31"--> c8
v2 --"rdfs:label"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:P348".-> a1
a1 --"p:statement/P348"--> v3
end