query-9b88c154b0f6173260f03a564c6450f5
Propertiesinstance of (P31)subclass of (P279)
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 ?propItem ?propItemLabel ?value ?item ?itemLabel("00FFFF" AS ?rgb)
WHERE
{
?item wdt:P31/wdt:P279* wd:Q1572121.
?item ?prop ?value.
?propItem wikibase:directClaim ?prop ;
wikibase:propertyType wikibase:ExternalId .
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;
v1("?item"):::projected
v2("?prop")
v4("?propItem"):::projected
v5("?rgb")
v3("?value"):::projected
a1((" "))
c3(["wd:Q1572121"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wikibase:ExternalId"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 -->v2--> v3
v4 --"wikibase:directClaim"--> v2
v4 --"wikibase:propertyType"--> c6
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind0[/"'00FFFF'"/]
bind0 --as--o v5