Difference between revisions of "Project Plan for NeXML and RDF API in BioRuby"

From Phyloinformatics
Jump to: navigation, search
(Week 5 ( June 21 - June 27 ))
m (Week 7 ( July 5 - July 11 ))
 
(4 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
In parsing <code>characters</code> the focus will be on designing classes to abstract <code>characters</code> and its child elements, the actual parsing and unit tests and not on documentation.
 
In parsing <code>characters</code> the focus will be on designing classes to abstract <code>characters</code> and its child elements, the actual parsing and unit tests and not on documentation.
  
Notes:<br/>
+
Notes:
Bootstrap values are stored in NeXML as semantic annotations with the <code>meta</code> tag. So it will be implemented after semantic annotations are done.
+
* Bootstrap values are stored in NeXML as semantic annotations with the <code>meta</code> tag. So it will be implemented after semantic annotations are done.
  
 
== Week 3 ( June 7 - June 13 ) ==
 
== Week 3 ( June 7 - June 13 ) ==
Line 25: Line 25:
 
* Request for feedback from the BioRuby community( this will be done at the end of the week )
 
* Request for feedback from the BioRuby community( this will be done at the end of the week )
  
Notes:<br/>
+
Notes:
Due to certain issues <code>characters</code> implementation could not be neither properly tested. This target has been moved to the next week.
+
* Due to certain issues <code>characters</code> implementation could not be completed or properly tested. Will do it the next week.
  
 
== Week 4 ( June 14 - June 20 )==
 
== Week 4 ( June 14 - June 20 )==
Line 43: Line 43:
  
 
== Week 5 ( June 21 - June 27 ) ==
 
== Week 5 ( June 21 - June 27 ) ==
 +
Planned:
 
* Completely implement serialization of:
 
* Completely implement serialization of:
 
** Trees
 
** Trees
Line 48: Line 49:
 
Focus will be on adding to_nexml methods to the classes and generating valid NeXML.
 
Focus will be on adding to_nexml methods to the classes and generating valid NeXML.
  
Notes:<br/>
+
Notes:
 
* Check out the serializer API in the [[NeXML and RDF API for BioRuby]].
 
* Check out the serializer API in the [[NeXML and RDF API for BioRuby]].
 
* Started getting feedback from BioRuby developers ( more details here [http://lists.open-bio.org/pipermail/bioruby/2010-June/001280.html Archive] ):
 
* Started getting feedback from BioRuby developers ( more details here [http://lists.open-bio.org/pipermail/bioruby/2010-June/001280.html Archive] ):
Line 61: Line 62:
 
** Code cleanup
 
** Code cleanup
 
** Write documentation
 
** Write documentation
* Start work on the RDF API
+
* Start work on the RDF API - Work out the specs( with RSpec ) of the API.
  
 
== Week 7 ( July 5 - July 11 ) ==
 
== Week 7 ( July 5 - July 11 ) ==
* Design classes for semantic annotation in BioRuby.
+
Taking this week off.
* Parse <code>meta</code> NeXML element and return the corresponding object.
 
  
 
== Week 8 ( July 12 - July 18 ) ==
 
== Week 8 ( July 12 - July 18 ) ==
 
* Midterm evaluations
 
* Midterm evaluations
 +
* Continue with the RDF specs and design classes to realize them.
  
== Week 9 ( July 19 - July 25 )==
+
== Week 9 ( July 19 - July 25 ) and Week 10( July 26 - August 1 ) ==
* Serialize annotations into <code>meta</code> tag.
+
* Implement NeXML/RDF parser and serializer. This would imply parsing the <code>meta</code> tag and serializing RDF Graphs to <code>meta</code> element.
* Finalize the work on the RDF API:
 
** Code cleanup
 
** Write documentation
 
 
 
== Week 10 ( July 26 - August 1 ) ==
 
* Feedback
 
* Iteration
 
  
 
== Week 11 ( August 2 - August 8 ) ==
 
== Week 11 ( August 2 - August 8 ) ==
* Feedback
+
* Code profiling and benchmarking
* Iteration
+
* Regression tests
 +
* Make up for any missing tests and documentations.
  
 
== Week 12 ( August 9 - August 15 ) ==
 
== Week 12 ( August 9 - August 15 ) ==

Latest revision as of 09:15, 3 July 2010

Week 1 ( May 24 - May 30 )

Planned:
I will start the development of the NeXML parser this week. The parser should be able to accept NeXML in a couple of ways: file, io, string, uri. The target is, to be able to parse otus, otu, and simple trees( just a tree with some nodes and edges ), and class. Focus will be on designing classes to encapsulate these NeXML elements, the actual parsing and unit tests and not on documentation.

Notes:

  • Since the support for class elements is not complete in the schema, it will not be implemented in the parser.

Week 2 ( May 31 - June 6 )

Planned:

  • Completely implement trees and networks including both their int and float variants.

Start working on characters element. NeXML allows for two broad categories of data( sequence and granular observation ), each with six sub categories. Without keeping the type in mind the parser should be able to recognize:

  • state definitions - states and it child elements( maybe leave ambiguous definition - discuss with Rutger )
  • character definitions - char
  • matrix - row, raw character sequences (seq) and granular observations( cell )

In parsing characters the focus will be on designing classes to abstract characters and its child elements, the actual parsing and unit tests and not on documentation.

Notes:

  • Bootstrap values are stored in NeXML as semantic annotations with the meta tag. So it will be implemented after semantic annotations are done.

Week 3 ( June 7 - June 13 )

Planned:

  • Completely implement characters with the supported types.
  • Document the code base and make sure that the parsing API is in place complete with tests and documentation.
  • Request for feedback from the BioRuby community( this will be done at the end of the week )

Notes:

  • Due to certain issues characters implementation could not be completed or properly tested. Will do it the next week.

Week 4 ( June 14 - June 20 )

Planned:

  • Finalize the work on NeXML parser:
    • Code cleanup.
    • Write documentation.
    • Add more tests.
  • Start working on the NeXML serializer:
    • Root
    • Taxa block( otus ) and Taxons( otu ).

Focus will be on adding to_nexml methods to the classes and generating valid NeXML.

Notes:

  • Existing classes do not need to_nexml methods; they sit independently of the serializer implementation. Serializer methods are a part of Bio::NeXML::Writer class.

Week 5 ( June 21 - June 27 )

Planned:

  • Completely implement serialization of:
    • Trees
    • Characters

Focus will be on adding to_nexml methods to the classes and generating valid NeXML.

Notes:

  • Check out the serializer API in the NeXML and RDF API for BioRuby.
  • Started getting feedback from BioRuby developers ( more details here Archive ):
    • Refactoring the Matrix class.
    • Need for regression tests and benchmarking.
    • Use of doc tests for document validation and expansion.
    • Streaming over memory based parsing.
    • Use of RSpec for RDF API

Week 6 ( June 28 - July 4 )

  • Finalize the work on NeXML serializer:
    • Code cleanup
    • Write documentation
  • Start work on the RDF API - Work out the specs( with RSpec ) of the API.

Week 7 ( July 5 - July 11 )

Taking this week off.

Week 8 ( July 12 - July 18 )

  • Midterm evaluations
  • Continue with the RDF specs and design classes to realize them.

Week 9 ( July 19 - July 25 ) and Week 10( July 26 - August 1 )

  • Implement NeXML/RDF parser and serializer. This would imply parsing the meta tag and serializing RDF Graphs to meta element.

Week 11 ( August 2 - August 8 )

  • Code profiling and benchmarking
  • Regression tests
  • Make up for any missing tests and documentations.

Week 12 ( August 9 - August 15 )

  • Feedback
  • Iteration

Technicalities

Github is being used for code collaboration. Any NeXML file read for parser development is validated against the current NeXML schema to ensure correctness. The developed code is being unit tested with Ruby's unit testing framework and documentation generated using Rdoc. All NeXML element are documented here - NeXML Elements and an API discussion can be found here - NeXML and RDF API for BioRuby.