edu.unika.aifb.owltools.tools
Class Merge

java.lang.Object
  extended by edu.unika.aifb.owltools.tools.KAON2Tool
      extended by edu.unika.aifb.owltools.tools.Merge

public class Merge
extends KAON2Tool

Returns an ontology conaining all axioms from both ontologies


Field Summary
 
Fields inherited from class edu.unika.aifb.owltools.tools.KAON2Tool
m_connection, printer
 
Constructor Summary
Merge()
           
 
Method Summary
 void compile()
          Entry point for the command line based usage of the Filter owl tool
static void main(java.lang.String[] args)
          To be called when used from a standalone command line tool
 org.semanticweb.kaon2.api.Ontology merge(org.semanticweb.kaon2.api.Ontology one, org.semanticweb.kaon2.api.Ontology two)
          Merges two ontologies
 void merge(org.semanticweb.kaon2.api.Ontology one, org.semanticweb.kaon2.api.Ontology two, org.semanticweb.kaon2.api.Ontology result)
          Merges two ontologies by simply taking each axiom and adding it to a resulting ontology
 java.lang.String name()
          the name of the tool
static void printUsage()
          prints the command line parameters and a short info
 boolean processArguments(java.lang.String[] args)
          process command line arguments
 
Methods inherited from class edu.unika.aifb.owltools.tools.KAON2Tool
endConnection, loadOntology, printUsageError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Merge

public Merge()
Method Detail

name

public java.lang.String name()
the name of the tool

Specified by:
name in class KAON2Tool
Returns:
the name of the tool

main

public static void main(java.lang.String[] args)
To be called when used from a standalone command line tool

Parameters:
args - Command line parameters

processArguments

public boolean processArguments(java.lang.String[] args)
process command line arguments

Specified by:
processArguments in class KAON2Tool

compile

public void compile()
Entry point for the command line based usage of the Filter owl tool


merge

public org.semanticweb.kaon2.api.Ontology merge(org.semanticweb.kaon2.api.Ontology one,
                                                org.semanticweb.kaon2.api.Ontology two)
                                         throws org.semanticweb.kaon2.api.KAON2Exception
Merges two ontologies

Parameters:
one - One of the ontologies to be merged
two - The second ontology to be merged
Returns:
The merged ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception

merge

public void merge(org.semanticweb.kaon2.api.Ontology one,
                  org.semanticweb.kaon2.api.Ontology two,
                  org.semanticweb.kaon2.api.Ontology result)
           throws org.semanticweb.kaon2.api.KAON2Exception
Merges two ontologies by simply taking each axiom and adding it to a resulting ontology

Parameters:
one - The first ontology
two - The second ontology
result - The resulting, merged ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception

printUsage

public static void printUsage()
prints the command line parameters and a short info