query-77bcc12eb5e4fd455de3aba4db4e2848
Ships without vessel classes
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?classLabel ?launchdate WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "en-gb,en,mul". }
{
SELECT DISTINCT ?item ?launchdate ?class WHERE {
?item wdt:P31 wd:Q11446.
?item wdt:P137 wd:Q172771.
?item p:P793 ?statement1.
?statement1 (ps:P793/(wdt:P279*)) wd:Q596643.
?statement1 pq:P585 ?launchdate.
MINUS {?item wdt:P289 ?class}
MINUS { ?item rdf:type wdno:P289. }
}
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?class")
v1("?item"):::projected
v3("?launchdate"):::projected
v2("?statement1")
a1((" "))
c4(["en-gb,en,mul"]):::literal
c16(["p:novalue/P289"]):::iri
c12(["wd:Q596643"]):::iri
c2(["bd:serviceParam"]):::iri
c6(["wd:Q11446"]):::iri
c8(["wd:Q172771"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:direct/P31"--> c6
v1 --"p:direct/P137"--> c8
v1 --"p:P793"--> v2
v2 --"p:statement/P793"--> a1
a1 --"p:direct/P279"--> c12
v2 --"p:qualifier/P585"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:direct/P289"--> v4
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"a"--> c16
end