query-2b579281208eb4288e63e6d8608cc014
instance of company (iteminstance of (P31)company (Q783794) ) in country Norway (itemcountry (P17)Norway (Q20) )
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 ?linkTo {
?item (wdt:P31 / wdt:P279*) wd:Q783794.
?item wdt:P17 wd:Q20.
OPTIONAL { ?item wdt:P279 ?linkTo }
SERVICE wikibase:label {bd:serviceParam wikibase:language "en" }
}
Query found at
- https://www.wikidata.org/wiki/User:Iwan.Aucamp/WIP/Norway
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Norway
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?linkTo"):::projected
a1((" "))
c3(["wd:Q783794"]):::iri
c7(["bd:serviceParam"]):::iri
c5(["wd:Q20"]):::iri
c9(["en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P17"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P279".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end