query-c47e56d32a0864caa5a29b4a0801b456
title:Militærfly familier (dekker flere modeller) SELECT DISTINCT ?item ?itemLabel ?itemDescription ?countryLabel ?firstflight ?designation ?article WHERE { ?item wdt:P31 wd:Q15056993. # tilfelle av fly-familie ?item wdt:P279* wd:Q19287541. # klasse kampfly og underklasser OPTIONAL { ?item wdt:P495|wdt:P17 ?country } OPTIONAL { ?item wdt:P606 ?firstflight } OPTIONAL { ?item wdt:P798 ?designation } OPTIONAL { ?article schema:about ?item; schema:isPartOf https://no.wikipedia.org/. } SERVICE wikibase:label { bd:serviceParam wikibase:language "nb,en". } } ORDER BY ?item
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 schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Militærfly familier (dekker flere modeller)
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?countryLabel ?firstflight ?designation ?article
WHERE
{
?item wdt:P31 wd:Q15056993. # tilfelle av fly-familie
?item wdt:P279* wd:Q19287541. # klasse kampfly og underklasser
OPTIONAL { ?item wdt:P495|wdt:P17 ?country }
OPTIONAL { ?item wdt:P606 ?firstflight }
OPTIONAL { ?item wdt:P798 ?designation }
OPTIONAL {
?article schema:about ?item;
schema:isPartOf <https://no.wikipedia.org/>.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "nb,en". }
} ORDER BY ?item
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article"):::projected
v2("?country")
v4("?designation"):::projected
v3("?firstflight"):::projected
v1("?item"):::projected
c4(["wd:Q19287541"]):::iri
c13(["bd:serviceParam"]):::iri
c11([https://no.wikipedia.org/]):::iri
c15(["nb,en"]):::literal
c2(["wd:Q15056993"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P279"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 -."wdt:P17".-> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P495"--> v2
end
union0r <== or ==> union0l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P606".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P798".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v1
v5 --"schema:isPartOf"--> c11
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end