From 600df0db40fc4e76f43edcc7d00d978c32f4d472 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 13 Jan 2026 23:10:05 +0300 Subject: Updated issue. Signed-off-by: Munyoki Kilyungi --- issues/rdf/expose-rdf-to-web.gmi | 50 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 47 insertions(+), 3 deletions(-) diff --git a/issues/rdf/expose-rdf-to-web.gmi b/issues/rdf/expose-rdf-to-web.gmi index 79c2797..3cbb91d 100644 --- a/issues/rdf/expose-rdf-to-web.gmi +++ b/issues/rdf/expose-rdf-to-web.gmi @@ -26,8 +26,52 @@ All rdf.genenetwork.org/v1/* namespaces resolve over HTTP. At minimum: * Human-readable HTML in a browser. * RDF (Turtle or RDF/XML) via content negotiation. +## Notes + +* (Example) Queries for all terms/categories/ids: + +``` +PREFIX gn: +PREFIX gnc: +PREFIX gnt: + +CONSTRUCT { + gn:Arabidopsis_thaliana ?p ?o . +} FROM +WHERE { + gn:Arabidopsis_thaliana ?p ?o . + ?s ?p ?o . +} + +CONSTRUCT { + gnc:phenotype ?p ?o . +} FROM +WHERE { + gnc:phenotype ?p ?o . + ?s ?p ?o . +} + +CONSTRUCT { + gnt:shortName ?p ?o . +} FROM +WHERE { + gnt:shortName ?p ?o . + ?s ?p ?o . +} + +``` + +* When serving, all supported formats based off Virtuoso's content negotiation: + +=> https://docs.openlinksw.com/virtuoso/rdfsparqlprotocolendpoint/ + +* Location of all files (tux02): /export/data/genenetwork-virtuoso/ + +* For current gn3, old data is maintained in this named graph: "http://genenetwork.org" while new data is being uploaded to this named graph: "http://rdf.genenetwork.org/v1" + ## Tasks -* [ ] Serve: "/v1/id/"; "/v1/category/"; and "/v1/term/" under "rdf.genenetwork.org." -* [ ] Add basic content negotiation for "text/html", "text/turtle" -* [ ] Verify:
curl -H "Accept: text/turtle" http://rdf.genenetwork.org/v1/term/...
+* [X] Set up new named graph for the rdf endpoint. Maintain old named graph for gn3 stability. +* [-] Serve: "/v1/id/"; "/v1/category/"; and "/v1/term/" under "rdf.genenetwork.org." +* [-] Add basic content negotiation for "text/microdata+html", "text/x-nice-turtle" +* [ ] Verify: `curl -H "Accept: text/microdata+html" http://rdf.genenetwork.org/v1/term/...` -- cgit 1.4.1