query-93efddd26d673382b2baa8abd7086c32

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?watercraft (REPLACE(STR(?watercraft),".*Q","Q") AS ?watercraftQid) ?watercraftLabel ?watercraftTypeLabel
WHERE
{
  ?watercraft wdt:P31 wd:Q1229765 .   # Plain watercraft
  ?watercraft wdt:P31 ?watercraftType .    # Also some watercraft type
  ?watercraftType wdt:P279+ wd:Q1229765 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,es,it,de,pl".  }
}
LIMIT 5000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?watercraft"):::projected v3("?watercraftQid") v2("?watercraftType") c5(["bd:serviceParam"]):::iri c2(["wd:Q1229765"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en,fr,es,it,de,pl"]):::literal v1 --"wdt:P31"--> c2 v1 --"wdt:P31"--> v2 v2 --"wdt:P279"--> c2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end bind0[/"replace(str(?watercraft),'.*Q','Q')"/] v1 --o bind0 bind0 --as--o v3