sparql-examples

A set of SPARQL examples

View the Project on GitHub Adafede/sparql-examples

wd_isotopocules

rq turtle/ttl

Which structures are isotopically-labeled ones?

Use at


PREFIX wdt: <http://www.wikidata.org/prop/direct/>
#title: Which structures are isotopically-labeled ones?
SELECT ?structure WHERE {
    ?structure wdt:P234 ?inchi.
    FILTER(REGEX(STR(?inchi), "/i"))
}

graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?inchi")
  v2("?structure"):::projected 
  f0[["regex(str(?inchi),'/i')"]]
  f0 --> v1
  v2 --"wdt:P234"-->  v1