sparql-examples

A set of SPARQL examples that are used in different SIB resources

View the Project on GitHub sib-swiss/sparql-examples

025

What is the post-juvenile stage link and description?

Use at

PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX efo: <http://www.ebi.ac.uk/efo/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?stage ?stageName ?stageDescription WHERE {
    ?stage a efo:EFO_0000399 ;
        rdfs:label ?stageName ;
        dcterms:description ?stageDescription .
    FILTER(CONTAINS(LCASE(?stageName), "post-juvenile"))
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v2("?stage"):::projected 
  v3("?stageDescription"):::projected 
  v1("?stageName"):::projected 
  c3(["efo:EFO_0000399"]):::iri 
  f0[["contains(lower-case(?stageName),'post-juvenile')"]]
  f0 --> v1
  v2 --"a"-->  c3
  v2 --"rdfs:label"-->  v1
  v2 --"dcterms:description"-->  v3