query-7f7d0d4dc1df4360ff25f69d26123c5b
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?prop_id ?prop_label ?company_item ?prop_val WHERE {
VALUES ?company { wd:Q134068 }
?company ?prop_id ?company_item.
?wd wikibase:directClaim ?prop_id.
BIND(COALESCE(?prop_val, ?companyItem) AS ?prop_val)
SERVICE wikibase:label { bd:serviceParam wikibase:language "ur,en".
?wd rdfs:label ?prop_label.
?company_item rdfs:label ?prop_val. }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?company")
v3("?company_item"):::projected
v2("?prop_id"):::projected
v6("?prop_label"):::projected
v5("?prop_val"):::projected
v4("?wd")
c3(["bd:serviceParam"]):::iri
c5(["ur,en"]):::literal
bind0[/VALUES ?company/]
bind0-->v1
bind00(["wd:Q134068"])
bind00 --> bind0
v1 -->v2--> v3
v4 --"wikibase:directClaim"--> v2
bind1[/"?prop_val?companyItem"/]
v5 --o bind1
null --o bind1
bind1 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
v4 --"rdfs:label"--> v6
v3 --"rdfs:label"--> v5
end