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/>
PREFIX hint: <http://www.bigdata.com/queryHints#>
#title: Which structures are isotopically-labeled ones?
SELECT ?structure WHERE {
    ?structure wdt:P234 ?inchi. hint:Prior hint:rangeSafe true.
    FILTER(REGEX(STR(?inchi), "/i"))
}

graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?inchi")
  v2("?structure"):::projected 
  c3([http://www.bigdata.com/queryHints#Prior]):::iri 
  c5(["true^^xsd:boolean"]):::literal 
  f0[["regex(str(?inchi),'/i')"]]
  f0 --> v1
  v2 --"wdt:P234"-->  v1
  c3 --http://www.bigdata.com/queryHints#rangeSafe-->  c5