query-a0e6cc802a0301c326b586dcc8d6e748
Ships built by Meyer Werft
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?item ?itemLabelEN ?yard_number ?imo ?service_entry ?instance_of
WHERE {
?item wdt:P176 wd:Q705377.
OPTIONAL { ?item wdt:P617 ?yard_number. }
OPTIONAL { ?item wdt:P31 ?instance_of. }
FILTER(?instance_of != wd:Q559026).
OPTIONAL { ?item wdt:P458 ?imo. }
OPTIONAL { ?item wdt:P729 ?service_entry. }
OPTIONAL {
?item rdfs:label ?itemLabelEN.
FILTER(LANG(?itemLabelEN) = 'en')
}
}
ORDER BY ?yard_number
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?imo"):::projected
v3("?instance_of"):::projected
v4("?item"):::projected
v2("?itemLabelEN"):::projected
v6("?service_entry"):::projected
v1("?yard_number"):::projected
c4(["wd:Q705377"]):::iri
f0[["?instance_of != 'wd:Q559026'"]]
f0 --> v3
v4 --"wdt:P176"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P617".-> v1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P31".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P458".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P729".-> v6
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v4 -."rdfs:label".-> v2
end