query-25c78a9cba9b63f0698d4d30930b4d19
vine (Q917284) from first 20 pages of Google search: climbing plantI entered every ⟩ (Q22674464)vine ⟨ (P31)instance of ⟩subject⟨ or every item should be created and have P31 claim. (P279)subclass of I expect about 3-9% mistakes because of statements at unspecific items... where P31 should we replaced with
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#>
#defaultView:ImageGrid
SELECT ?item ?itemLabel ?parent ?rank ?image
WHERE
{
?item (wdt:P31|wdt:P279) wd:Q917284 . #Q22674464
OPTIONAL { ?item wdt:P171 ?parent }
OPTIONAL { ?item wdt:P105 ?rank }
OPTIONAL { ?item wdt:P18 ?image }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?image"):::projected
v1("?item"):::projected
v2("?parent"):::projected
v3("?rank"):::projected
c8(["bd:serviceParam"]):::iri
c2(["wd:Q917284"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P279"--> c2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c2
end
union0r <== or ==> union0l
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P171".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P105".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end