Changeset 625 for trunk/grails-app/domain/dbnp/data/Ontology.groovy
- Timestamp:
- Jun 25, 2010, 4:01:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/data/Ontology.groovy
r569 r625 41 41 } 42 42 43 static Ontology getBioPortalOntology(int ncboId) { 44 getBioPortalOntology(ncboId as String) 45 } 43 46 static Ontology getBioPortalOntology(String ncboId) { 44 47 // Get ontology from BioPortal via Ontocat … … 64 67 * @return Ontology 65 68 */ 66 static Ontology getOrCreateOntologyByNcboId( IntegerncboId ) {67 return getOrCreateOntologyByNcboId( ncboId as String)69 static Ontology getOrCreateOntologyByNcboId( String ncboId ) { 70 return getOrCreateOntologyByNcboId( ncboId as int ) 68 71 } 69 static Ontology getOrCreateOntologyByNcboId( String ncboId ) { 70 def ontology = findByNcboId( ncboId ) 72 static Ontology getOrCreateOntologyByNcboId( int ncboId ) { 73 println "find ${ncboId} in ${list()*.ncboId}" 74 def ontology = findByNcboId( ncboId as String ) 71 75 72 76 // got an ontology?
Note: See TracChangeset
for help on using the changeset viewer.