aboutsummaryrefslogtreecommitdiff
path: root/rdf-documentation/dump-tissue.md
diff options
context:
space:
mode:
authorMunyoki Kilyungi2023-08-15 21:15:11 +0300
committerMunyoki Kilyungi2023-08-15 21:15:11 +0300
commitbe450b02198f08363986aecfd5227752d2e4ca72 (patch)
treebdcd718c86fc7366a5cfa0b234ff307f0c15c052 /rdf-documentation/dump-tissue.md
parenta9472810f601b48c643724c9186ec44721732fa7 (diff)
downloadgn-docs-be450b02198f08363986aecfd5227752d2e4ca72.tar.gz
Update auto-generated docs
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'rdf-documentation/dump-tissue.md')
-rw-r--r--rdf-documentation/dump-tissue.md19
1 files changed, 10 insertions, 9 deletions
diff --git a/rdf-documentation/dump-tissue.md b/rdf-documentation/dump-tissue.md
index 6306399..b7f45d7 100644
--- a/rdf-documentation/dump-tissue.md
+++ b/rdf-documentation/dump-tissue.md
@@ -1,7 +1,6 @@
# Tissue Metadata
## 'dump-tissue'
-
## Generated Triples:
The following SQL query was executed:
@@ -13,20 +12,22 @@ SELECT Tissue.Short_Name, Tissue.Name FROM Tissue
The above query results to triples that have the form:
```text
-gn:tissue_tissue_short_name -> rdf:type -> gn:tissue
-gn:tissue_tissue_short_name -> gn-term:name -> Tissue(Name)
+gn:tissue_tissue_short_name -> rdf:type -> gnc:tissue
+gn:tissue_tissue_short_name -> rdfs:label -> Tissue(Name)
```
Here's an example query:
```sparql
PREFIX gn: <http://genenetwork.org/id/>
-PREFIX gn-term: <http://genenetwork.org/terms/>
+PREFIX gnt: <http://genenetwork.org/terms/>
+PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
+PREFIX gnc: <http://genenetwork.org/category/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
-SELECT ?s ?p ?o WHERE {
- ?s rdf:type gn:tissue .
- ?s gn-term:name "Brain mRNA" .
+SELECT * WHERE {
+ ?s rdf:type gnc:tissue .
+ ?s rdfs:label "Brain mRNA" .
?s ?p ?o .
}
```
@@ -34,7 +35,7 @@ SELECT ?s ?p ?o WHERE {
Expected Result:
```rdf
-gn:tissue_brn rdf:type gn:tissue .
-gn:tissue_brn gn-term:name "Brain mRNA" .
+gn:tissue_brn rdf:type gnc:tissue .
+gn:tissue_brn rdfs:label "Brain mRNA" .
```