query-1e0d0c28acf80de13d5dbbd9d2f26c1a
Find Sailboat items that should be Sailboat class items (Q106179098)sailboat class by (Q1075310)sailboat (P31)instance of to replace Help:QuickStatements with a description containing "sailboat class" so that we can use (Q1075310)sailboat Search all
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?sailboat ?sailboatLabel ?desc
WHERE
{
?sailboat wdt:P31 wd:Q1075310.
?sailboat schema:description ?desc.
FILTER ( lang(?desc) = "en" )
FILTER CONTAINS (?desc,"sailboat class")
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Sailing/Queries
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Sailing/Queries/Lists_sailboat_class
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?desc"):::projected
v2("?sailboat"):::projected
c7(["bd:serviceParam"]):::iri
c4(["wd:Q1075310"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["contains(?desc,'sailboat class')"]]
f0 --> v1
f1[["?desc = 'en'"]]
f1 --> v1
v2 --"wdt:P31"--> c4
v2 --"schema:description"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end