use of org.nextprot.api.rdf.domain.OWLOntology in project nextprot-api by calipho-sib.
the class SchemaDaoImpl method findAllOntology.
@Override
public List<OWLOntology> findAllOntology() {
SqlParameterSource params = new MapSqlParameterSource();
List<OWLOntology> ontologies = new NamedParameterJdbcTemplate(dsLocator.getDataSource()).query(sqlDictionary.getSQLQuery("schema-ontology-list"), params, new ParameterizedRowMapper<OWLOntology>() {
@Override
public OWLOntology mapRow(ResultSet resultSet, int row) throws SQLException {
OWLOntology ontology = new OWLOntology();
ontology.setOntology(resultSet.getString("ontology"));
ontology.setDescription(resultSet.getString("description"));
ontology.setName(resultSet.getString("name"));
return ontology;
}
});
return ontologies;
}
Aggregations