forked from danielqiang/CombineSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.py
More file actions
26 lines (25 loc) · 819 Bytes
/
script.py
File metadata and controls
26 lines (25 loc) · 819 Bytes
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
options = {
# TODO: Use prepared SPARQL queries to avoid SPARQL injection
'Has Mediator Participant': (
"""
SELECT ?extRef ?participant
WHERE {{
?s semsim:hasMediatorParticipant ?participant .
?participant semsim:hasPhysicalEntityReference ?entityRef .
?entityRef bqbiol:is ?extRef .
FILTER (contains(str(?extRef), "{}")) .
}}
ORDER BY ?participant
"""
),
# TODO: Add SPARQL mappings for all statements
'Contain species': None,
'Contain reaction': None,
'Include protein': None,
'Contain protein': None,
'Include compartment': None,
'Apply to taxon': None,
'Include protein as reactant': None,
'Include protein as product': None
}
# http://purl.obolibrary.org/obo/PR_P29994