Changes between Initial Version and Version 1 of RDF/KazusaAnnotation

Show
Ignore:
Timestamp:
2011/02/16 18:14:07 (14 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RDF/KazusaAnnotation

    v1 v1  
     1== KazusaAnnoation RDF == 
     2[http://a.kazusa.or.jp KazusaAnnotation] is a social genome annotation tool. 
     3 
     4KazusaAnnotation SPARQL endpoint: http://beta.dbcls.jp/4store/ka/test/  
     5 
     6 
     7 
     8== Turtle sample == 
     9{{{ 
     10<http://a.kazusa.or.jp/bookmarks/136848>        <http://purl.org/dc/elements/1.1/date>  "2008-01-15T16:23:42+09:00"^^<http://www.w3.org/2001/XMLSchema#:datetime> . 
     11<http://a.kazusa.or.jp/bookmarks/136848>        <http://purl.org/dc/elements/1.1/creator>       "yoshimura_h" . 
     12<http://a.kazusa.or.jp/bookmarks/136848>        gi:annotate     <http://a.kazusa.or.jp/pages/54> . 
     13<http://a.kazusa.or.jp/pages/54>        <http://purl.org/dc/elements/1.1/title> "CyanoBase/Synechocystis - syn:sll0821" . 
     14<http://a.kazusa.or.jp/pages/54>        <http://purl.org/dc/elements/1.1/uri>   <http://genome.kazusa.or.jp/cyanobase/Synechocystis/genes/sll0821> . 
     15<http://genome.kazusa.or.jp/cyanobase/Synechocystis/genes/sll0821>      <http://purl.org/dc/elements/1.1/title> "CyanoBase/Synechocystis - syn:sll0821" . 
     16<http://a.kazusa.or.jp/pages/54>        <http://www.w3.org/2000/01/rdf-schema#label>    "sll0821" . 
     17<http://a.kazusa.or.jp/pages/54>        gi:gene <http://genome.kazusa.or.jp/cyanobase/Synechocystis/genes/sll0821> . 
     18<http://a.kazusa.or.jp/pages/54>        gi:aspect       "genes" . 
     19<http://a.kazusa.or.jp/pages/54>        gi:dsn  <http://genome.kazusa.or.jp/cyanobase/Synechocystis> . 
     20<http://a.kazusa.or.jp/pages/54>        gi:dataset      <http://genome.kazusa.or.jp/cyanobase/> . 
     21<http://a.kazusa.or.jp/pages/54>        gi:species      "Synechocystis" . 
     22<http://a.kazusa.or.jp/bookmarks/136848>        gi:comment      "[pmid:15641769][Discussion]" . 
     23<http://a.kazusa.or.jp/bookmarks/136848>        gi:tag  "pmid:15641769" . 
     24<http://a.kazusa.or.jp/bookmarks/136848>        gi:tag  "pmid" . 
     25<http://a.kazusa.or.jp/bookmarks/136848>        gi:tag  "Discussion" . 
     26}}} 
     27 
     28== vocabulary == 
     29 
     30 * http://purl.org/dc/elements/1.1/date 
     31 * http://purl.org/dc/elements/1.1/creator 
     32 * http://purl.org/dc/elements/1.1/title 
     33 * http://purl.org/dc/elements/1.1/uri 
     34 * http://www.w3.org/2000/01/rdf-schema#label 
     35http://a.kazusa.or.jp/core/1.0/ (image) 
     36 * http://a.kazusa.or.jp/core/1.0/annotate 
     37 * http://a.kazusa.or.jp/core/1.0/gene 
     38 * http://a.kazusa.or.jp/core/1.0/aspect 
     39 * http://a.kazusa.or.jp/core/1.0/dsn 
     40 * http://a.kazusa.or.jp/core/1.0/dataset 
     41 * http://a.kazusa.or.jp/core/1.0/commont 
     42 * http://a.kazusa.or.jp/core/1.0/tag 
     43 * http://a.kazusa.or.jp/core/1.0/species 
     44  
     45== Sample queries == 
     46 
     47=== Bookmarks and tags annotated with gene "slr1311"  === 
     48{{{ 
     49SELECT ?b ?tag WHERE { 
     50 ?page <http://www.w3.org/2000/01/rdf-schema#label> "slr1311" . 
     51 ?b ?p ?page .  
     52 ?b <http://a.kazusa.or.jp/core/1.0/tag> ?tag 
     53} LIMIT 1000 
     54}}} 
     55 
     56=== bookmarks and predicates of a page === 
     57{{{ 
     58select * where {?s ?p <http://a.kazusa.or.jp/pages/23> } limit 10 
     59}}} 
     60 
     61=== bookmarks and tags of page 23 === 
     62{{{ 
     63select ?s ?tag where { 
     64?s ?p <http://a.kazusa.or.jp/pages/23> .  
     65?s <http://a.kazusa.or.jp/core/1.0/tag> ?tag  
     66} limit 10 
     67}}} 
     68 
     69=== pages and labels ===  
     70{{{ 
     71select * WHERE { 
     72?s <http://www.w3.org/2000/01/rdf-schema#label> ?o  
     73} limit 10 
     74}}} 
     75 
     76=== slr1311 page === 
     77{{{ 
     78select * WHERE { 
     79?s <http://www.w3.org/2000/01/rdf-schema#label> "slr1311"  
     80} limit 10 
     81}}} 
     82 
     83=== bookmarks annotated with slr1311 page === 
     84{{{ 
     85select * WHERE { 
     86?page <http://www.w3.org/2000/01/rdf-schema#label> "slr1311" .  
     87?b <http://a.kazusa.or.jp/core/1.0/annotate> ?page .  
     88} limit 10 
     89}}} 
     90 
     91 
     92=== bookmarks and tags annotated with slr1311 page ===  
     93{{{ 
     94select * WHERE { 
     95?page <http://www.w3.org/2000/01/rdf-schema#label> "slr1311" .  
     96?b <http://a.kazusa.or.jp/core/1.0/annotate> ?page .  
     97?b <http://a.kazusa.or.jp/core/1.0/tag> ?tag . 
     98} 
     99}}} 
     100 
     101=== bookmarks to have "title" tag ===  
     102{{{ 
     103select * where {?s <http://a.kazusa.or.jp/core/1.0/tag> "title" } 
     104}}} 
     105 
     106=== bookmarks and genes in article pmid:8193127 === 
     107{{{ 
     108select * where { 
     109?b <http://a.kazusa.or.jp/core/1.0/tag> "pmid:8193127" .  
     110?b <http://a.kazusa.or.jp/core/1.0/annotate> ?page .  
     111?page <http://a.kazusa.or.jp/core/1.0/gene> ?gene  
     112} 
     113}}} 
     114 
     115 
     116=== tags of article pmid:8193127 === 
     117{{{ 
     118select ?tag where { 
     119?b <http://a.kazusa.or.jp/core/1.0/tag> "pmid:8193127" .  
     120?b <http://a.kazusa.or.jp/core/1.0/annotate> ?page .   
     121?c <http://a.kazusa.or.jp/core/1.0/annotate> ?page .  
     122?c <http://a.kazusa.or.jp/core/1.0/tag> ?tag 
     123} 
     124}}} 
     125 
     126=== generic guery === 
     127{{{ 
     128PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
     129PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> 
     130PREFIX mb: <http://genome.kazusa.or.jp/ns#> 
     131PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> 
     132SELECT * WHERE { 
     133 ?s ?p ?o 
     134} LIMIT 10 
     135}}} 
     136 
     137=== "slr1485" === 
     138{{{ 
     139PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
     140PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> 
     141PREFIX mb: <http://genome.kazusa.or.jp/ns#> 
     142PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> 
     143SELECT * WHERE { 
     144 ?s ?p "slr1485" 
     145} LIMIT 10 
     146}}} 
     147 
     148{{{ 
     149PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
     150PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> 
     151PREFIX mb: <http://genome.kazusa.or.jp/ns#> 
     152PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> 
     153CONSTRUCT  
     154{ 
     155?s ?p "slr1485" 
     156} 
     157WHERE { 
     158 ?s ?p "slr1485" 
     159} LIMIT 10 
     160}}} 
     161 
     162{{{ 
     163PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
     164PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> 
     165PREFIX mb: <http://genome.kazusa.or.jp/ns#> 
     166PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> 
     167SELECT * WHERE { 
     168<http://a.kazusa.or.jp/pages/83> ?p ?o 
     169} LIMIT 10 
     170}}} 
     171 
     172{{{ 
     173PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
     174PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> 
     175PREFIX mb: <http://genome.kazusa.or.jp/ns#> 
     176PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> 
     177CONSTRUCT 
     178{ 
     179<http://a.kazusa.or.jp/pages/83> ?p ?o 
     180} 
     181WHERE { 
     182<http://a.kazusa.or.jp/pages/83> ?p ?o 
     183} LIMIT 10 
     184}}} 
     185 
     186{{{ 
     187PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
     188PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> 
     189PREFIX mb: <http://genome.kazusa.or.jp/ns#> 
     190PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> 
     191SELECT * WHERE { 
     192?s ?p <http://a.kazusa.or.jp/pages/83> 
     193} LIMIT 10 
     194}}} 
     195 
     196 
     197{{{ 
     198PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> 
     199PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> 
     200PREFIX mb: <http://genome.kazusa.or.jp/ns#> 
     201PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> 
     202CONSTRUCT 
     203{ 
     204?s ?p <http://a.kazusa.or.jp/pages/83> 
     205} 
     206WHERE { 
     207?s ?p <http://a.kazusa.or.jp/pages/83> 
     208} LIMIT 10 
     209}}}