de.fzi.kadmos.api.algorithm
Interface AlignmentAlgorithm

All Known Subinterfaces:
UpdatingAlignmentAlgorithm

public interface AlignmentAlgorithm

Interface to be implemented by alignment algorithms. Implementors of algorithms must implement the align(org.semanticweb.owlapi.model.OWLOntology, org.semanticweb.owlapi.model.OWLOntology) method in which they do their computation.

Parameters used for the alignment computation are provided by a standard Java Properties object and are handed over via the setParameters(Properties) method. Specific alignment algorithms may or may not use parameters, thus the implementation of setParameters(Properties) might be empty in case no parameters are needed. In case the algorithm necessarily requires parameters to be set, the implementation of #align() might throw an IllegalStateException if no parameters are set.

It is recommended to design implementing classes as singletons in order to avoid multiple instantiations of an algorithm.

Since:
1.0.0
Version:
1.3.0
Author:
Juergen Bock

Method Summary
 Alignment align(OWLOntology ontology1, OWLOntology ontology2)
          Computes an alignment between the given ontologies.
 void setParameters(Properties params)
          Sets the parameters to be used by an alignment algorithm.
 

Method Detail

align

Alignment align(OWLOntology ontology1,
                OWLOntology ontology2)
                throws AlignmentAlgorithmException
Computes an alignment between the given ontologies.

Parameters:
ontology1 - Ontology 1.
ontology2 - Ontology 2.
Returns:
The computed alignment.
Throws:
AlignmentAlgorithmException - If a problem occurs when computing the alignment.
Since:
1.0.0

setParameters

void setParameters(Properties params)
Sets the parameters to be used by an alignment algorithm.

Parameters:
params - Parameters represented as Java Properties.
Since:
1.0.0


Copyright © 2012. All Rights Reserved.