biointerchange 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. data/README.md +61 -18
  2. data/VERSION +1 -1
  3. data/examples/Saccharomyces_cerevisiae_incl_consequences.gvf.gz +0 -0
  4. data/examples/webservice_example.json +7 -0
  5. data/generators/GOxrefify.rb +36 -28
  6. data/generators/javaify.rb +131 -112
  7. data/generators/make_supplement_releases.rb +57 -0
  8. data/generators/pythonify.rb +68 -53
  9. data/lib/biointerchange/core.rb +4 -2
  10. data/lib/biointerchange/faldo.rb +160 -0
  11. data/lib/biointerchange/genomics/gff3_feature_set.rb +1 -1
  12. data/lib/biointerchange/genomics/gff3_rdf_ntriples.rb +1 -1
  13. data/lib/biointerchange/genomics/gff3_reader.rb +1 -1
  14. data/lib/biointerchange/model.rb +21 -0
  15. data/lib/biointerchange/registry.rb +1 -1
  16. data/lib/biointerchange/sio.rb +2035 -57
  17. data/lib/biointerchange/textmining/document.rb +1 -1
  18. data/lib/biointerchange/textmining/pdfx_xml_reader.rb +1 -15
  19. data/lib/biointerchange/textmining/pubannos_json_reader.rb +1 -3
  20. data/spec/gff3_rdfwriter_spec.rb +1 -0
  21. data/spec/gvf_rdfwriter_spec.rb +1 -0
  22. data/spec/text_mining_pdfx_xml_reader_spec.rb +4 -3
  23. data/spec/text_mining_pubannos_json_reader_spec.rb +6 -5
  24. data/spec/text_mining_rdfwriter_spec.rb +2 -1
  25. data/supplemental/java/biointerchange/pom.xml +1 -1
  26. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/FALDO.java +219 -0
  27. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GFF3O.java +2 -1
  28. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GOXRef.java +1221 -0
  29. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GVF1O.java +2 -1
  30. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SIO.java +2283 -15
  31. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SO.java +2 -1
  32. data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SOFA.java +5 -4
  33. data/supplemental/python/biointerchange/faldo.py +168 -0
  34. data/supplemental/python/biointerchange/gff3o.py +6 -4
  35. data/supplemental/python/biointerchange/goxref.py +1040 -0
  36. data/supplemental/python/biointerchange/gvf1o.py +6 -4
  37. data/supplemental/python/biointerchange/sio.py +1740 -21
  38. data/supplemental/python/biointerchange/so.py +6527 -6525
  39. data/supplemental/python/biointerchange/sofa.py +792 -790
  40. data/supplemental/python/setup.py +2 -2
  41. data/web/about.html +9 -29
  42. data/web/api.html +10 -30
  43. data/web/biointerchange.js +78 -27
  44. data/web/cli.html +137 -0
  45. data/web/index.html +19 -34
  46. data/web/ontologies.html +9 -29
  47. data/web/service/rdfizer.fcgi +19 -2
  48. data/web/webservices.html +70 -35
  49. metadata +13 -3
@@ -2,9 +2,9 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name = "biointerchange",
5
- version = "0.2.1",
5
+ version = "0.2.2",
6
6
  author = "Joachim Baran, Geraint Duck",
