Debian Codegraph @

tests/sparql/federated/service-2.rq

raw
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 void: <http://rdfs.org/ns/void#>
8 PREFIX dcterms: <http://purl.org/dc/terms/>
9
10 SELECT ?service ?id ?iuphar
11 WHERE {
12 # Find the service with the expertise.
13 [] dcterms:subject ?gene ;
14 void:sparqlEndpoint ?service
15 FILTER (?gene = entrez:h2550 || ?gene = entrez:h9568)
16
17 # Query that service for species and iuphar.
18 SERVICE ?service {
19 ?receptor iuphar:species ?species .
20 ?species iuphar:name ?iuphar .
21 ?species entrez:id ?id .
22 }
23 }