query-bbefbbdcf84a40c5f15399f533531884
TODO
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#>
SELECT DISTINCT ?watercraft (REPLACE(STR(?watercraft),".*Q","Q") AS ?watercraftQid) ?watercraftLabel ?watercraftClassLabel ?extrawatercraftClassLabel
WHERE
{
?watercraft wdt:P289 ?watercraftClass .
?watercraft wdt:P289 ?extrawatercraftClass .
FILTER ( ?watercraftClass != ?extrawatercraftClass )
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,es,it,de,pl".}
} LIMIT 500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?extrawatercraftClass")
v3("?watercraft"):::projected
v1("?watercraftClass")
v4("?watercraftQid")
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en,fr,es,it,de,pl"]):::literal
f0[["?watercraftClass != ?extrawatercraftClass"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P289"--> v1
v3 --"wdt:P289"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end
bind1[/"replace(str(?watercraft),'.*Q','Q')"/]
v3 --o bind1
bind1 --as--o v4