public class OwlReasoner
Class for adapting objects between data from SemanticAccessors in DataRecord
objects and OwlThing objects. This class enables a DataRecord to be
transformed into an OwlThing object with the appropriate data mappings. It
also enables a DataRecord to be augmented with information from an ontology,
based upon membership in a particular class.
public OwlReasoner(org.w3c.dom.Element cfgElement)
Instantiates a new RecordReasoner. This class creates any relevant
settings from the configuration element from a configuration file. The
configuration element should contain field mappings from the DataRecord
fields to the OwlClass properties
Augment the data record with information from the ontology. This method
finds or creates an OwlThing for the record, infers additional
information, then fills in the fields in the record with the values from
the created Thing.
Creates the OwlThing from the DataRecord. This method creates a new
OwlThing, and then loops through all field-property mappings. It sets
all determinable properties from the fields within the DataRecord. The
derived fields in the OwlThing are also set by this method.