sparql-examples

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

View the Project on GitHub BiGCAT-UM/sparql-examples

001

rq turtle/ttl

[fill out comment here]

Use at

PREFIX aopo: <http://aopkb.org/aop_ontology#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX edam: <http://edamontology.org/>
PREFIX pato: <http://purl.obolibrary.org/obo/PATO_>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT  distinct  ?keid ?ketitle ?objectname ?uniprot ?prot
WHERE {
    ?aop a aopo:AdverseOutcomePathway ;
        rdfs:label ?aop_id;
        aopo:has_key_event ?ke.
    ?ke pato:0001241 ?object; dc:title ?ketitle; rdfs:label ?keid.
    ?object dc:title ?objectname; skos:exactMatch ?prot.
    ?prot a edam:data_2291; edam:data_2291 ?uniprot.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v1("?aop")
  v2("?aop_id")
  v3("?ke")
  v6("?keid"):::projected 
  v5("?ketitle"):::projected 
  v4("?object")
  v7("?objectname"):::projected 
  v8("?prot"):::projected 
  v9("?uniprot"):::projected 
  c8(["edam:data_2291"]):::iri 
  c2(["aopo:AdverseOutcomePathway"]):::iri 
  v1 --"a"-->  c2
  v1 --"rdfs:label"-->  v2
  v1 --"aopo:has_key_event"-->  v3
  v3 --"pato:0001241"-->  v4
  v3 --"dc:title"-->  v5
  v3 --"rdfs:label"-->  v6
  v4 --"dc:title"-->  v7
  v4 --"skos:exactMatch"-->  v8
  v8 --"a"-->  c8
  v8 -->c8--> v9