Changeset 1174 for trunk/grails-app
- Timestamp:
- Nov 19, 2010, 10:55:15 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/domain/dbnp/data/Ontology.groovy
r1118 r1174 53 53 uk.ac.ebi.ontocat.OntologyService os = new uk.ac.ebi.ontocat.bioportal.BioportalOntologyService() 54 54 uk.ac.ebi.ontocat.Ontology o = os.getOntology(ncboId) 55 55 56 56 // Instantiate and return Ontology object 57 new dbnp.data.Ontology( 58 name: o.label, 59 description: o.description, 60 url: o.properties['homepage'] ?: "http://bioportal.bioontology.org/ontologies/${o.id}", 61 versionNumber: o.versionNumber, 62 ncboId: o.ontologyAccession, 63 ncboVersionedId: o.id 64 ); 57 if (o != null) { 58 new dbnp.data.Ontology( 59 name: o.label, 60 description: o.description, 61 url: o.properties['homepage'] ?: "http://bioportal.bioontology.org/ontologies/${o.id}", 62 versionNumber: o.versionNumber, 63 ncboId: o.ontologyAccession, 64 ncboVersionedId: o.id 65 ); 66 } else { 67 println ("ERROR: ontology with ncboId ${ncboId} could not be found!") 68 } 65 69 } 66 70
Note: See TracChangeset
for help on using the changeset viewer.