Environmental Engineering Reference
In-Depth Information
Fig. 9.6 The Domain Manager component. The Domain Manager is used to automatically
generate Java Beans which, using the Hibernate platform, can persist objects used to exchange
data among models and the database
The Knowledge Manager only deals with metadata (i.e. information on data structure).
Data are delivered by the SEAMLESS database and are accessible by using the
generated Java Beans through Hibernate.
In the generated source code, Java annotations are used for linking Java Beans
with the ontology, like in this example:
@ConceptURI(“http://ontologies.seamless-ip.org/crop.owl#Crop”)
public class Crop implements Serializable
{
...
…@PropertyURI(“http://ontologies.seamless-ip.org/crop.owl#hasCropSoil
Requirements”)
…public CropSoilRequirements getCropSoilRequirements(){
...
}
}
Since the annotations are accessible at runtime using Java reflection the ontology
information can be used in the future for reasoning, e.g. to validate whether an
output of a model can be used as an input for another model.
In all practicality it is a fully automatically generated persistence layer for the
SEAMLESS system. Higher layers of the system, and the models (or model wrappers)
themselves, use it to retrieve, work with and store instances of the concepts as
defined in the ontology.
Search WWH ::




Custom Search