diff options
Diffstat (limited to 'rdf-documentation/dump-tissue.md')
-rw-r--r-- | rdf-documentation/dump-tissue.md | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/rdf-documentation/dump-tissue.md b/rdf-documentation/dump-tissue.md index bfa2a76..dd64f83 100644 --- a/rdf-documentation/dump-tissue.md +++ b/rdf-documentation/dump-tissue.md @@ -4,7 +4,7 @@ ## Schema Triples: ```text -gn:name -> rdfs:range -> rdfs:Literal +gn-term:name -> rdfs:range -> rdfs:Literal ``` ## Generated Triples: @@ -17,18 +17,20 @@ 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:name -> Tissue(Name) +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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> -PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> -PREFIX gn: <http://genenetwork.org/terms/> +@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:tissue . + ?s rdf:type gn-id:tissue . + ?s gn-term:name "Brain mRNA" . ?s ?p ?o . } ``` @@ -36,7 +38,7 @@ SELECT ?s ?p ?o WHERE { Expected Result: ```rdf -gn:tissue_brn rdf:type gn:tissue . -gn:tissue_brn gn:name "Brain mRNA" . +gn-id:tissue_brn rdf:type gn-id:tissue . +gn-id:tissue_brn gn-term:name "Brain mRNA" . ``` |