forked from sib-swiss/sparql-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path001.ttl
30 lines (27 loc) · 1.22 KB
/
001.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
@prefix ex: <https://bigcat-um.github.io/sparql-examples/AOP-Wiki/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
ex:001 a sh:SPARQLExecutable,
sh:SPARQLSelectExecutable ;
rdfs:comment "[fill out comment here]"@en ;
sh:prefixes _:sparql_examples_prefixes ;
sh:select """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.
}""" ;
schema:target <https://aopwiki.rdf.bigcat-bioinformatics.org/sparql/> ;
dc:contributor "Marvin Martens" .