query-45e9f9fa0763da19224ac07240dcb45e

rq turtle/ttl

All approved minerals ]reply[19:50, 15 June 2022 (UTC)) talk (YuangaHi! I'm updating mineral articles in catalan wikipedia and I'd like to know if I can find at someway all the approved minerals by IMA in any place inside Wikidata. It would be a fantastic tool to easily check our missing minerals. Thanks in advance! ]reply[09:34, 19 June 2022 (UTC)) talk (Chris.urs-oYou only need to update the most recent minerals. Regards -- en:List_of_minerals_recognized_by_the_International_Mineralogical_Association Wikidata:Mineralogy task force/"New" minerals Wikidata:WikiProject_Mineralogy/Mineral_list#Auxiliary_listsHello Yuanga. I only update two mineral lists: I suppose Yuanga rather asks if they can use Wikidata to query the data. I believe something like this should yield all currently valid minerals:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?min ?minLabel ?imaLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
  VALUES ?ima {wd:Q13406835 wd:Q13406846 wd:Q13406860 wd:Q13406872} # A, G, Rn, Rd
  ?min wdt:P31 wd:Q12089225.
  ?min wdt:P579 ?ima.
  # OPTIONAL { ?cawiki schema:about ?min; schema:inLanguage "ca"; schema:isPartOf <https://ca.wikipedia.org/> }
  # FILTER (!BOUND(?cawiki))
} ORDER BY ?minLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?ima") v3("?min"):::projected v1("?minLabel"):::projected c2(["bd:serviceParam"]):::iri c6(["wd:Q12089225"]):::iri c4(["en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end bind0[/VALUES ?ima/] bind0-->v2 bind00(["wd:Q13406835"]) bind00 --> bind0 bind01(["wd:Q13406846"]) bind01 --> bind0 bind02(["wd:Q13406860"]) bind02 --> bind0 bind03(["wd:Q13406872"]) bind03 --> bind0 v3 --"wdt:P31"--> c6 v3 --"wdt:P579"--> v2