query-ff10413e9879f318de4aca16dedc4a80
Finnish Navy ships
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#>
SELECT * {
{
SELECT * {
?item wdt:P137 wd:Q2071948 .
?item wdt:P31 ?instance_of .
OPTIONAL { ?item wdt:P879 ?pennant_number}
} LIMIT 100
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en,en,de,fr,ja,es,ru,pt,it,zh,fa,ar,pl,nl,uk,tr,id,he,cs,sv,hu,fi,vi,ko,el,hi,bn,no,ca,ro,th,da,sr,bg,az,ms,et,uz,hr,sk,eu,hy,sl,lt,eo,ta,kk,lv,be,kn,sq,ur,mk" .
?item rdfs:label ?label . ?item schema:description ?description . ?instance_of rdfs:label ?instance_type
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?description"):::projected
v2("?instance_of"):::projected
v6("?instance_type"):::projected
v1("?item"):::projected
v4("?label"):::projected
v3("?pennant_number"):::projected
c6(["bd:serviceParam"]):::iri
c8(["en,en,de,fr,ja,es,ru,pt,it,zh,fa,ar,pl,nl,uk,tr,id,he,cs,sv,hu,fi,vi,ko,el,hi,bn,no,ca,ro,th,da,sr,bg,az,ms,et,uz,hr,sk,eu,hy,sl,lt,eo,ta,kk,lv,be,kn,sq,ur,mk"]):::literal
c2(["wd:Q2071948"]):::iri
v1 --"wdt:P137"--> c2
v1 --"wdt:P31"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P879".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
v1 --"rdfs:label"--> v4
v1 --"schema:description"--> v5
v2 --"rdfs:label"--> v6
end