query-8601dfcca94d1ae49c36ff9913d04949
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?item ?itemLabel (group_concat(?P31Label;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
?P31 rdfs:label ?P31Label . # get labels fo the ?P31
filter(lang(?P31Label)="en") # but only en labels
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;
v3("?P31")
v1("?P31Label"):::projected
v4("?instance")
v2("?item"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q1058914"]):::iri
f0[["?P31Label = 'en'"]]
f0 --> v1
bind1[/VALUES ?item/]
bind1-->v2
bind10(["wd:Q37156"])
bind10 --> bind1
v2 --"wdt:P31"--> c3
v2 --"wdt:P31"--> v3
v3 --"rdfs:label"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind3[/"?P31Label"/]
v1 --o bind3
bind3 --as--o v4