query-9d3aaf3037c02cdf416e428325fa8904
Propertiesinstance of (P31)field of work (P101) b) Another way is assigning organizations with sdgs directly, in case they claim this fact themselves: ⟩ (Q53581219)Sustainable Development Goal 9 ⟨ (P101)field of work ⟩ (Q59695802)PersonalData.IO ⟨ And then a simple query would bring them back:
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 ?subjectLabel ?sdgLabel
WHERE {
?sdg wdt:P31 wd:Q53580881.
?subject wdt:P101 ?sdg.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Sustainable_Development
- https://www.wikidata.org/wiki/Wikidata_talk:WikiProject_Sustainable_Development
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?sdg")
v2("?subject")
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q53580881"]):::iri
v1 --"wdt:P31"--> c2
v2 --"wdt:P101"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end