edu.unika.aifb.owltools.tools
Class Diff

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

public class Diff
extends KAON2Tool

Returns all axioms that are within one, but not within the other ontology


Field Summary
 
Fields inherited from class edu.unika.aifb.owltools.tools.KAON2Tool
m_connection, printer
 
Constructor Summary
Diff()
           
 
Method Summary
 void compile()
          Entry point for the command line based usage of the Dump owl tool
 org.semanticweb.kaon2.api.Ontology diff(org.semanticweb.kaon2.api.Ontology base, org.semanticweb.kaon2.api.Ontology diff)
          Creates an ontology for the output instead needing to be supplied with one.
 void diff(org.semanticweb.kaon2.api.Ontology base, org.semanticweb.kaon2.api.Ontology diff, org.semanticweb.kaon2.api.Ontology result)
          Saves all the axioms that are in the diff ontology but not in base ontology in the result ontology
static void main(java.lang.String[] args)
          If the tool is being called from the outside, some basic processing is being done
 java.lang.String name()
          the name of the owl tool
static void printUsage()
          prints the command line parameters and a short info
 boolean processArguments(java.lang.String[] args)
          processes the command line parameteres
 
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

Diff

public Diff()
Method Detail

name

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

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

main

public static void main(java.lang.String[] args)
If the tool is being called from the outside, some basic processing is being done

Parameters:
args - Command line parameters. The same as for the OWLtools call

processArguments

public boolean processArguments(java.lang.String[] args)
processes the command line parameteres

Specified by:
processArguments in class KAON2Tool

compile

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


diff

public org.semanticweb.kaon2.api.Ontology diff(org.semanticweb.kaon2.api.Ontology base,
                                               org.semanticweb.kaon2.api.Ontology diff)
                                        throws org.semanticweb.kaon2.api.KAON2Exception
Creates an ontology for the output instead needing to be supplied with one. That ontology will hold all the axioms that are in the diff ontology, but not in the base ontology

Parameters:
base - The ontology to compare to
diff - The ontology that has the extra axioms
Returns:
The difference between the two input ontologies
Throws:
org.semanticweb.kaon2.api.KAON2Exception

diff

public void diff(org.semanticweb.kaon2.api.Ontology base,
                 org.semanticweb.kaon2.api.Ontology diff,
                 org.semanticweb.kaon2.api.Ontology result)
          throws org.semanticweb.kaon2.api.KAON2Exception
Saves all the axioms that are in the diff ontology but not in base ontology in the result ontology

Parameters:
base - The ontology to compare to
diff - The ontology with the extra axioms
result - The extra axioms are added to the result ontology
Throws:
org.semanticweb.kaon2.api.KAON2Exception

printUsage

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