|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
Alignment align(OWLOntology ontology1, OWLOntology ontology2) throws AlignmentAlgorithmException
ontology1
- Ontology 1.ontology2
- Ontology 2.
AlignmentAlgorithmException
- If a problem occurs when
computing the alignment.void setParameters(Properties params)
params
- Parameters represented as Java Properties
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |