| 1 |
# http://www.w3.org/2009/sparql/docs/fed/service |
| 2 |
# Revision 1.13 2010/08/06 12:06:52 aseaborne |
| 3 |
# Section 2 |
| 4 |
|
| 5 |
PREFIX iuphar: <http://iuphar.example/ns#> |
| 6 |
PREFIX entrez: <http://entrez.example/ns#> |
| 7 |
PREFIX med: <http://med.example/testDrug#> |
| 8 |
PREFIX study: <http://study.example/affects#> |
| 9 |
|
| 10 |
SELECT ?med ?species ?iuphar |
| 11 |
WHERE { |
| 12 |
SERVICE <http://bio.example/receptors> { |
| 13 |
?receptor iuphar:ligand "GABA" . |
| 14 |
?receptor iuphar:species ?species . |
| 15 |
?species iuphar:name ?iuphar . |
| 16 |
?species entrez:id ?id . |
| 17 |
} |
| 18 |
SERVICE <http://study.example/analyzed> { |
| 19 |
?study entrez:id ?id . |
| 20 |
?study study:species ?species . |
| 21 |
?study med:ication ?med . |
| 22 |
?study study:change ?change . |
| 23 |
FILTER (?change < -.2) |
| 24 |
} |
| 25 |
} |