query-18a4efc5033923b076c2732ef8e9ac91
Museum ship identification ]reply[21:31, 15 April 2015 (UTC) ;)chat LaddΩ . -- (P580)start time , qualified with (Q575727)museum ship = (P366)has use ]) and rather identify museum ships with ]Query: claim[31:2235308 (P31 should restricted to identify the ship type [one of (Q575727)museum ship with (P31)instance of Please avoid using I've done that everywhere. Run this query to see if any reappear
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q575727.
MINUS {
?item p:P31 ?statement1.
?statement1 (ps:P31/(wdt:P279*)) wd:Q3456301.
}
}
LIMIT 100
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?statement0")
v3("?statement1")
a1((" "))
a2((" "))
c2(["bd:serviceParam"]):::iri
c9(["wd:Q3456301"]):::iri
c4(["#91;AUTO_LANGUAGE#93;"]):::literal
c8(["wd:Q575727"]):::iri
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> a1
a1 --"p:direct/P279"--> c8
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:P31"--> v3
v3 --"p:statement/P31"--> a2
a2 --"p:direct/P279"--> c9
end