7
- description = ( "Wrapper for easy access to GFF3O, GVF1O, SIO, SO and SOFA.",
7
+ description = ( "Wrapper for easy access to FALDO, GFF3O, GVF1O, SIO, SO and SOFA.",
8
8
  "Part of the BioInterchange project." ),
9
9
  license = "MIT",
10
10
  url = "http://www.biointerchange.org",
data/web/about.html CHANGED
@@ -31,34 +31,14 @@
31
31
  <div class="navbar navbar-inverse navbar-fixed-top">
32
32
  <div class="navbar-inner">
33
33
  <div class="container">
34
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
35
- <span class="icon-bar"></span>
36
- <span class="icon-bar"></span>
37
- <span class="icon-bar"></span>
38
- </a>
39
34
  <a class="brand" href="index.html">BioInterchange</a>
40
- <div class="nav-collapse collapse">
41
- <ul class="nav">
42
- <li><a href="index.html">Home</a></li>
43
- <li><a href="ontologies.html">Ontologies</a></li>
44
- <li class="active"><a href="about.html">About</a></li>
45
- <!--
46
- <li class="dropdown">
47
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
48
- <ul class="dropdown-menu">
49
- <li><a href="#">To</a></li>
50
- <li><a href="#">Be</a></li>
51
- <li><a href="#">Done</a></li>
52
- <li><a href="#">Dude</a></li>
53
- <li class="divider"></li>
54
- <li class="nav-header">API</li>
55
- <li><a href="#">API usage information</a></li>
56
- <li><a href="#">Implementing new readers/writers</a></li>
57
- </ul>
58
- </li>
59
- -->
60
- </ul>
61
- </div><!--/.nav-collapse -->
35
+ <ul class="nav">
36
+ <li><a href="cli.html">Shell Tool</a></li>
37
+ <li><a href="webservices.html">Web-Services</a></li>
38
+ <li><a href="api.html">API</a></li>
39
+ <li><a href="ontologies.html">Ontologies</a></li>
40
+ <li class="active"><a href="about.html">About</a></li>
41
+ </ul>
62
42
  </div>
63
43
  </div>
64
44
  </div>
@@ -69,7 +49,7 @@
69
49
  <div class="row">
70
50
  <div class="span12">
71
51
  <h2>About BioInterchange</h2>
72
- <p>BioInterchange was conceived and designed during <a href="http://biosciencedbc.jp">NBDC</a>/<a href="http://dbcls.rois.ac.jp">DBCLS</a>'s <a href="http://2012.biohackathon.org">BioHackathon 2012</a>. Architecture and RDF serialization implementations were provided by <a href="http://joachimbaran.wordpress.com">Joachim Baran</a>, <a href="http://www.cs.man.ac.uk/~duckg">Geraint Duck</a> provided JSON and XML deserialization implementations and contributed to architecture decisions, guidance on ontology use and applications were given by <a href="http://compbio.ucdenver.edu/Hunter_lab/Cohen/index.shtml">Kevin B. Cohen</a> and <a href="http://dumontierlab.com">Michel Dumontier</a>, where Michel brought forward and extended the <a href="http://code.google.com/p/semanticscience/wiki/SIO">Semanticscience Integrated Ontology</a> (SIO).</p>
52
+ <p>BioInterchange was conceived and designed during <a href="http://biosciencedbc.jp">NBDC</a>/<a href="http://dbcls.rois.ac.jp">DBCLS</a>'s <a href="http://2012.biohackathon.org">BioHackathon 2012</a>. Architecture and RDF serialization implementations were provided by <a href="http://joachimbaran.wordpress.com">Joachim Baran</a>, <a href="http://www.cs.man.ac.uk/~duckg">Geraint Duck</a> provided JSON and XML deserialization implementations and contributed to architecture decisions, guidance on ontology use and applications were given by <a href="http://compbio.ucdenver.edu/Hunter_lab/Cohen/index.shtml">Kevin B. Cohen</a> and <a href="http://dumontierlab.com">Michel Dumontier</a>, where Michel brought forward and extended the <a href="http://code.google.com/p/semanticscience/wiki/SIO">Semanticscience Integrated Ontology</a> (SIO). <a href="http://dbcls.rois.ac.jp/~jdkim">Jin-Dong Kim</a> helped to define ontology relationships for RDFizing DBCLS' PubAnnotation category annotations.</p>
73
53
  <h2>Contact</h2>
74
54
  <p><a href="http://joachimbaran.wordpress.com">Joachim Baran</a><br /><i>joachim.baran</i><b>&#64;</b><i>gmail.com</i></p>
75
55
  </div>
@@ -78,7 +58,7 @@
78
58
  <hr>
79
59
 
80
60
  <footer>
81
- <p>&copy; <a href="https://github.com/BioInterchange/BioInterchange#contributors">The BioInterchange Contributors</a> 2012</p>
61
+ <p>&copy; <a href="about.html">The BioInterchange Contributors</a> 2012&ndash;2013</p>
82
62
  </footer>
83
63
 
84
64
  </div> <!-- /container -->
data/web/api.html CHANGED
@@ -31,34 +31,14 @@
31
31
  <div class="navbar navbar-inverse navbar-fixed-top">
32
32
  <div class="navbar-inner">
33
33
  <div class="container">
34
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
35
- <span class="icon-bar"></span>
36
- <span class="icon-bar"></span>
37
- <span class="icon-bar"></span>
38
- </a>
39
34
  <a class="brand" href="index.html">BioInterchange</a>
40
- <div class="nav-collapse collapse">
41
- <ul class="nav">
42
- <li class="active"><a href="index.html">Home</a></li>
43
- <li><a href="ontologies.html">Ontologies</a></li>
44
- <li><a href="about.html">About</a></li>
45
- <!--
46
- <li class="dropdown">
47
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
48
- <ul class="dropdown-menu">
49
- <li><a href="#">To</a></li>
50
- <li><a href="#">Be</a></li>
51
- <li><a href="#">Done</a></li>
52
- <li><a href="#">Dude</a></li>
53
- <li class="divider"></li>
54
- <li class="nav-header">API</li>
55
- <li><a href="#">API usage information</a></li>
56
- <li><a href="#">Implementing new readers/writers</a></li>
57
- </ul>
58
- </li>
59
- -->
60
- </ul>
61
- </div><!--/.nav-collapse -->
35
+ <ul class="nav">
36
+ <li><a href="cli.html">Shell Tool</a></li>
37
+ <li><a href="webservices.html">Web-Services</a></li>
38
+ <li class="active"><a href="api.html">API</a></li>
39
+ <li><a href="ontologies.html">Ontologies</a></li>
40
+ <li><a href="about.html">About</a></li>
41
+ </ul>
62
42
  </div>
63
43
  </div>
64
44
  </div>
@@ -105,7 +85,7 @@ GFF3O.with_parent(GFF3O.start(), feature_properties)
105
85
  <p>Vocabulary wrappers in Python are available as an egg, that can be installed via <a href="http://pypi.python.org/pypi/setuptools">easy_install</a>:</p>
106
86
  <pre>
107
87
  sudo easy_install rdflib
108
- sudo easy_install http://www.biointerchange.org/eggs/biointerchange-0.1.2-py2.7.egg
88
+ sudo easy_install http://www.biointerchange.org/eggs/biointerchange-0.2.2-py2.7.egg
109
89
  </pre>
110
90
  <p>Usage example (see also <a href="https://github.com/BioInterchange/BioInterchange/blob/master/supplemental/python/example.py">example.py</a>):</p>
111
91
  <pre>
@@ -143,7 +123,7 @@ GFF3O.with_parent(GFF3O.start(), feature_properties)
143
123
  &lt;dependency&gt;
144
124
  &lt;groupId&gt;org.biointerchange&lt;/groupId&gt;
145
125
  &lt;artifactId&gt;vocabularies&lt;/artifactId&gt;
146
- &lt;version&gt;0.1.2&lt;/version&gt;
126
+ &lt;version&gt;0.2.2&lt;/version&gt;
147
127
  &lt;/dependency&gt;
148
128
  &lt;/dependencies&gt;
149
129
  </pre>
@@ -212,7 +192,7 @@ public class App
212
192
  <hr>
213
193
 
214
194
  <footer>
215
- <p>&copy; <a href="https://github.com/BioInterchange/BioInterchange#contributors">The BioInterchange Contributors</a> 2012</p>
195
+ <p>&copy; <a href="about.html">The BioInterchange Contributors</a> 2012&ndash;2013</p>
216
196
  </footer>
217
197
 
218
198
  </div> <!-- /container -->
@@ -1,5 +1,11 @@
1
+ /* Generates RDF from provided data according to additionally given parameters.
2
+ *
3
+ * '#inputformat': select box that determines the type of input data that should be converted into RDF
4
+ * '#metainput': a text field that contains parameters for the RDF conversion in JSON format
5
+ * '#output': text field to which the RDF output is appended to
6
+ */
1
7
  function generateRDF() {
2
- if ($('#inputformat').val() == 'biointerchange.gff3' || $('#inputformat').val() == 'dbcls.catanns.json' || $('#inputformat').val() == 'uk.ac.man.pdfx') {
8
+ if ($('#inputformat').val() == 'biointerchange.gff3' || $('#inputformat').val() == 'biointerchange.gvf' || $('#inputformat').val() == 'dbcls.catanns.json' || $('#inputformat').val() == 'uk.ac.man.pdfx') {
3
9
  request = '{ "parameters" : "' + escape($('#metainput').val()) + '", "data" : "' + escape($('#maininput').val()) + '" }'
4
10
  $.ajax({
5
11
  type: 'POST',
@@ -16,38 +22,57 @@ function generateRDF() {
16
22
  }
17
23
  }
18
24
 
25
+ /* Determines valid RDF output converters ("writers" or serializers) based on the chosen input data type/format.
26
+ *
27
+ * '#inputformat': select box that determines the input format type
28
+ * '#outputformat': select box with all available output formats -- some of which might be disabled (based on selected input format)
29
+ */
19
30
  function selectDbclsCatannsJson() {
20
31
  var outputFormats = $('#outputformat')[0];
21
32
  for (var i = 0; i < outputFormats.length; i++)
22
- if ($('#inputformat').val() == 'biointerchange.gff3') {
23
- if (outputFormats[i].value == 'rdf.biointerchange.gff3') {
24
- outputFormats[i].selected = true;
25
- outputFormats[i].disabled = false;
33
+ if ($('#inputformat').val() == 'biointerchange.gff3') {
34
+ if (outputFormats[i].value == 'rdf.biointerchange.gff3') {
35
+ outputFormats[i].selected = true;
36
+ outputFormats[i].disabled = false;
37
+ } else {
38
+ outputFormats[i].selected = false;
39
+ outputFormats[i].disabled = true;
40
+ }
41
+ } else if ($('#inputformat').val() == 'biointerchange.gvf') {
42
+ if (outputFormats[i].value == 'rdf.biointerchange.gvf') {
43
+ outputFormats[i].selected = true;
44
+ outputFormats[i].disabled = false;
45
+ } else {
46
+ outputFormats[i].selected = false;
47
+ outputFormats[i].disabled = true;
48
+ }
49
+ } else if ($('#inputformat').val() == 'dbcls.catanns.json') {
50
+ if (outputFormats[i].value == 'rdf.bh12.sio') {
51
+ outputFormats[i].selected = true;
52
+ outputFormats[i].disabled = false;
53
+ } else {
54
+ outputFormats[i].selected = false;
55
+ outputFormats[i].disabled = true;
56
+ }
57
+ } else if ($('#inputformat').val() == 'uk.ac.man.pdfx') {
58
+ if (outputFormats[i].value == 'rdf.bh12.sio') {
59
+ outputFormats[i].selected = true;
60
+ outputFormats[i].disabled = false;
61
+ } else {
62
+ outputFormats[i].selected = false;
63
+ outputFormats[i].disabled = true;
64
+ }
26
65
  } else {
27
- outputFormats[i].selected = false;
28
- outputFormats[i].disabled = true;
66
+ // Woopsie.
29
67
  }
30
- } else if ($('#inputformat').val() == 'dbcls.catanns.json') {
31
- if (outputFormats[i].value == 'rdf.bh12.sio') {
32
- outputFormats[i].selected = true;
33
- outputFormats[i].disabled = false;
34
- } else {
35
- outputFormats[i].selected = false;
36
- outputFormats[i].disabled = true;
37
- }
38
- } else if ($('#inputformat').val() == 'uk.ac.man.pdfx') {
39
- if (outputFormats[i].value == 'rdf.bh12.sio') {
40
- outputFormats[i].selected = true;
41
- outputFormats[i].disabled = false;
42
- } else {
43
- outputFormats[i].selected = false;
44
- outputFormats[i].disabled = true;
45
- }
46
- } else {
47
- // Woopsie.
48
- }
49
68
  }
50
69
 
70
+ /* Pastes an example into the web form.
71
+ *
72
+ * '#inputformat': a select box determining the input data format
73
+ * '#metainput': text field that is being populated with example parameters in JSON format
74
+ * '#maininput': text field that is being populated with a data example
75
+ */
51
76
  function pasteExample() {
52
77
  if ($('#inputformat').val() == 'biointerchange.gff3') {
53
78
  $('#metainput').val(
@@ -60,11 +85,37 @@ function pasteExample() {
60
85
  "}\n"
61
86
  );
62
87
  $('#maininput').val(
88
+ "##gff-version 3\n" +
89
+ "##species http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=9913\n" +
90
+ "##sequence-region ChrX.38 1 88516663\n" +
63
91
  "ChrX.38\tbovine_complete_cds_gmap_perfect\tgene\t15870\t16254\t.\t+\t.\tID=BC109609_ChrX.38\n" +
64
- "ChrX.38\tbovine_complete_cds_gmap_perfect\tRNA\t15870\t16254\t.\t+\t.\tID=bovine_complete_cds_gmap_perfect_BC109609_ChrX.38;Parent=BC109609_ChrX.38\n" +
92
+ "ChrX.38\tbovine_complete_cds_gmap_perfect\tmRNA\t15870\t16254\t.\t+\t.\tID=bovine_complete_cds_gmap_perfect_BC109609_ChrX.38;Parent=BC109609_ChrX.38\n" +
65
93
  "ChrX.38\tbovine_complete_cds_gmap_perfect\tCDS\t15870\t16254\t.\t+\t0\tParent=bovine_complete_cds_gmap_perfect_BC109609_ChrX.38\n" +
66
94
  "ChrX.38\tbovine_complete_cds_gmap_perfect\texon\t15870\t16254\t.\t+\t0\tParent=bovine_complete_cds_gmap_perfect_BC109609_ChrX.38\n"
67
95
  );
96
+ } else if ($('#inputformat').val() == 'biointerchange.gvf') {
97
+ $('#metainput').val(
98
+ "{\n" +
99
+ " \"input\" : \"biointerchange.gvf\",\n" +
100
+ " \"output\" : \"rdf.biointerchange.gvf\",\n" +
101
+ " \"name\" : \"Peter Smith\",\n" +
102
+ " \"name_id\" : \"peter.smith@some.example.domain\",\n" +
103
+ " \"date\" : \"2012-07-19\"\n" +
104
+ "}\n"
105
+ );
106
+ $('#maininput').val(
107
+ "##gff-version 3\n" +
108
+ "##gvf-version 1.06\n" +
109
+ "##species http://www.ncbi.nlm.nih.gov/Taxonomy/Browser/wwwtax.cgi?id=4932\n" +
110
+ "##feature-ontology http://song.cvs.sourceforge.net/viewvc/song/ontology/so.obo?revision=1.283\n" +
111
+ "##data-source Source=ensembl;version=71;url=http://e71.ensembl.org/Saccharomyces_cerevisiae\n" +
112
+ "##sequence-region I 1 230218\n" +
113
+ "I\tSGRP\tSNV\t84\t84\t.\t+\t.\tID=1;Variant_seq=A;Variant_effect=upstream_gene_variant 0 transcript YAL067W-A,upstream_gene_variant 0 transcript YAL069W,upstream_gene_variant 0 transcript YAL068W-A,downstream_gene_variant 0 transcript YAL068C;Dbxref=SGRP:s01-84;Reference_seq=G\n" +
114
+ "I\tSGRP\tSNV\t109\t109\t.\t+\t.\tID=2;Variant_seq=C;Variant_effect=upstream_gene_variant 0 transcript YAL067W-A,upstream_gene_variant 0 transcript YAL068W-A,upstream_gene_variant 0 transcript YAL069W,downstream_gene_variant 0 transcript YAL068C;Dbxref=SGRP:s01-109;Reference_seq=G\n" +
115
+ "I\tSGRP\tSNV\t111\t111\t.\t+\t.\tID=3;Variant_seq=T;Variant_effect=upstream_gene_variant 0 transcript YAL067W-A,upstream_gene_variant 0 transcript YAL069W,upstream_gene_variant 0 transcript YAL068W-A,downstream_gene_variant 0 transcript YAL068C;Dbxref=SGRP:s01-111;Reference_seq=C\n" +
116
+ "I\tSGRP\tSNV\t114\t114\t.\t+\t.\tID=4;Variant_seq=C;Variant_effect=upstream_gene_variant 0 transcript YAL067W-A,upstream_gene_variant 0 transcript YAL068W-A,upstream_gene_variant 0 transcript YAL069W,downstream_gene_variant 0 transcript YAL068C;Dbxref=SGRP:s01-114;Reference_seq=T\n" +
117
+ "I\tSGRP\tSNV\t115\t115\t.\t+\t.\tID=5;Variant_seq=G;Variant_effect=upstream_gene_variant 0 transcript YAL067W-A,upstream_gene_variant 0 transcript YAL068W-A,upstream_gene_variant 0 transcript YAL069W,downstream_gene_variant 0 transcript YAL068C;Dbxref=SGRP:s01-115;Reference_seq=C\n"
118
+ );
68
119
  } else if ($('#inputformat').val() == 'dbcls.catanns.json') {
69
120
  $('#metainput').val(
70
121
  "{\n" +
data/web/cli.html ADDED
@@ -0,0 +1,137 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>BioInterchange</title>
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <meta name="description" content="">
8
+ <meta name="author" content="">
9
+
10
+ <!-- Le styles -->
11
+ <link href="bootstrap/css/bootstrap.css" rel="stylesheet">
12
+ <style type="text/css">
13
+ body {
14
+ padding-top: 60px;
15
+ padding-bottom: 40px;
16
+ }
17
+ </style>
18
+ <link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
19
+ <script src="bootstrap/js/jquery-1.8.1.min.js"></script>
20
+
21
+ <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
22
+ <!--[if lt IE 9]>
23
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
24
+ <![endif]-->
25
+
26
+ <!-- Le fav and touch icons -->
27
+ <!-- <link rel="shortcut icon" href="../assets/ico/favicon.ico"> -->
28
+ </head>
29
+
30
+ <body>
31
+ <a href="https://github.com/BioInterchange/BioInterchange"><img style="z-index: 5000; position: fixed; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
32
+ <div class="navbar navbar-inverse navbar-fixed-top">
33
+ <div class="navbar-inner">
34
+ <div class="container">
35
+ <a class="brand" href="index.html">BioInterchange</a>
36
+ <ul class="nav">
37
+ <li class="active"><a href="cli.html">Shell Tool</a></li>
38
+ <li><a href="webservices.html">Web-Services</a></li>
39
+ <li><a href="api.html">API</a></li>
40
+ <li><a href="ontologies.html">Ontologies</a></li>
41
+ <li><a href="about.html">About</a></li>
42
+ </ul>
43
+ </div>
44
+ </div>
45
+ </div>
46
+
47
+ <div class="container">
48
+
49
+ <!-- Example row of columns -->
50
+ <div class="row">
51
+ <div class="span12">
52
+ <h1>Shell Tool</h1>
53
+ <p>
54
+ BioInterchange's command-line tool <code>biointerchange</code> can be installed as a command line tools as follows:
55
+ <pre>
56
+ gem install biointerchange
57
+ </pre>
58
+ </p>
59
+ <h4>Usage</h4>
60
+ <p>
61
+ Examples:
62
+ <pre>
63
+ biointerchange --input dbcls.catanns.json --rdf rdf.bh12.sio --file examples/pubannotation.10096561.json --name 'Peter Smith' --name_id 'peter.smith@example.com'
64
+ biointerchange --input uk.ac.man.pdfx --rdf rdf.bh12.sio --file examples/gb-2007-8-3-R40.xml --name 'Peter Smith' --name_id 'peter.smith@example.com'
65
+ </pre>
66
+ Input formats:
67
+ <ul>
68
+ <li><code>biointerchange.gff3</code>: <a href="http://www.sequenceontology.org/resources/gff3.html">Generic Feature Format Version 3</a></li>
69
+ <li><code>biointerchange.gvf</code>: <a href="http://www.sequenceontology.org/resources/gvf.html">Genome Variation Format</a></li>
70
+ <li><code>dbcls.catanns.json</code>: <a href="http://pubannotation.dbcls.jp">PubAnnotation categorical annotations</a></li>
71
+ <li><code>uk.ac.man.pdfx</code>: <a href=http://pdfx.cs.man.ac.uk">PDFx</a></li>
72
+ </ul>
73
+ Output formats:
74
+ <ul>
75
+ <li><code>rdf.biointerchange.gff3</code>: RDFization of <code>biointerchange.gff3</code></li>
76
+ <li><code>rdf.biointerchange.gvf</code>: RDFization of <code>biointerchange.gvf</code></li>
77
+ <li><code>rdf.bh12.sio</code>: RDFization of <code>dbcls.catanns.json</code> or <code>uk.ac.man.pdfx</code></li>
78
+ </ul>
79
+ </p>
80
+ <h4>Using a Triple Store</h4>
81
+ <p>
82
+ RDF data produced by BioInterchange can be directly loaded into a triple store. The following gives an example about loading and querying RDF data using <a href="http://www.openrdf.org">Sesame</a>]; the commands are entered via Sesame's <code>bin/console.sh</code>:
83
+ <pre>
84
+ &gt; create memory.
85
+ Please specify values for the following variables:
86
+ Repository ID [memory]: testrepo
87
+ Repository title [Memory store]: Test Repository
88
+ Persist (true|false) [true]: false
89
+ Sync delay [0]:
90
+ Repository created
91
+ &gt; open testrepo.
92
+ testrepo&gt; load <path-to-your-rdf-data> .
93
+ testrepo&gt; sparql select * where { ?s ?p ?o } .
94
+ </pre>
95
+ To list all <code>seqid</code> entries from a GFF3/GVF-file conversion in the store, the following SPARQL query can be used:
96
+ <pre>
97
+ testrepo&gt; sparql select * where { ?s &lt;http://www.biointerchange.org/gvf1o#GVF1_0004&gt; ?o } .
98
+ </pre>
99
+ </p>
100
+ <h4>Data Consistency Verification</h4>
101
+ <p>
102
+ Data consistency is verifyable for the output formats <code>rdf.biointerchange.gff3</code> and <code>rdf.biointerchange.gvf</code> using the BioInterchange <a href="ontologies.html">ontologies</a> GFF3O and GVF1O. The following is an example of how <a href="http://jena.apache.org">Jena</a>'s command line tools and the <a href="http://hermit-reasoner.com">HermiT reasoner</a> can be used for conistency verification:
103
+ <pre>
104
+ rdfcat &lt;path-to-gff3o/gvf1o&gt; &lt;yourdata.n3&gt; &gt; merged.xml
105
+ java -d64 -Xmx4G -jar HermiT.jar -k -v merged.xml
106
+ </pre>
107
+ Another approach is to load the data and its related GFF3O/GVF1O ontology into <a href="http://protege.stanford.edu">Protege</a>, merge them, and then use the "Explain inconsistent ontology" menu item to inspect possible data inconsistencies.
108
+ </p>
109
+ <h4>Example Data Provenance</h4>
110
+ <p>
111
+ The following list provides information on the origin of the example-data files in the <code>examples</code> directory:
112
+ <ul>
113
+ <li><code>BovineGenomeChrX.gff3.gz</code>: Gzipped GFF3 file describing a Bos taurus chromosome X. Downloaded from <a href="http://bovinegenome.org/?q=download_chromosome_gff3">http://bovinegenome.org/?q=download_chromosome_gff3</a></li>
114
+ <li><code>chromosome_BF.gff</code>: GFF3 file of floating contigs from the Baylor Sequencing Centre. Downloaded from <a href="http://dictybase.org/Downloads">http://dictybase.org/Downloads</a></li>
115
+ <li><code>estd176_Banerjee_et_al_2011.2012-11-29.NCBI36.gvf</code>: GVF file of EBI's <a href="http://www.ebi.ac.uk/dgva/database-genomic-variants-archive">DGVa</a>. Downloaded from <a href="ftp://ftp.ebi.ac.uk/pub/databases/dgva/estd176_Banerjee_et_al_2011/gvf/estd176_Banerjee_et_al_2011.2012-11-29.NCBI36.gvf">ftp://ftp.ebi.ac.uk/pub/databases/dgva/estd176_Banerjee_et_al_2011/gvf/estd176_Banerjee_et_al_2011.2012-11-29.NCBI36.gvf</a></li>
116
+ <li><code>gb-2007-8-3-R40.xml</code>: Generated by <a href="http://pdfx.cs.man.ac.uk">PDFx</a> from open-access source PDF <a href="http://genomebiology.com/content/pdf/gb-2007-8-3-r40.pdf">Sense-antisense pairs in mammals: functional and evolutionary considerations</a></li>
117
+ <li><code>Saccharomyces_cerevisiae_incl_consequences.gvf.gz</code>: Downloaded from <a href="ftp://ftp.ensembl.org/pub/release-71/variation/gvf/saccharomyces_cerevisiae/Saccharomyces_cerevisiae_incl_consequences.gvf.gz">ftp://ftp.ensembl.org/pub/release-71/variation/gvf/saccharomyces_cerevisiae/Saccharomyces_cerevisiae_incl_consequences.gvf.gz</a></li>
118
+ </ul>
119
+ </p>
120
+ </div>
121
+ </div>
122
+
123
+ <hr>
124
+
125
+ <footer>
126
+ <p>&copy; <a href="about.html">The BioInterchange Contributors</a> 2012&ndash;2013</p>
127
+ </footer>
128
+
129
+ </div> <!-- /container -->
130
+
131
+ <!-- Le javascript
132
+ ================================================== -->
133
+ <!-- Placed at the end of the document so the pages load faster -->
134
+ <script src="bootstrap/js/bootstrap.min.js"></script>
135
+ <script src="biointerchange.js"></script>
136
+ </body>
137
+ </html>
data/web/index.html CHANGED
@@ -31,41 +31,20 @@
31
31
  <div class="navbar navbar-inverse navbar-fixed-top">
32
32
  <div class="navbar-inner">
33
33
  <div class="container">
34
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
35
- <span class="icon-bar"></span>
36
- <span class="icon-bar"></span>
37
- <span class="icon-bar"></span>
38
- </a>
39
34
  <a class="brand" href="index.html">BioInterchange</a>
40
- <div class="nav-collapse collapse">
41
- <ul class="nav">
42
- <li class="active"><a href="index.html">Home</a></li>
43
- <li><a href="ontologies.html">Ontologies</a></li>
44
- <li><a href="about.html">About</a></li>
45
- <!--
46
- <li class="dropdown">
47
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
48
- <ul class="dropdown-menu">
49
- <li><a href="#">To</a></li>
50
- <li><a href="#">Be</a></li>
51
- <li><a href="#">Done</a></li>
52
- <li><a href="#">Dude</a></li>
53
- <li class="divider"></li>
54
- <li class="nav-header">API</li>
55
- <li><a href="#">API usage information</a></li>
56
- <li><a href="#">Implementing new readers/writers</a></li>
57
- </ul>
58
- </li>
59
- -->
60
- </ul>
61
- </div><!--/.nav-collapse -->
35
+ <ul class="nav">
36
+ <li><a href="cli.html">Shell Tool</a></li>
37
+ <li><a href="webservices.html">Web-Services</a></li>
38
+ <li><a href="api.html">API</a></li>
39
+ <li><a href="ontologies.html">Ontologies</a></li>
40
+ <li><a href="about.html">About</a></li>
41
+ </ul>
62
42
  </div>
63
43
  </div>
64
44
  </div>
65
45
 
66
46
  <div class="container">
67
47
 
68
- <!-- Main hero unit for a primary marketing message or call to action -->
69
48
  <div class="hero-unit">
70
49
  <div style="float: left; margin-right: 24px;"><a href="http://www.biointerchange.org"><img width=150 height=150 src="images/BioInterchange300.png" /></a></div>
71
50
  <h1>BioInterchange</h1>
@@ -73,30 +52,36 @@
73
52
  <!-- <p><a class="btn btn-primary btn-large">Learn more &raquo;</a></p> -->
74
53
  </div>
75
54
 
76
- <!-- Example row of columns -->
77
55
  <div class="row">
78
- <div class="span4">
56
+ <div class="span6" style="text-align: justify;">
79
57
  <h2>Shell Tool</h2>
80
58
  <p>Create RDF files from large data sets using the BioInterchange shell tool. It is installed as a Ruby gem that works with Mac OS X, Linux and Windows.</p>
81
- <p><!-- <a class="btn" href="#">View details &raquo;</a> --><em>It's there, just this page isn't...</em></p>
59
+ <p><a class="btn" href="cli.html">View details &raquo;</a></p>
82
60
  </div>
83
- <div class="span4">
61
+ <div class="span6" style="text-align: justify;">
84
62
  <h2>Web-Services</h2>
85
63
  <p>Quickly RDFize small data snippets with BioInterchange's web-service. Either copy/paste your data into an interactive web-site, or use the RESTful web-service.</p>
86
64
  <p><a class="btn" href="webservices.html">View details &raquo;</a></em></p>
87
65
  </div>
88
- <div class="span4">
66
+ </div>
67
+ <div class="row">
68
+ <div class="span6" style="text-align: justify;">
89
69
  <h2>API</h2>
90
70
  <p>Integrate BioInterchange into your Ruby programs as a gem. The small footprint API makes it possible to create RDF from simple data structures in a few lines.</p>
91
71
  <p><a class="btn" href="api.html">View details &raquo;</a></p>
92
72
  <p><a class="btn" href="../doc/BioInterchange.html">View Ruby docs &raquo;</a></p>
93
73
  </div>
74
+ <div class="span6" style="text-align: justify;">
75
+ <h2>Ontologies</h2>
76
+ <p>Reuse ontologies that we specifically developed to tackle some RDFizations. External ontologies that are used by BioInterchange are listed here too.
77
+ <p><a class="btn" href="ontologies.html">View details &raquo;</a></p>
78
+ </div>
94
79
  </div>
95
80
 
96
81
  <hr>
97
82
 
98
83
  <footer>
99
- <p>&copy; <a href="https://github.com/BioInterchange/BioInterchange#contributors">The BioInterchange Contributors</a> 2012</p>
84
+ <p>&copy; <a href="about.html">The BioInterchange Contributors</a> 2012&ndash;2013</p>
100
85
  </footer>
101
86
 
102
87
  </div> <!-- /container -->