query-b91d759bde856d2f36df69e644d4eba0
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 ?item ?itemLabel (group_concat(?P31;separator="; ") as ?instance) where
{
values ?item {wd:Q37156} # constrain this query to a single item
?item wdt:P31 wd:Q1058914 . # find software companies
?item wdt:P31 ?P31 . # get the P31 values for this item
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} group by ?item ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?P31"):::projected
v3("?instance")
v1("?item"):::projected
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q1058914"]):::iri
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q37156"])
bind00 --> bind0
v1 --"wdt:P31"--> c2
v1 --"wdt:P31"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind2[/"?P31"/]
v2 --o bind2
bind2 --as--o v3