aboutsummaryrefslogtreecommitdiff
path: root/rdf-documentation/tissue-metadata.md
blob: 37145c4fd0a800fa6cbaa458ebbd6b2e36b60c78 (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
# Tissue Metadata
## 'tissue'

## 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:tissueTissue_short_name -> rdf:type -> gnc:tissue 
gn:tissueTissue_short_name -> rdfs:label -> Tissue(Name) 
```
Here's an example query:

```sparql
PREFIX gn: <http://genenetwork.org/id/> 
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 * WHERE { 
    ?s rdf:type gnc:tissue .
    ?s rdfs:label "Brain mRNA" .
    ?s ?p ?o .
}
```

Expected Result:

```rdf
gn:tissueBrn rdf:type gnc:tissue .
gn:tissueBrn rdfs:label "Brain mRNA" .
```