Skip to content

Commit

Permalink
fix typo in namespace name
Browse files Browse the repository at this point in the history
  • Loading branch information
eparejatobes committed Nov 9, 2016
1 parent 359817e commit c442523
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/go.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ trait AnyTerm extends Any {
- http://geneontology.org/page/ontology-structure#essential
*/
sealed trait Namespace
case object cellullar_component extends Namespace
case object cellular_component extends Namespace
case object molecular_function extends Namespace
case object biological_process extends Namespace

Expand Down
7 changes: 5 additions & 2 deletions src/main/scala/oboxml/parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,15 @@ case class XmlTerm(val xml: Node) extends AnyVal with AnyTerm {

case object XmlTerm {

def namespaceFrom(rep: String): Namespace =
def namespaceFrom(rep: String): Namespace = {
println { rep };
rep match {
case "cellullar_component" => cellullar_component
case "cellular_component" => cellular_component
case "molecular_function" => molecular_function
case "biological_process" => biological_process
}
}

}

case class Rel(sourceID: String, targetID: String)

0 comments on commit c442523

Please sign in to comment.