diff options
Diffstat (limited to 'rdf-documentation/dump-tissue.md')
-rw-r--r-- | rdf-documentation/dump-tissue.md | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/rdf-documentation/dump-tissue.md b/rdf-documentation/dump-tissue.md index dd64f83..12271e8 100644 --- a/rdf-documentation/dump-tissue.md +++ b/rdf-documentation/dump-tissue.md @@ -1,11 +1,7 @@ # Tissue Metadata ## 'dump-tissue' -## Schema Triples: -```text -gn-term:name -> rdfs:range -> rdfs:Literal -``` ## Generated Triples: The following SQL query was executed: @@ -17,19 +13,19 @@ 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) +gn:tissue_tissue_short_name -> rdf:type -> gn:tissue +gn:tissue_tissue_short_name -> gn-term:name -> Tissue(Name) ``` Here's an example query: ```sparql -@prefix gn-id: <http://genenetwork.org/terms/> . +@prefix gn: <http://genenetwork.org/id/> . @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 rdf:type gn:tissue . ?s gn-term:name "Brain mRNA" . ?s ?p ?o . } @@ -38,7 +34,7 @@ SELECT ?s ?p ?o WHERE { Expected Result: ```rdf -gn-id:tissue_brn rdf:type gn-id:tissue . -gn-id:tissue_brn gn-term:name "Brain mRNA" . +gn:tissue_brn rdf:type gn:tissue . +gn:tissue_brn gn-term:name "Brain mRNA" . ``` |