| 227 | |
| 228 | Query 3': |
| 229 | |
| 230 | |
| 231 | {{{ |
| 232 | SELECT * |
| 233 | WHERE { |
| 234 | service<http://cu.kegg.bio2rdf.org/sparql> |
| 235 | { |
| 236 | ?enzyme <http://bio2rdf.org/kegg_vocabulary:substrate> ?cpd. |
| 237 | ?enzyme rdf:type <http://bio2rdf.org/kegg_vocabulary:Enzyme>. |
| 238 | ?reaction <http://bio2rdf.org/kegg_vocabulary:enzyme> ?enzyme. |
| 239 | ?reaction <http://bio2rdf.org/kegg_vocabulary:reaction> ?equation. |
| 240 | } |
| 241 | service<http://cu.drugbank.bio2rdf.org/sparql> |
| 242 | { |
| 243 | ?drug <http://bio2rdf.org/drugbank_vocabulary:category> ?cat. |
| 244 | ?drug <http://purl.org/dc/terms/description> ?desc. |
| 245 | ?drug <http://bio2rdf.org/drugbank_vocabulary:x-kegg> ?cpd |
| 246 | } |
| 247 | } |
| 248 | }}} |
| 249 | |
| 250 | Query 3": exchange the order of two service clauses in the query 3'. |
| 251 | |
| 252 | Query 4': |
| 253 | |
| 254 | |
| 255 | {{{ |
| 256 | PREFIX dcterms: <http://purl.org/dc/terms/> |
| 257 | PREFIX sider: <http://bio2rdf.org/sider:> |
| 258 | PREFIX sider_vocab: <http://bio2rdf.org/sider_vocabulary:> |
| 259 | PREFIX sider_resource: <http://bio2rdf.org/sider_resource:> |
| 260 | PREFIX bio2rdf: <http://bio2rdf.org/bio2rdf_vocabulary:> |
| 261 | PREFIX pubchem: <http://bio2rdf.org/pubchem.compound:> |
| 262 | PREFIX dbowl: <http://dbpedia.org/ontology/> |
| 263 | |
| 264 | select * |
| 265 | where { service<http://cu.sider.bio2rdf.org/sparql> |
| 266 | |
| 267 | { |
| 268 | ?drug sider_vocab:generic-name ?generic; |
| 269 | dcterms:title ?drug_name; |
| 270 | sider_vocab:side-effect ?side. |
| 271 | ?drug sider_vocab:pubchem-flat-compound-id ?cpd. |
| 272 | ?generic dcterms:title ?generic_name. |
| 273 | ?side dcterms:title ?side_effect.} |
| 274 | |
| 275 | service<http://cu.drugbank.bio2rdf.org/sparql> |
| 276 | { |
| 277 | ?drug2 <http://bio2rdf.org/drugbank_vocabulary:category> <http://bio2rdf.org/drugbank_vocabulary:Anti-Allergic-Agents>. |
| 278 | ?drug2 <http://bio2rdf.org/drugbank_vocabulary:x-pubchemcompound> ?cpd. |
| 279 | |
| 280 | } |
| 281 | |
| 282 | } |
| 283 | }}} |