de.dfleischhacker.uni.thesis.semantic.naturalsemantic
Class NaturalSemantic

java.lang.Object
  extended by de.dfleischhacker.uni.thesis.semantic.naturalsemantic.NaturalSemantic
All Implemented Interfaces:
SemanticModule

public class NaturalSemantic
extends java.lang.Object
implements SemanticModule

Implements the natural semantic. The natural semantic supports the following pairs of entities in a correspondence (C - concept, OP - objecttype property, DP - datatype property):

The supported relations are All other correspondences will result in an UnsupportedCorrespondenceException.


Constructor Summary
NaturalSemantic(Ontology onto1, Ontology onto2)
          Initializes the natural semantic module.
 
Method Summary
 ClosureResult getClosure(Alignment align)
          Returns the closure of the given alignment.
 void setDeleteABox(boolean delete)
          Used to set if the semantic should pay attention to individuals in the ontologies or has to ignore them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalSemantic

public NaturalSemantic(Ontology onto1,
                       Ontology onto2)
                throws MergingException
Initializes the natural semantic module. Therefore, a merge of the given two ontologies is prepared by renaming the entities contained in these ontologies. Be aware of the fact that this renaming is an INPLACE renaming in the given ontologies and WILL ALTER their content. Furthermore, the semantic is configured by this constructor to remove individuals possibly found in the aligned ontology. This behaviour can be changed by using the
setDeleteABox
method.

Parameters:
onto1 - ontology 1
onto2 - ontology 2
Throws:
MergingException - thrown if it was not possible to merge the given two ontologies
Method Detail

setDeleteABox

public void setDeleteABox(boolean delete)
Used to set if the semantic should pay attention to individuals in the ontologies or has to ignore them.

Specified by:
setDeleteABox in interface SemanticModule
Parameters:
delete - if true the semantic ignores individuals in the ontology, if false it pays attention to the ontology's individuals

getClosure

public ClosureResult getClosure(Alignment align)
                         throws MergingException,
                                ClosureGenerationException
Returns the closure of the given alignment. This is the method which should be used from external methods to get the alignment closure.

Specified by:
getClosure in interface SemanticModule
Parameters:
align - alignment to create closure for
Returns:
closure result of given alignment
Throws:
MergingException
ClosureGenerationException