query-bff7ae575baa3cb57cc64e3602d40e6e
TODO
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?submarine(REPLACE(STR(?submarine),".*Q","Q") AS ?submarineQ) ?submarineLabel ?followingClassLabel
WHERE
{
?submarine wdt:P31/wdt:P279* wd:Q2811 .
?submarine wdt:P156 ?followingClass .
?followingClass wdt:P31/wdt:P279* wd:Q1428357 .
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("?followingClass")
v1("?submarine"):::projected
v3("?submarineQ")
a1((" "))
a2((" "))
c3(["wd:Q2811"]):::iri
c7(["bd:serviceParam"]):::iri
c5(["wd:Q1428357"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en,fr,es,it,de,pl"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P156"--> v2
v2 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind0[/"replace(str(?submarine),'.*Q','Q')"/]
v1 --o bind0
bind0 --as--o v3