query-fb09ad9fd9b9ab5ff1cf6d656a7c4c3b
title:Militærfly familier (dekker flere modeller) som mangler norske etiketter 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 FILTER(NOT EXISTS{ ?item rdfs:label ?nbLabel. FILTER((LANG(?nbLabel)) = "nb") }) 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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Militærfly familier (dekker flere modeller) som mangler norske etiketter
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
FILTER(NOT EXISTS{
?item rdfs:label ?nbLabel.
FILTER((LANG(?nbLabel)) = "nb")
})
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;
v6("?article"):::projected
v3("?country")
v5("?designation"):::projected
v4("?firstflight"):::projected
v1("?item"):::projected
v2("?nbLabel")
c6(["wd:Q19287541"]):::iri
c15(["bd:serviceParam"]):::iri
c13([https://no.wikipedia.org/]):::iri
c17(["nb,en"]):::literal
c4(["wd:Q15056993"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?nbLabel = 'nb'"]]
e0f0 --> e0v1
e0v2 --"rdfs:label"--> e0v1
e0v2("?item"):::projected
e0v1("?nbLabel"):::projected
end
f0--EXISTS--> f0e0
f0 --> v2
f0 --> v1
f0 --> c2
f1[["?nbLabel = 'nb'"]]
f1 --> v2
v1 --"rdfs:label"--> v2
v1 --"wdt:P31"--> c4
v1 --"wdt:P279"--> c6
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".-> v3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P495"--> v3
end
union0r <== or ==> union0l
end
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P606".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P798".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v6 -."schema:about".-> v1
v6 --"schema:isPartOf"--> c13
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end