aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2023-06-28 07:47:21 -0500
committerPjotr Prins2023-06-28 07:55:01 -0500
commit486140bec76bc64a89dd2d7eb812db508d2818d1 (patch)
tree1845eb788956b9241b00d1a3ccb476e17de9f995
parent0e5094c513ad0c65616f97b804f96406bab92d8d (diff)
downloadgn-docs-486140bec76bc64a89dd2d7eb812db508d2818d1.tar.gz
Adding SPARQL
-rw-r--r--api/questions-to-ask-GN.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/api/questions-to-ask-GN.md b/api/questions-to-ask-GN.md
index 254fb82..9b26168 100644
--- a/api/questions-to-ask-GN.md
+++ b/api/questions-to-ask-GN.md
@@ -15,6 +15,7 @@ curl https://genenetwork.org/api/v_pre1/
{"hello":"world"}
```
+
## Return species
* Current:
@@ -37,6 +38,20 @@ curl -s https://genenetwork.org/api/v_pre1/species|jq '.[0:2]'
]
```
+* Current SPARQL:
+
+https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=prefix%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2F%3E%0A%0ASELECT%20*%20WHERE%20%7B%0A%3Fs%20rdf%3Atype%20gn%3Aspecies%20.%0A%7D&format=text%2Fhtml&timeout=0&signal_void=on
+
+What is known about mouse?
+
+```
+SELECT * WHERE {
+ gn:species_mus_musculus ?p ?o.
+}
+```
+
+https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=prefix%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2F%3E%0A%0ASELECT%20*%20WHERE%20%7B%0Agn%3Aspecies_mus_musculus%20%3Fp%20%3Fo.%0A%7D&format=text%2Fhtml&timeout=0&signal_void=on
+
## Return available groups/populations
* Current: https://genenetwork.org/api/v_pre1/groups/mouse
@@ -347,6 +362,18 @@ Next the GN3 code base which is all supposed to be REST API:
* https://github.com/genenetwork/genenetwork3/tree/main/gn3/api
+
+is GN3 live?
+
+```
+curl -s http://genenetwork.org/api3/api/version
+"1.0"
+```
+
Finally the SPARQL endpoint which is driven by RDF generated with
* https://github.com/genenetwork/dump-genenetwork-database
+
+Visit
+
+* https://sparql.genenetwork.org/sparql