aboutsummaryrefslogtreecommitdiff
path: root/rdf-documentation/dump-tissue.md
blob: dd64f8320c8b7d7a8eb0a4001e9b384e0e116524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Tissue Metadata
## 'dump-tissue'

## Schema Triples:

```text
gn-term:name -> rdfs:range -> rdfs:Literal
```
## Generated Triples:

The following SQL query was executed:

```sql
SELECT Tissue.Short_Name, Tissue.Name FROM Tissue
```

The above query results to triples that have the form:

```text
gn-id:tissue_tissue_short_name -> rdf:type -> gn-id:tissue 
gn-id:tissue_tissue_short_name -> gn-term:name -> Tissue(Name) 
```
Here's an example query:

```sparql
@prefix gn-id: <http://genenetwork.org/terms/> .
@prefix gn-term: <http://genenetwork.org/terms/> .
@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-id:tissue .
    ?s gn-term:name "Brain mRNA" .
    ?s ?p ?o .
}
```

Expected Result:

```rdf
gn-id:tissue_brn rdf:type gn-id:tissue .
gn-id:tissue_brn gn-term:name "Brain mRNA" .
```