sparql-examples

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

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

000

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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
SELECT  distinct  ?keid ?ketitle ?id ?ncbi
WHERE {
    ?ke a aopo:KeyEvent; edam:data_1025 ?object; dc:title ?ketitle; rdfs:label ?keid.
    ?object skos:exactMatch ?id.
    ?id a edam:data_1027; edam:data_1027 ?ncbi.
}
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v5("?id"):::projected 
  v1("?ke")
  v4("?keid"):::projected 
  v3("?ketitle"):::projected 
  v6("?ncbi"):::projected 
  v2("?object")
  c2(["aopo:KeyEvent"]):::iri 
  c7(["edam:data_1027"]):::iri 
  v1 --"a"-->  c2
  v1 --"edam:data_1025"-->  v2
  v1 --"dc:title"-->  v3
  v1 --"rdfs:label"-->  v4
  v2 --"skos:exactMatch"-->  v5
  v5 --"a"-->  c7
  v5 -->c7--> v6