chemical compound with CAS registry number (E298)

language codelabeldescriptionaliasesedit
enchemical compound with CAS registry numberShape expression extending the one for 'chemical compound' but with a CAS registry number defined.edit
IMPORT <https://www.wikidata.org/wiki/Special:EntitySchemaText/E239>
PREFIX E239: <https://www.wikidata.org/wiki/Special:EntitySchemaText/E239#>

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

# Example SPARQL query: select * where { ?x wdt:P31 wd:Q11173 ; wdt:P231 [] } limit 5

start = @<#wikidata-with-cas>

<#wikidata-with-cas> @ E239:wikidata-chemical-compound AND {
  wdt:P231 .{1} ; # CAS registry number
}