| 1 | == KazusaAnnoation RDF == |
| 2 | [http://a.kazusa.or.jp KazusaAnnotation] is a social genome annotation tool. |
| 3 | |
| 4 | KazusaAnnotation 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 |
| 35 | http://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 | {{{ |
| 49 | SELECT ?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 | {{{ |
| 58 | select * where {?s ?p <http://a.kazusa.or.jp/pages/23> } limit 10 |
| 59 | }}} |
| 60 | |
| 61 | === bookmarks and tags of page 23 === |
| 62 | {{{ |
| 63 | select ?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 | {{{ |
| 71 | select * WHERE { |
| 72 | ?s <http://www.w3.org/2000/01/rdf-schema#label> ?o |
| 73 | } limit 10 |
| 74 | }}} |
| 75 | |
| 76 | === slr1311 page === |
| 77 | {{{ |
| 78 | select * 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 | {{{ |
| 85 | select * 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 | {{{ |
| 94 | select * 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 | {{{ |
| 103 | select * where {?s <http://a.kazusa.or.jp/core/1.0/tag> "title" } |
| 104 | }}} |
| 105 | |
| 106 | === bookmarks and genes in article pmid:8193127 === |
| 107 | {{{ |
| 108 | select * 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 | {{{ |
| 118 | select ?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 | {{{ |
| 128 | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 129 | PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> |
| 130 | PREFIX mb: <http://genome.kazusa.or.jp/ns#> |
| 131 | PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> |
| 132 | SELECT * WHERE { |
| 133 | ?s ?p ?o |
| 134 | } LIMIT 10 |
| 135 | }}} |
| 136 | |
| 137 | === "slr1485" === |
| 138 | {{{ |
| 139 | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 140 | PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> |
| 141 | PREFIX mb: <http://genome.kazusa.or.jp/ns#> |
| 142 | PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> |
| 143 | SELECT * WHERE { |
| 144 | ?s ?p "slr1485" |
| 145 | } LIMIT 10 |
| 146 | }}} |
| 147 | |
| 148 | {{{ |
| 149 | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 150 | PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> |
| 151 | PREFIX mb: <http://genome.kazusa.or.jp/ns#> |
| 152 | PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> |
| 153 | CONSTRUCT |
| 154 | { |
| 155 | ?s ?p "slr1485" |
| 156 | } |
| 157 | WHERE { |
| 158 | ?s ?p "slr1485" |
| 159 | } LIMIT 10 |
| 160 | }}} |
| 161 | |
| 162 | {{{ |
| 163 | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 164 | PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> |
| 165 | PREFIX mb: <http://genome.kazusa.or.jp/ns#> |
| 166 | PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> |
| 167 | SELECT * WHERE { |
| 168 | <http://a.kazusa.or.jp/pages/83> ?p ?o |
| 169 | } LIMIT 10 |
| 170 | }}} |
| 171 | |
| 172 | {{{ |
| 173 | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 174 | PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> |
| 175 | PREFIX mb: <http://genome.kazusa.or.jp/ns#> |
| 176 | PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> |
| 177 | CONSTRUCT |
| 178 | { |
| 179 | <http://a.kazusa.or.jp/pages/83> ?p ?o |
| 180 | } |
| 181 | WHERE { |
| 182 | <http://a.kazusa.or.jp/pages/83> ?p ?o |
| 183 | } LIMIT 10 |
| 184 | }}} |
| 185 | |
| 186 | {{{ |
| 187 | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 188 | PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> |
| 189 | PREFIX mb: <http://genome.kazusa.or.jp/ns#> |
| 190 | PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> |
| 191 | SELECT * WHERE { |
| 192 | ?s ?p <http://a.kazusa.or.jp/pages/83> |
| 193 | } LIMIT 10 |
| 194 | }}} |
| 195 | |
| 196 | |
| 197 | {{{ |
| 198 | PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> |
| 199 | PREFIX ka: <http://a.kazusa.or.jp/core/1.0/> |
| 200 | PREFIX mb: <http://genome.kazusa.or.jp/ns#> |
| 201 | PREFIX togo: <http://togows.dbcls.jp/ns/ncbi-pubmed#> |
| 202 | CONSTRUCT |
| 203 | { |
| 204 | ?s ?p <http://a.kazusa.or.jp/pages/83> |
| 205 | } |
| 206 | WHERE { |
| 207 | ?s ?p <http://a.kazusa.or.jp/pages/83> |
| 208 | } LIMIT 10 |
| 209 | }}} |