de.fzi.kadmos.renderer.impl
Class INRIAFormatRenderer

java.lang.Object
  extended by de.fzi.kadmos.renderer.impl.INRIAFormatRenderer
All Implemented Interfaces:
AlignmentRenderer

public final class INRIAFormatRenderer
extends Object
implements AlignmentRenderer

Renderer that writes the INRIA alignment format in an XML representation.

Participation in the Ontology Alignment Evaluation Initiative (OAEI) requires alignments to be submitted in this format.

The renderer writes some constant values according to the nature of this API. In particular, the alignment type is "11", the ontology formalism is "OWL2.0" for both ontologies. Furthermore, the correspondence type is always "=", i.e. equality.

The renderer uses the JDOM library for writing XML.

Since:
1.0.0
Version:
1.3.0
Author:
Juergen Bock
See Also:
http://alignapi.gforge.inria.fr/format.html

Method Summary
static INRIAFormatRenderer getInstance(PrintWriter writer)
          Gets a (new) instance of this renderer.
 void render(Alignment alignment)
          Renders an alignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static INRIAFormatRenderer getInstance(PrintWriter writer)
Gets a (new) instance of this renderer. For any PrintWriter instance there can only be one renderer instance.

Parameters:
writer - The PrintWriter used for rendering.
Returns:
Renderer instance.
Since:
1.0.0

render

public void render(Alignment alignment)
            throws IOException
Renders an alignment. The implementing class should know where to write the result.

Specified by:
render in interface AlignmentRenderer
Parameters:
alignment - Reference to the alignment to be rendered.
Throws:
IOException - if an error occurs when rendering.


Copyright © 2012. All Rights Reserved.